summaryrefslogtreecommitdiff
path: root/apps
AgeCommit message (Collapse)Author
2007-06-06Issue 9869 - replace malloc and memset with ast_calloc, and other coding ↵Tilghman Lesher
guidelines changes git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06Please forgive this flood of tiny changes ... this will be cool when it worksRussell Bryant
how we want it to :) (testing mantis+svn) (issue #9828) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06Merged revisions 67804 via svnmerge from Mark Michelson
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67804 | mmichelson | 2007-06-06 14:26:55 -0500 (Wed, 06 Jun 2007) | 10 lines Fix for Issue 9810. There was a segfault under a specific set of circumstances: 1. VoiceMailMain was configured in the dialplan with an extension as its argument 2. A message was left for this mailbox 3. Tried to call VoiceMailMain but hung up before entering password. This was fixed by checking that a pointer was non-null prior to trying to dereference it. (Issue 9810, reported by xmarksthespot, patched by Corydon76 with modifications by me). ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06minor formatting change ... testing mantis/svnRussell Bryant
(issue #9828) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06Don't try to check the result of alloca ...Russell Bryant
... testing mantis/svn stuff ... (issue #9828) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06Fixing a crash wherein Asterisk would segfault when attempting to leave a ↵Mark Michelson
voicemail when IMAP storage was enabled. Though no bug was reported to the bugtracker, there was mention of this made as a note on bug 9810 by edhorton. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06Merged revisions 67626 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67626 | file | 2007-06-06 09:16:34 -0400 (Wed, 06 Jun 2007) | 2 lines Include macroexten while searching for a channel to pick up in case they are in a macro. (issue #9491 reported by jamesb63) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05Merged revisions 67558 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67558 | russell | 2007-06-05 18:01:44 -0500 (Tue, 05 Jun 2007) | 5 lines Fix some crashes related to the use of the "meetme" CLI command. The code for this command was not locking the conference list at all. (issue #9351, reported by and patch submitted by Junk-Y, committed patch is different and by me) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-05Merged revisions 67424 via svnmerge from Mark Michelson
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67424 | mmichelson | 2007-06-05 13:32:50 -0500 (Tue, 05 Jun 2007) | 5 lines Fix for bug number 9786, wherein voicemails saved to IMAP storage using extensions other than gsm were unable to be played over the phone. (Issue 9786, reporter: xmarksthespot, Patched by xmarksthe spot with revisions by me, reviewed by Russell Bryant). ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04Merged revisions 67066 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67066 | file | 2007-06-04 13:59:14 -0400 (Mon, 04 Jun 2007) | 2 lines Initialize cidname variable to nothing since it may be used without having been touched. (issue #9661 reported by dimas) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04Minor clean up. Constify a few variables and use ast_strlen_zero in a few ↵Joshua Colp
places. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04Add support for autocompleting start/stop options of the mixmonitor CLI ↵Joshua Colp
command. (issue #9862 reported by eliel) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01Merge major changes to the way device state is passed around Asterisk. The twoRussell Bryant
places that cared about device states were app_queue and the hint code in pbx.c. The changes include converting it to use the Asterisk event system, as well as other efficiency improvements. * app_queue: This module used to register a callback into devicestate.c to monitor device state changes. Now, it is just a subscriber to Asterisk events with the type, device state. * pbx.c hints: Previously, the device state processing thread in devicestate.c would call ast_hint_state_changed() each time the state of a device changed. Then, that code would go looking for all the hints that monitor that device, and call their callbacks. All of this blocked the device state processing thread. Now, the hint code is a subscriber of Asterisk events with the type, device state. Furthermore, when this code receives a device state change event, it queues it up to be processed by another thread so that it doesn't block one of the event processing threads. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01Merged revisions 66897 via svnmerge from Mark Michelson
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r66897 | mmichelson | 2007-06-01 16:09:30 -0500 (Fri, 01 Jun 2007) | 3 lines Submitting a fix for voicemail with IMAP storage. Attachments with format specified as gsm were duplicated (i.e. two attachments) were left. Thank you very much to xmarksthespot for submitting the patch that fixed this. (Issues 9787 and 8873, Reported by xmarksthespot and jerjer, patched by xmarksthespot) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-01Merged revisions 66879 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r66879 | russell | 2007-06-01 14:35:13 -0500 (Fri, 01 Jun 2007) | 2 lines List app_meetme as a module that app_page depends on. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31- Don't check if the list is empty needlesslyRussell Bryant
- Don't free structures before calling load_config(), because load_config() already does it - Use the existing functions for freeing the minivm structures instead of replicating the code (issue #9846, patch from eliel) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31Merged revisions 66770 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r66770 | tilghman | 2007-05-31 12:15:09 -0500 (Thu, 31 May 2007) | 10 lines Merged revisions 66744 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r66744 | tilghman | 2007-05-31 10:58:45 -0500 (Thu, 31 May 2007) | 2 lines Issue 9818 - Fix for issue 8329 breaks pbx_realtime. Issue 8329 will remain unfixed for pbx_realtime, but only because we lack core API to do it. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31Fix a crash on reload by using calloc() instead of malloc() to ensure thatRussell Bryant
data is properly initialized. (issue #9765, reported by MatsK, patch from eliel) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-31Issue #9842 - Doxygen updates by snuffy. Thanks!Olle Johansson
(Committed from Media Plaza in Utrecht, Netherlands - Open Source VoIP conference) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-30Merged revisions 66671 via svnmerge from Mark Michelson
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r66671 | mmichelson | 2007-05-30 18:26:39 -0500 (Wed, 30 May 2007) | 2 lines Fixed seg-faults when recording greetings in voicemail with IMAP enabled. (Issue No. 9734, reported by xmarksthespot, patched by me) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-30Issue 9477 - Improve menuselect labelsTilghman Lesher
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-28- Don't re-invent existing headers (some already existed in chan_sip)Olle Johansson
- Rename command so taht module name comes first git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-26Unlock the minivmlock when no configuration is found. (issue #9814 reported ↵Joshua Colp
by eliel) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-26Since this code now uses the API call for creating a detached thread, thereRussell Bryant
is no reason to keep a thread attribute structure on the conference structure. (Pointed out by Tony Mountifield on the asterisk-dev list) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-24Add ListAllVoicemailUsers manager command. (issue #8112 reported by Tony Zhao)Joshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-24Add a new API call for creating detached threads. Then, go replace all of theRussell Bryant
places in the code where the same block of code for creating detached threads was replicated. (patch from bbryant) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-24Merged revisions 65853 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r65853 | russell | 2007-05-24 10:04:14 -0500 (Thu, 24 May 2007) | 4 lines Ensure that frames are fully initialized. This will probably fix getting weird timestamp log messages in logs when using the Festival app. (issue #9781, patch by me) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-23Don't check for MWI event subscribers before creating the MWI event in ↵Russell Bryant
voicemail. MWI events get cached, so go ahead and always generate them so the cache gets populated. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-22Merged revisions 65501 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r65501 | russell | 2007-05-22 13:40:38 -0500 (Tue, 22 May 2007) | 3 lines List res_smdi as a dependency for app_voicemail and chan_zap (Thanks to mnicholson for pointing it out) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-22Merged revisions 65408 via svnmerge from BJ Weschke
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r65408 | bweschke | 2007-05-22 10:02:56 -0400 (Tue, 22 May 2007) | 3 lines Fix a problem with flag recognition. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-22Fix a couple of spots in the handling of device states that could lead to aRussell Bryant
double free. (issue #9772, reported by Mike Anikienko, fix by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-21I know we have talked about rewriting app_queue for Asterisk 1.6, but once IRussell Bryant
saw this, I couldn't help myself from changing it. Previously, for *every* device state change, app_queue would spawn a thread to handle it. Now, the device state callback just puts the state change in a queue and it gets handled by a single state change processing thread. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-18Merged revisions 65200 via svnmerge from Steve Murphy
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r65200 | murf | 2007-05-18 16:06:27 -0600 (Fri, 18 May 2007) | 9 lines Merged revisions 65172 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r65172 | murf | 2007-05-18 14:56:20 -0600 (Fri, 18 May 2007) | 1 line This update will fix the situation that occurs as described by 9717, where when several targets are specified for a dial, if any one them reports FAIL, the whole call gets FAIL, even though others were ringing OK. I rearranged the priorities, so that a new disposition, NULL, is at the lowest level, and the disposition get init'd to NULL. Then, next up is FAIL, and next up is BUSY, then NOANSWER, then ANSWERED. All the related set routines will only do so if the disposition value to be set to is greater than what's already there. This gives the intended effect. So, if all the targets are busy, you'd get BUSY for the call disposition. If all get BUSY, but one, and that one rings is not answered, you get NOANSWER. If by some freak of nature, the NULL value doesn't get overridden, then the disp2str routine will report NOANSWER as before. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-18Issue #5930 - Remove dependencies on res_adsi.so - clwadeOlle Johansson
A big THANK YOU to clwade for this patch. Minor modifications by me. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-18Merged revisions 64868 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r64868 | russell | 2007-05-17 21:48:51 -0500 (Thu, 17 May 2007) | 5 lines Fix a small bug I noticed while working on something else. app_queue did not unregister its device state monitoring callback in unload_module(). So, this would make Asterisk crash on the first device state change after you unload the module. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-17Merged revisions 64761 via svnmerge from Jason Parker
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r64761 | qwell | 2007-05-17 11:53:27 -0500 (Thu, 17 May 2007) | 12 lines Merged revisions 64758 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r64758 | qwell | 2007-05-17 11:52:38 -0500 (Thu, 17 May 2007) | 4 lines If we have a negative current message, we shouldn't go back even further... Issue 9727. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-17Merged revisions 64756 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r64756 | russell | 2007-05-17 11:47:29 -0500 (Thu, 17 May 2007) | 3 lines Increase the size of a buffer to support longer dial strings for channels. (issue #9291, reported and fix suggested by meni) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-17Merged revisions 64720 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r64720 | file | 2007-05-17 09:48:44 -0400 (Thu, 17 May 2007) | 2 lines Fix authuser support. (issue #9740 reported by xmarksthespot) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-14Don't allow rounding seconds to weird values that may cause "unexpected" ↵Jason Parker
results. Issue 9514. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-14Add 'c' option to app_queue which allows for continuing in the dialplan if ↵Jason Parker
the callee hangs up. Issue 9284, patch by lyl, modified a little bit by me (I felt 'continue' was better than 'keepalive') git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-10Fixing reload. Thanks to Mats Karlsson!Olle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-09Merged revisions 63566 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r63566 | tilghman | 2007-05-09 09:50:33 -0500 (Wed, 09 May 2007) | 10 lines Merged revisions 63565 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r63565 | tilghman | 2007-05-09 09:48:06 -0500 (Wed, 09 May 2007) | 2 lines Replicate fix from 51158 (app_voicemail) to app_directory (Issue 9224) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-08Merged revisions 63478 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r63478 | tilghman | 2007-05-08 17:38:02 -0500 (Tue, 08 May 2007) | 10 lines Merged revisions 63477 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r63477 | tilghman | 2007-05-08 17:19:15 -0500 (Tue, 08 May 2007) | 2 lines Issue 9602 - segfault in app_macro ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-08Merged revisions 63360 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r63360 | tilghman | 2007-05-08 01:22:37 -0500 (Tue, 08 May 2007) | 10 lines Merged revisions 63359 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r63359 | tilghman | 2007-05-08 01:20:16 -0500 (Tue, 08 May 2007) | 2 lines Issue 9527 - upon entering a folder, no message is selected (curmsg == -1), so deleting causes memory corruption (beyond bounds) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-07Make a minor tweak to admin_exec() - don't lock the conference list until itRussell Bryant
is actually necessary. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-07Add a new application, MeetMeChannelAdmin, which is similar to MeetMeAdmin,Russell Bryant
except it lets you operate on a channel by name instead of conference member number. It is very useful in combination with the 'X' option to ChanSpy. (issue #9671, patch by mnicholson, with some small modifications by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-02When a conference is created, the UNIQUEID of the channel that caused it to beRussell Bryant
created will now be stored. Then, every channel that joins the conference will have the MEETMEUNIQUEID channel variable set with this ID. This can be used to relate callers that come and go from long standing conferences. (issue #7295, patch by softins) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-01Merged revisions 62545 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r62545 | tilghman | 2007-05-01 16:34:43 -0500 (Tue, 01 May 2007) | 2 lines Bug 9590 - Memory leaks around find_user() (found by rayjay, different fixes by me) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-30This patch adds additional information to the EXITWITHKEY and EXITWITHTIMEOUTRussell Bryant
entries in the queue log. (issue #7561, reported and originally patched by fkasumovic, patch slightly modified and updated to trunk by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62462 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-28Enable the functionality of the 'o' option to "optimize talker" by default.Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62297 65c4cc65-6c06-0410-ace0-fbb531ad65f3