summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-12-21make isodate thread-safeLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21- use the standard option parsing routines;Luigi Rizzo
- document existing but undocumented parameters to send a message (untested but unchanged; - ad a new option p(N) to set the initial message delay to N ms so this can be adapted from the dialplan to various countries; git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Merge non-blocking logger from my branch. This should improve things under ↵Joshua Colp
heavy load with lots of CLI/logging output. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Merged revisions 48783 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48783 | file | 2006-12-21 15:26:29 -0500 (Thu, 21 Dec 2006) | 10 lines Merged revisions 48782 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48782 | file | 2006-12-21 15:25:01 -0500 (Thu, 21 Dec 2006) | 2 lines Add new silence sound files to the spec for Redhat. (issue #8652 reported by alvaro_palma_aste) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21This little mod gets rid of that g722 compiler warning that breaks builds ↵Steve Murphy
configured with --enable-dev-mode; the previous commit of 48767 was to merge in changes for bug 6334, unifying the open mode arguments for saner operation. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21put generator functions next to each other.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21a quick fix to app_sms.c to get rid of cursed compiler warnings so I can ↵Steve Murphy
compile under --enable-dev-mode git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21same as in other places, check that generator->release is not NULLLuigi Rizzo
before calling it. This allows generators to set it to NULL when they have nothing to do there. Later, the three copies of the code that releases a generator should be moved to a function. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21reduce indentationLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21restructure a block to reduce nestingLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Add a bit of documentation on this code, including pointersLuigi Rizzo
to relevant documents and comment on timing issues. Initial merge of the code in http://bugs.digium.com/view.php?id=8586 by Filippo Grassilli (Hyppo) to support the SMS Protocol 2. In this commit i have tried to minimize the diffs, so further code cleanup will come in subsequent commits. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21This small update will generate WARNINGS if there is garbage in your ↵Steve Murphy
extensions.conf file (liken extem => instead of exten => !) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Really clean up indications to use the linkedlists APIJoshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Switch list of global variables to read/write locks.Joshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Convert alternate dialplan switch list to use read/write locks.Joshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21As per bug 7978, this version introduces the jittertargetextra option in ↵Steve Murphy
config files git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Minor addition giving props to Steve Underwood for his hard work. Thanks again Matthew Fredrickson
Steve! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21Add codec G.722 support.Matthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-20Clean up app_pageJoshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-20Merged revisions 48637 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48637 | file | 2006-12-19 21:56:09 -0500 (Tue, 19 Dec 2006) | 2 lines vms doesn't exist on non-IMAP storage builds. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-20more formatting cleanup.Luigi Rizzo
Move some code into a function sms_compose1() in preparation for supporting protocol 2 as well. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19formatting and code cleanup.Luigi Rizzo
Still a lot of copy&pasted code here... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19Merged revisions 48596 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48596 | file | 2006-12-19 18:04:30 -0500 (Tue, 19 Dec 2006) | 2 lines Pass 'vms' pointer to record_and_review so it is then passed to the IMAP store file function. (issue #8614 reported by punknow) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19Update res_snmp to use new API declaration of ↵Joshua Colp
pbx_builtin_serialize_variables (issue #8627 reported by johann8384) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19Merged revisions 48592 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48592 | file | 2006-12-19 17:00:57 -0500 (Tue, 19 Dec 2006) | 2 lines find is not the same as bind when it comes to documentation. (issue #8626 reported by johann8384) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19OpenBSD does not have RLIMIT_AS or RLIMIT_VMEM so until someone finds the ↵Joshua Colp
right rlimit to use then let's not support the -v option on OpenBSD. (issue #8543 reported by jtodd) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19block 48583Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19start documenting this code.Luigi Rizzo
On passing, fix the bogus datalen on outgoing frames just fixed in 1.4 rev.48583 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19Merged revisions 48586 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48586 | kpfleming | 2006-12-19 15:28:04 -0600 (Tue, 19 Dec 2006) | 2 lines suppress compiler warnings in this module until it can be improved ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19better name for struct dial_localuser.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19remove now useless extern declarations.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19Merged revisions 48577 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48577 | kpfleming | 2006-12-19 08:57:09 -0600 (Tue, 19 Dec 2006) | 2 lines use the proper variable type for these unixODBC API calls, eliminating warnings on 64-bit platforms that use the 'new' 64-bit types for ODBC API calls ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19introduce a temporary variable for tmp->chan to shorten expressions.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19stop what i think is a memory leak in case Dial fails toLuigi Rizzo
connect to a channel. Before committing to 1.4 i would like some other people to review and test this fix - thanks. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19move a large block related to privacy handling to a separate function.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19Merged revisions 48571 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48571 | file | 2006-12-18 22:46:12 -0500 (Mon, 18 Dec 2006) | 2 lines Use env -i to start a fresh environment when going to build menuselect. This is more portable then using unset. (issue #8543 reported by jtodd) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18unbreak the macro used for incrementing the frame counters.Luigi Rizzo
I don't know when the bug was introduced, but with the typical usage c->fin = FRAMECOUNT_INC(c->fin) the frame counters stay to 0. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18Clean up find_idle_thread function and use atomic operations for dynamic ↵Joshua Colp
thread count. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18Merged revisions 48564 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48564 | file | 2006-12-18 12:15:49 -0500 (Mon, 18 Dec 2006) | 2 lines Put thread into proper list if we abort handling due to an error, and also hold the lock while putting it back into the proper idle list so we don't prematurely get a signal. (issue #8604 reported by arkadia) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18ctrl-w != w (nano search) (surprisingly, the fix was ever so slightly ↵Jason Parker
different in 1.4) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18Blocked revisions 48561 via svnmergeJason Parker
........ r48561 | qwell | 2006-12-18 10:55:46 -0600 (Mon, 18 Dec 2006) | 2 lines ctrl-w != w (nano search) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18apply the proposed fix for bug 8602Luigi Rizzo
http://bugs.digium.com/view.php?id=8602 (i am not sure if there is still missing cast in front of the alloca() call - being a macro this is probably triggered only when actually used). Add function ast_str_reset() to reinitialize the string to an empty string instead of playing with the internal fields. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18convert the final clients of ast_build_string to use ast_str_*()Luigi Rizzo
Now the only module left using it is chan_sip.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18debugging shows that we always need more than 128 bytesLuigi Rizzo
for the verbose and logging messages so start with a larger buffer from the beginning. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18Merged revisions 48554 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48554 | kpfleming | 2006-12-18 05:59:24 -0600 (Mon, 18 Dec 2006) | 3 lines remove some now-unnecessary explicit includes of autoconfig.h clean up per-file dependencies during 'make clean' ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18Replace ast_build_string with ast_str_*().Luigi Rizzo
On passing remove presumably duplicate code to generate the message for the manager_hooks: in the previous version, the message was almost the same as the one sent to regular sessions, with the exception of the empty line at the end, and a few (presumably unintentional) differences e.g. timestamps, debugging, and lowercase headers for "event" and "privilege". now we reuse the same message as before. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-17replace ast_build_string() with ast_str_*().Luigi Rizzo
Unless i am very mistaken, function_realtime_read() was broken in that it would always return an empty string (because ast_build_string() advanced the pointer to the end of the string, and there was no reference to the initial value. This commit should fix this problem. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-17replace ast_build_string() with ast_str_*();Luigi Rizzo
simplify __queues_show() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-17Merged revisions 48548 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48548 | kpfleming | 2006-12-17 12:33:24 -0600 (Sun, 17 Dec 2006) | 2 lines need an additional argument here to make the downloads actually occur ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-17define a mask SIP_INSECURE sam as for other sets of flags.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48543 65c4cc65-6c06-0410-ace0-fbb531ad65f3