aboutsummaryrefslogtreecommitdiffstats
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2008-06-22Let app_rpt compile.seanbright1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124596 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-22Merged revisions 124540 via svnmerge from murf1-3/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124540 | murf | 2008-06-21 20:54:52 -0600 (Sat, 21 Jun 2008) | 9 lines (closes issue #12910) Reported by: chris-mac Sorry, my testing did not contain the simple case of forkCDR(v), I am much embarrassed to admit. If I had, I would have more solidly initialized the opts element for varset. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124541 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-20Merged revisions 124450 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124450 | tilghman | 2008-06-20 18:12:33 -0500 (Fri, 20 Jun 2008) | 6 lines usleep with a value over 1,000,000 is nonportable. Changing to use sleep() instead. (closes issue #12814) Reported by: pputman Patches: app_rtp_sleep.patch uploaded by pputman (license 81) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124451 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Fix attachment behavior when using IMAP storage for voicemailsmmichelson1-4/+3
1. Filenames had an extra "msg" in the attachment name 2. The attachment was being saved twice (closes issue #12894) Reported by: jaroth Patches: imap_attach.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124180 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Older versions of GNU gcc do not allow 'NULL' as sentinel.mvanbaak4-26/+26
They want (char *)NULL as sentinel. An example is OpenBSD (confirmed on 4.3) that ships with gcc 3.3.4 This commit introduces a contstant SENTINEL which is declared as: #define SENTINEL ((char *)NULL) All places I could test compile on my openbsd system are converted. Update CODING-GUIDELINES to tell about this constant. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Merged revisions 124112 via svnmerge from mmichelson1-1/+27
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124112 | mmichelson | 2008-06-19 15:28:41 -0500 (Thu, 19 Jun 2008) | 8 lines Fix IMAP forwarding so that messages are sent to the proper mailbox. (closes issue #12897) Reported by: jaroth Patches: destination_forward.patch uploaded by jaroth (license 50) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124121 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Forwarding non-urgent IMAP messages could inadvertently cause the messagesmmichelson1-5/+9
to be marked urgent. This fixes that issue. (closes issue #12895) Reported by: jaroth Patches: urgent_forwarding.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123867 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Missing commatilghman1-1/+1
(closes issue #12891) Reported by: chris-mac git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123865 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Include original position in TRANSFER entries written to queue_log.seanbright1-4/+4
(closes issue #12888) Reported by: slavon Patches: app_queue_transfer_patch_trunk.diff uploaded by slavon (license 288) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123828 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-18A portion of the code which handled the 'c' queue option had beenmmichelson1-1/+4
removed. No telling when it happened. Anyway, it's back in now and works properly. (Based on issue reported on mailing list) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123652 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-18Silly pointers. This fixes a memory corruption I introducedmmichelson1-1/+1
with the attended transfer logging. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123650 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-18Channel lock janitor -- add locks around retrieval of channel variablestilghman1-13/+43
(closes issue #12840) Reported by: pputman Patches: app_dial_threadsafe3.patch uploaded by pputman (license 81) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123648 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Updates all usages of ast_tcptls_session_instance to be managed by reference ↵bbryant1-2/+1
counts so that they only get destroyed when all threads are done using them, and memory does not get free'd causing strange issues with SIP. This code was originally written by russellb in the team/group/issue_11972/ branch. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123546 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Add an option, specifying maximum analysis time for talk detection.tilghman1-22/+44
(closes issue #12149) Reported by: davevg Patches: app_talkdetect.c.diff uploaded by davevg (license 209) (Plus a few additional cleanups by moi) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123544 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Merged revisions 123274 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r123274 | mmichelson | 2008-06-17 10:56:55 -0500 (Tue, 17 Jun 2008) | 12 lines davidw pointed out that the holdtime calculation used by app_queue does not use "boxcar" filtering as the comments say. The term "boxcar" means that the number of samples used to calculate stays constant, with new samples replacing the oldest ones. The queue holdtime calculation uses all holdtime samples collected since the queue was loaded, so the comment has been changed to be accurate. (closes issue #12781) Reported by: davidw ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123275 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16(closes issue #12689)murf3-3/+3
Reported by: ys Many thanks to ys for doing the research on this problem. I didn't think it would be best to unlock the contexts and then relock them after the remove_extension2() call, so I added an extra arg to remove_extension2() and set it appropriately in each call. There were not that many. I considered forcing the code to lock the contexts before the call to remove_extension2(), but that would require a slightly greater degree of changes, especially since the find_context_locked is local to pbx.c I did a simple sanity test to make sure the code doesn't mess things up in general. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123165 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Changes response to the ExternalIVR() P command from pipe delimited to comma ↵ctooley1-1/+1
delimited. closes issue #12804 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123115 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Resurrected app_faxseanbright1-0/+741
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122834 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Fix a segfault by not trying to store a stack address formmichelson1-5/+17
long-term use. Instead use the heap. I can't believe this never happened *once* in my developer branch when I was testing. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122461 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12(closes issue 0012193)jpeeler1-1/+3
Reported by: davidw Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122433 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Recommitting revision 122228, which was accidentally revertedmmichelson1-14/+96
as a result of commit 122234. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122399 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Merged revisions 122311 via svnmerge from mmichelson1-2/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r122311 | mmichelson | 2008-06-12 13:50:58 -0500 (Thu, 12 Jun 2008) | 9 lines Properly play a holdtime message if the announce-holdtime option is set to "once." (closes issue #12842) Reported by: ramonpeek Patches: patch001.diff uploaded by ramonpeek (license 266) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122312 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. ↵jpeeler13-1269/+474
Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122234 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Merging the work done in the queue-log-atxfer branch. Themmichelson1-14/+96
net result of this work is that attended transfers made by queue members will now show up in the queue_log as a TRANSFER message instead of COMPLETECALLER as it had been. As far as the details go, I created a datastore which is attached to the calling channel just prior to when the caller is bridged with the queue member. If the calling channel is masqueraded, then during the "fixup" portion, the TRANSFER will be logged and the datastore will be removed. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122228 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Merged revisions 122137 via svnmerge from tilghman1-29/+28
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r122137 | tilghman | 2008-06-12 10:18:39 -0500 (Thu, 12 Jun 2008) | 8 lines Flipflop the sections for two options, since the section for 'X' (exit context) may otherwise absorb keypresses meant for 's' (admin/user menu). (closes issue #12836) Reported by: blitzrage Patches: 20080611__bug12836.diff.txt uploaded by Corydon76 (license 14) Tested by: blitzrage ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122174 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Merged revisions 122127 via svnmerge from murf1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r122127 | murf | 2008-06-12 08:51:44 -0600 (Thu, 12 Jun 2008) | 1 line Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer was redundant. Didn't spot it until I was resolving conflicts in trunk. Ugh. Redundant code removed. It wasn't harmful. Just dumb. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122128 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Merged revisions 122046 via svnmerge from murf1-6/+77
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r122046 | murf | 2008-06-12 07:47:34 -0600 (Thu, 12 Jun 2008) | 37 lines (closes issue #10668) Reported by: arkadia Tested by: murf, arkadia Options added to forkCDR() app and the CDR() func to remove some roadblocks for CDR applications. The "show application ForkCDR" output was upgraded to more fully explain the inner workings of forkCDR. The A option was added to forkCDR to force the CDR system to NOT change the disposition on the original CDR, after the fork. This involves ast_cdr_answer, _busy, _failed, and so on. The T option was added to forkCDR to force obedience of the cdr LOCKED flag in the ast_cdr_end, all the disposition changing funcs (ast_cdr_answer, etc), and in the ast_cdr_setvar func. The CHANGES file was updated to explain ALL the new options added to satisfy this bug report (and some requests made verbally and via email, irc, etc, over the past months/year) The 's' option was added to the CDR() func, to force it to skip LOCKED cdr's in the chain. Again, the new options should be totally transparent to existing apps! Current behavior of CDR, forkCDR, and the rest of the CDR system should not change one little bit. Until you add the new options, at least! ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122091 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10Merge another big set of changes from team/russell/eventsrussell1-1/+3
This commit merges in the rest of the code needed to support distributed device state. There are two main parts to this commit. Core changes: - The device state handling in the core has been updated to understand device state across a cluster of Asterisk servers. Every time the state of a device changes, it looks at all of the device states on each node, and determines the aggregate device state. That resulting device state is what is provided to modules in Asterisk that take actions based on the state of a device. New module, res_ais: - A module has been written to facilitate the communication of events between nodes in a cluster of Asterisk servers. This module uses the SAForum AIS (Service Availability Forum Application Interface Specification) CLM and EVT services (Cluster Management and Event) to handle this task. This module currently supports sharing Voicemail MWI (Message Waiting Indication) and device state events between servers. It has been tested with openais, though other implementations of the spec do exist. For more information on testing distributed device state, see the following doc: - doc/distributed_devstate.txt git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121559 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09Expand RQ_INTEGER type out to multiple types, one for each precisiontilghman3-6/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121367 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-08add a new argument to PrivacyManager to specify a contextmvanbaak1-5/+18
where the entered phone number is checked. You can now define a set of extensions/exten patterns that describe valid phone numbers. PrivacyManager will check that context for a match with the given phone number. This way you get better control. For example people blindly hitting 10 digits just to get past privacymanager Example line in extensions.conf: exten => incoming,n,PrivacyManager(3,10,,route-outgoing) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121197 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-08Fixes segfault when using ParkAndAnnounce. Also, loop made more efficient as ↵jpeeler1-3/+6
announce template only needs to be checked until the number of colon separated arguments run out, not the entire pointer storage array. Was done in a similiar fashion in 1.4, but here we're using less variables. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121131 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06For the purpose of making the changed syntax to ExecIf easier to transition,tilghman1-16/+41
allow the deprecated syntax (fixed for jmls on -dev). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120904 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-05Merge the adaptive realtime branch, which will make adding new required fieldstilghman3-0/+18
to realtime less painful in the future. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120789 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-05Conditionally load the AGI command gosub, depending on whether or not res_agitilghman1-10/+27
has been loaded, fix a return value in the loader, and ensure that the help workhorse header does not print on load. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120602 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-04Merged revisions 120513 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r120513 | mmichelson | 2008-06-04 17:05:33 -0500 (Wed, 04 Jun 2008) | 6 lines Make sure that the string we set will survive the unref of the queue member. Thanks to Russell, who pointed this out. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120514 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-04Merged revisions 120285 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r120285 | mmichelson | 2008-06-04 09:11:12 -0500 (Wed, 04 Jun 2008) | 7 lines Tab completion when removing a member should give the member's interface, not the name, since the interface is what is expected for the command. (closes issue #12783) Reported by: davevg ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120286 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-03Adding two new queue log events. The ADDMEMBER event is logged whenmmichelson1-0/+3
a dynamic realtime queue member is added to the queue, and the REMOVEMEMBER event is logged when a dynamic realtime member is removed. Since no calling channel is associated with these events the string "REALTIME" is placed where the channel's unique id is normally placed. (closes issue #12774) Reported by: atis Patches: queue_log_rt_members.patch uploaded by atis (license 242) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120166 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-03Use proper return values for a few application modulesrussell3-3/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120129 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Add app_fax from asterisk-addons, with some additional changes to resolve ↵russell1-0/+741
compiler warnings, as well as update to the APIs in spandsp 0.0.5. Spandsp 0.0.5 is being distributed under the LGPL, so we can move this module into the main tree. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119801 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Merged revisions 119530 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r119530 | russell | 2008-06-01 20:03:22 -0500 (Sun, 01 Jun 2008) | 2 lines Fix another typo in documentation ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119531 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-01Merged revisions 119478 via svnmerge from mvanbaak1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r119478 | mvanbaak | 2008-06-01 22:47:55 +0200 (Sun, 01 Jun 2008) | 2 lines small typo fix 'retires' => 'retries' ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119479 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-30Merged revisions 119404 via svnmerge from tilghman1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r119404 | tilghman | 2008-05-30 16:17:45 -0500 (Fri, 30 May 2008) | 6 lines When joinempty=strict, it only failed on join if there were busy members. If all members were logged out OR paused, then it (incorrectly) let callers join the queue. (closes issue #12451) Reported by: davidw ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119419 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-30Suppress warning about pbx structure already existingtilghman1-0/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119299 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-30Add native AGI command GOSUB, as invoking Gosub with EXEC does not worktilghman2-6/+109
properly. (closes issue #12760) Reported by: Corydon76 Patches: 20080530__bug12760.diff.txt uploaded by Corydon76 (license 14) Tested by: tim_ringenbach, Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119296 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Merged revisions 119012 via svnmerge from russell1-8/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r119012 | russell | 2008-05-29 14:04:52 -0500 (Thu, 29 May 2008) | 4 lines - Fix a typo in the argument to Playtones - use ast_safe_sleep() instead of calling the wait application (thanks to tilghman for pointing these out!) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119013 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Merged revisions 118961 via svnmerge from russell1-1/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118961 | russell | 2008-05-29 12:51:29 -0500 (Thu, 29 May 2008) | 3 lines - Mark app_milliwatt dependent on res_indications (thanks to jsmith) - fix a typo in a log message (thanks to qwell) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118962 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Merged revisions 118956 via svnmerge from russell1-9/+43
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118956 | russell | 2008-05-29 12:38:38 -0500 (Thu, 29 May 2008) | 3 lines Change milliwatt to use the proper tone by default (1004 Hz) instead of 1000 Hz. An option is there to use 1000 Hz for anyone that might want it. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118959 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Merged revisions 118858 via svnmerge from murf1-8/+89
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118858 | murf | 2008-05-28 18:25:28 -0600 (Wed, 28 May 2008) | 46 lines (closes issue #10668) (closes issue #11721) (closes issue #12726) Reported by: arkadia Tested by: murf These changes: 1. revert the changes made via bug 10668; I should have known that such changes, even tho they made sense at the time, seemed like an omission, etc, were actually integral to the CDR system via forkCDR. It makes sense to me now that forkCDR didn't natively end any CDR's, but rather depended on natively closing them all at hangup time via traversing and closing them all, whether locked or not. I still don't completely understand the benefits of setvar and answer operating on locked cdrs, but I've seen enough to revert those changes also, and stop messing up users who depended on that behavior. bug 12726 found reverting the changes fixed his changes, and after a long review and working on forkCDR, I can see why. 2. Apply the suggested enhancements proposed in 10668, but in a completely compatible way. ForkCDR will behave exactly as before, but now has new options that will allow some actions to be taken that will slightly modify the outcome and side-effects of forkCDR. Based on conversations I've had with various people, these small tweaks will allow some users to get the behavior they need. For instance, users executing forkCDR in an AGI script will find the answer time set, and DISPOSITION set, a situation not covered when the routines were first written. 3. A small problem in the cdr serializer would output answer and end times even when they were not set. This is now fixed. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118880 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28Update to the janitor project for making sure to be thread-safe whenmmichelson1-61/+71
retrieving the value of a channel variable. This covers app_queue. This commit also incorporates a logical change. Previously, if MixMonitor is to be used to record the call, all the arguments were parsed first. Then the MixMonitor app would be located. Now the order of these operations has been swapped. Now the app is located first so that we only go through the work of parsing the arguments if the app was found. (closes issue #12742) Reported by: snuffy Patches: bug_12742.diff uploaded by snuffy (license 35) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118783 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27Merged revisions 118509 via svnmerge from mmichelson1-7/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118509 | mmichelson | 2008-05-27 14:07:26 -0500 (Tue, 27 May 2008) | 11 lines Russell noted to me that in the case that separate threads use their own addressing system, the fix I made for issue 12376 does not guarantee uniqueness to the datastores' uids. Though I know of no system that works this way, I am going to change this right now to prevent trying to track down some future bug that may occur and cause untold hours of debugging time to track down. The change involves using a global counter which increases with each new chanspy_ds which is created. This guarantees uniqueness. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118514 f38db490-d61c-443f-a65b-d21fe96a405b