aboutsummaryrefslogtreecommitdiffstats
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2006-12-311. Rename 'maxmessage' to 'maxsecs' to differentiate from 'maxmsg'.tilghman1-14/+50
2. Rename 'minmessage' to 'minsecs' for parity. 3. Make 'maxsecs' a per-user option, in addition to global. (Issue # 8624) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49075 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27From coding guidelines:oej1-4/+2
Comments should explain what the code does, not when something was changed or who changed it. If you have done a larger contribution, make sure that you are added to the CREDITS file. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48984 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-26Merged revisions 48966 via svnmerge from file1-10/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48966 | file | 2006-12-26 00:20:08 -0500 (Tue, 26 Dec 2006) | 2 lines Get rid of a needless memory allocation and only create a conference structure in find_conf_realtime if data was read from realtime. (issue #8669 reported by robl) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48967 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25rename the structs struct tone_zone_sound and struct tone_zonerizzo2-2/+2
defined in indications.h to ind_tone_zone_sound and ind_tone_zone, to avoid conflicts with the structs with the same names defined in tonezone.h Hope i haven't missed any instance. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-22improve readability of a few macros.rizzo1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48857 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21make sms_hexdump() thread safe;rizzo1-212/+224
restructure and reduce indentation on some blocks. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48844 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21make isodate thread-saferizzo1-15/+18
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21- use the standard option parsing routines;rizzo1-70/+123
- 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: http://svn.digium.com/svn/asterisk/trunk@48825 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21put generator functions next to each other.rizzo1-16/+23
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48768 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21a quick fix to app_sms.c to get rid of cursed compiler warnings so I can ↵murf9-14/+14
compile under --enable-dev-mode git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48767 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21reduce indentationrizzo1-100/+97
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48752 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21restructure a block to reduce nestingrizzo1-99/+98
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48750 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21Add a bit of documentation on this code, including pointersrizzo1-36/+376
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: http://svn.digium.com/svn/asterisk/trunk@48736 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-20Clean up app_pagefile1-33/+41
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48639 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-20Merged revisions 48637 via svnmerge from file1-1/+5
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: http://svn.digium.com/svn/asterisk/trunk@48638 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-20more formatting cleanup.rizzo1-39/+45
Move some code into a function sms_compose1() in preparation for supporting protocol 2 as well. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48599 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19formatting and code cleanup.rizzo1-100/+85
Still a lot of copy&pasted code here... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19Merged revisions 48596 via svnmerge from file1-13/+12
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: http://svn.digium.com/svn/asterisk/trunk@48597 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19start documenting this code.rizzo1-11/+28
On passing, fix the bogus datalen on outgoing frames just fixed in 1.4 rev.48583 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48588 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19better name for struct dial_localuser.rizzo1-13/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48581 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19introduce a temporary variable for tmp->chan to shorten expressions.rizzo1-53/+54
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48575 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19stop what i think is a memory leak in case Dial fails torizzo1-0/+3
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: http://svn.digium.com/svn/asterisk/trunk@48574 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19move a large block related to privacy handling to a separate function.rizzo1-110/+115
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48573 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18convert the final clients of ast_build_string to use ast_str_*()rizzo2-5/+7
Now the only module left using it is chan_sip.c git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48559 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-17replace ast_build_string() with ast_str_*();rizzo1-103/+69
simplify __queues_show() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48550 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12Merged revisions 48401 via svnmerge from file1-5/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48401 | file | 2006-12-11 23:13:48 -0500 (Mon, 11 Dec 2006) | 2 lines Use S_OR in my previous app_voicemail. This is the way it should have been done. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48402 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11Merged revisions 48396 via svnmerge from mogorman1-1/+1
https://svn.digium.com/svn/asterisk/branches/1.4 ................ r48396 | mogorman | 2006-12-11 16:11:35 -0600 (Mon, 11 Dec 2006) | 12 lines Merged revisions 48394 via svnmerge from https://svn.digium.com/svn/asterisk/branches/1.2 ........ r48394 | mogorman | 2006-12-11 15:55:43 -0600 (Mon, 11 Dec 2006) | 4 lines app_externalivr needs a real silence file, and additional changes to add silence files into core instead of extra patch provided by bug 8177 with minor additions. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48397 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11Merged revisions 48391 via svnmerge from file1-11/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48391 | file | 2006-12-11 16:31:23 -0500 (Mon, 11 Dec 2006) | 2 lines Return non-existant callerid handling to that which it was before. In 1.4 and trunk callerid can be allocated but not have any contents so we have to use ast_strlen_zero before passing it to the relevant functions. (issue #8567 reported by pabelanger) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48392 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11Merged revisions 48379 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48379 | file | 2006-12-11 00:30:01 -0500 (Mon, 11 Dec 2006) | 2 lines Use the correct API call to say a device state changed. (Yes, I'm a nub.) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48380 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11Merged revisions 48377 via svnmerge from file1-6/+7
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48377 | file | 2006-12-10 23:57:38 -0500 (Sun, 10 Dec 2006) | 2 lines Don't access the conference structure after it has been freed. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48378 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11Merged revisions 48375 via svnmerge from tilghman6-17/+74
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48375 | tilghman | 2006-12-10 18:47:21 -0600 (Sun, 10 Dec 2006) | 13 lines Merged revisions 48374 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48374 | tilghman | 2006-12-10 18:33:59 -0600 (Sun, 10 Dec 2006) | 5 lines When doing a fork() and exec(), two problems existed (Issue 8086): 1) Ignored signals stayed ignored after the exec(). 2) Signals could possibly fire between the fork() and exec(), causing Asterisk signal handlers within the child to execute, which caused nasty race conditions. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48376 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06Resolve some pointer signedness compiler warnings in app_osplookup, andrussell4-9/+9
constify a bunch of usage strings for CLI commands. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48307 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-051. Change to remove the compiling warning: "app_osplookup.c:2169: warning: ↵transnexus1-1/+1
initialization discards qualifiers from pointer target type" git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48266 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05Merged revisions 48254 via svnmerge from tilghman1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48254 | tilghman | 2006-12-04 19:41:02 -0600 (Mon, 04 Dec 2006) | 2 lines Oops, forgot to release the odbc handle ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48255 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-05Merged revisions 48252 via svnmerge from tilghman1-14/+16
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48252 | tilghman | 2006-12-04 19:34:34 -0600 (Mon, 04 Dec 2006) | 14 lines Merged revisions 48251 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48251 | tilghman | 2006-12-04 19:26:08 -0600 (Mon, 04 Dec 2006) | 6 lines If the recording in the database is too large, it will fail to retrieve with an mmap error. Not too sure why this doesn't happen when we put it in the database, also, but since that doesn't seem to be broken, I'm not going to fix it (at least until someone reports it). Solution is to ask for the file in smaller chunks. (Bug 8385) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-04Merged revisions 48248 via svnmerge from qwell1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48248 | qwell | 2006-12-04 15:48:41 -0600 (Mon, 04 Dec 2006) | 2 lines Fix an issue which didn't allow unavail/greet/busy/etc messages from being saved into ODBC (and probably IMAP). ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48249 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02Doxygenificationoej1-43/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48206 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01Merged revisions 48193 via svnmerge from kpfleming1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48193 | kpfleming | 2006-12-01 17:37:28 -0600 (Fri, 01 Dec 2006) | 10 lines Merged revisions 48192 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48192 | kpfleming | 2006-12-01 17:30:59 -0600 (Fri, 01 Dec 2006) | 2 lines if Dial() is going to send music-on-hold to the calling party, it has to send PROGRESS first to ensure that the reverse audio path has been setup first (BE-106) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48194 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-29Merged revisions 48115 via svnmerge from file1-3/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48115 | file | 2006-11-29 16:05:17 -0500 (Wed, 29 Nov 2006) | 2 lines Use MAILTMPLEN instead of sizeof in mm_login. (issue #8420 reported by slimey) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48116 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-29Merged revisions 48101 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48101 | file | 2006-11-28 23:26:53 -0500 (Tue, 28 Nov 2006) | 2 lines Don't crash if the mailstream was not created. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48102 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Merged revisions 48054 via svnmerge from file1-14/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r48054 | file | 2006-11-27 13:06:50 -0500 (Mon, 27 Nov 2006) | 10 lines Merged revisions 48053 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48053 | file | 2006-11-27 13:03:57 -0500 (Mon, 27 Nov 2006) | 2 lines Use the proper function to get the new message count instead of always using the filesystem. (issue #8421 reported by slimey) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-21better fix for the previous bug.rizzo1-3/+8
In general this code needs a deep revision, because the body of do_forward() deletes/overwrites the output channel without freeing the resouce in some cases, and without notifying the caller. Also, on FreeBSD with MALLOC_OPTIONS set i am seeing various panics (duplicate freee etc.) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47881 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-21do not ast_hangup() on a NULL channel.rizzo1-2/+2
In the original code this would happen in the case of o->forwards >= AST_MAX_FORWARDS Likely an 1.2/1.4 isse as well - please someone have a look, while I am hunting a few more similar panics now. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47880 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-20Merged revisions 47864-47865 via svnmerge from tilghman1-2/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47864 | tilghman | 2006-11-20 14:01:58 -0600 (Mon, 20 Nov 2006) | 2 lines Oops, merge missed release of odbc object ........ ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47866 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-20Merged revisions 47850 via svnmerge from file2-4/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47850 | file | 2006-11-20 10:51:37 -0500 (Mon, 20 Nov 2006) | 2 lines Use a separate variable in the channel structure to store the context that the channel was dialed from. (issue #8382 reported by jiddings) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47851 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17This update fulfils the request of bug 7109, which claimed the language arg ↵murf3-16/+16
to ast_stream_and_wait() was redundant. Almost all calls just used chan->language, and seeing how chan is the first argument, this certainly seems redundant. A change of language could just as easily be done by simply changing the channel language before calling. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47821 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17Add ability to notify an external application/script that the voicemail ↵qwell1-8/+19
password was, while also still changing the password "internally". Issue 7371, initial patch by pdunkel, with rewrite/config comments by me. Additional modifications (yay bitmask) by pdunkel. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47814 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17Add ability to add custom queue log via manager interface.qwell1-0/+23
Issue 7806, patch by alexrch, with slight modifications by me. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47806 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16Merged revisions 47782 via svnmerge from qwell2-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47782 | qwell | 2006-11-16 17:19:46 -0600 (Thu, 16 Nov 2006) | 2 lines Fix a couple of typos. Initially pointed out by mrobinson. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47783 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16Merged revisions 47748 via svnmerge from file1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47748 | file | 2006-11-16 12:52:48 -0500 (Thu, 16 Nov 2006) | 2 lines Don't unreference the SLA object if there is no SLA object in the devicestate callback. (issue #8354 reported by loloski) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47749 f38db490-d61c-443f-a65b-d21fe96a405b