aboutsummaryrefslogtreecommitdiffstats
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2008-07-21Fix a bug where SENDTEXTSTATUS isn't set properly when it isn't bbryant1-6/+3
supported on a channel (yet _another_ useful patch by eliel). (closes issue #13081) Reported by: eliel Patches: app_sendtext.c.patch uploaded by eliel (license 64) Tested by: eliel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132508 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Remove libresample from the Asterisk source tree. It is now available in itsrussell1-1/+4
own repository, and must be installed like any other library for Asterisk to use. The two modules that require it are codec_resample and app_jack. To install libresample: $ svn co http://svn.digium.com/svn/libresample/trunk libresample $ cd libresample $ ./configure $ make $ sudo make install This code is currently in our own repository because the build system did not include the appropriate targets for building a dynamic library or for installing the library. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132390 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Enable higher quality resampling, as it doesn't have a noticeable performancerussell1-1/+1
impact on my machine .. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132388 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-17Document that the duration of dtmf may be passed tommichelson1-4/+6
the SendDTMF application. Also correct the default pause between digits. (closes issue #13102) Reported by: eliel Patches: app_senddtmf.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131824 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-16Janitor project: convert free to ast_freebbryant1-2/+2
(closes issue #13082) Reported by: eliel Patches: app_rpt.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131529 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-16Merged revisions 131369 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r131369 | mmichelson | 2008-07-16 15:23:02 -0500 (Wed, 16 Jul 2008) | 14 lines Move the init_queue call back to where it used to be (changed Sept 12 last year). It was moved then to prevent a memory leak. Since then, the same memory leak recurred and was fixed in a better way. Now it has been found that the placement of this init_queue call can cause problems if a realtime queue has values changed to an empty string. The problem is that the default value for that queue parameter would not be set. (closes issue #13084) Reported by: elbriga ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131375 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-16Merged revisions 131357 via svnmerge from mmichelson1-3/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r131357 | mmichelson | 2008-07-16 14:37:08 -0500 (Wed, 16 Jul 2008) | 6 lines Apparently, "thread safety" is important, whatever that means. :P (Thanks Russell!) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131358 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-16Merged revisions 131299 via svnmerge from mmichelson1-1/+9
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r131299 | mmichelson | 2008-07-16 13:57:34 -0500 (Wed, 16 Jul 2008) | 13 lines Make absolutely certain that the transfer datastore is removed from the calling channel once the caller is finished in the queue. This could have weird con- sequences when dialing local queue members when multiple transfers occur on a single call. Also fixed a memory leak that would occur when an attended transfer occurred from a queue member. (closes issue #13047) Reported by: festr ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131300 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-15Merged revisions 130959 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r130959 | tilghman | 2008-07-15 12:19:13 -0500 (Tue, 15 Jul 2008) | 8 lines astman_send_error does not need a newline appended -- the API takes care of that for us. (closes issue #13068) Reported by: gknispel_proformatique Patches: asterisk_1_4_astman_send.patch uploaded by gknispel (license 261) asterisk_trunk_astman_send.patch uploaded by gknispel (license 261) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131044 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-15Fix memory leak in app_queue when a device state is changed but it isn't bbryant1-0/+1
a member of any queue. (closes issue #13073) Reported by: eliel Patches: app_queue.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131015 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-14Merged revisions 130792 via svnmerge from mmichelson1-6/+7
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r130792 | mmichelson | 2008-07-14 12:50:21 -0500 (Mon, 14 Jul 2008) | 8 lines Add a check to the CAN_EARLY_BRIDGE macro in app_dial to be sure there are no audiohooks present on the channels involved. This fixed a one-way audio situation I had in my test setup. I couldn't find any open issues that suggested one-way audio with regards to mixmonitor (or other audiohook) usage, though. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@130794 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-11Janitor patch to change uses of sizeof to ARRAY_LENbbryant3-7/+7
(closes issue #13054) Reported by: pabelanger Patches: ARRAY_LEN.patch2 uploaded by pabelanger (license 224) Tested by: seanbright git-svn-id: http://svn.digium.com/svn/asterisk/trunk@130129 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-10Removed the fn2 field from the vm_state structure.mmichelson1-13/+7
fn2 was used in three functions. In every case, it was initialized in the function it was used in. This meant there was no need to have it in a malloc'd structure just taking up space. Furthermore two of the functions it was used in were completely unnecessary since fn2 was set to exactly the same value as the vm_state's fn string. fn2 was a char array sized at PATH_MAX. On my system, PATH_MAX is 4096. This equates to a 4K memory savings per vm_state allocated. Since there is a vm_state malloc'd for every voicemail user on the system, this could potentially add up nicely if there are lots of users. In addition, a vm_state is allocated on the stack each time a caller calls the VoiceMailMain application, meaning that there is a significant stack savings with this patch too. Of course, a single vm_state struct still takes up approximately 20K on my system (when using IMAP storage. Without IMAP storage, there would be about another 300 bytes fewer usage), even with this removal. Further optimizations are probably possible, but most likely not as easy as this one. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129734 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-10Fixes a bug where the interface for a queue member gets reloaded as the ↵bbryant1-3/+3
state_interface, if a state_interface was set, on reload because the state_interface isn't stored in the ast_db. (closes issue #13043) Reported by: jvandal Patches: app_queue.patch uploaded by jvandal (license 413) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129684 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Fix compilation error when IMAP storage is enabledmmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129270 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Merged revisions 129149 via svnmerge from tilghman1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r129149 | tilghman | 2008-07-08 15:27:47 -0500 (Tue, 08 Jul 2008) | 8 lines Cause SIP to return a 480 instead of a 404 when a sip peer exists, but is not registered. (closes issue #12885) Reported by: ibc Patches: 20080701__bug12885__2.diff.txt uploaded by Corydon76 (license 14) Tested by: ibc ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129152 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Janitor project to convert sizeof to ARRAY_LEN macro.bbryant3-6/+6
(closes issue #13002) Reported by: caio1982 Patches: janitor_arraylen5.diff uploaded by caio1982 (license 22) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129045 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Update app_fax for better compatibility with spandsp 0.0.5. Add a call torussell1-7/+7
t38_terminal_release, and make sure that the phase E handler gets called with proper status. (closes issue #13020) Reported by: dimas Patches: v1-appfax.patch uploaded by dimas (license 88) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129006 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Merged revisions 128856 via svnmerge from tilghman1-3/+7
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r128856 | tilghman | 2008-07-07 19:01:30 -0500 (Mon, 07 Jul 2008) | 7 lines Check for non-NULL before stripping characters. (closes issue #12954) Reported by: bfsworks Patches: 20080701__bug12954.diff.txt uploaded by Corydon76 (license 14) Tested by: deti ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128857 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-07Merged revisions 128812 via svnmerge from tilghman1-3/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r128812 | tilghman | 2008-07-07 18:21:52 -0500 (Mon, 07 Jul 2008) | 2 lines Stop using deprecated method, as requested by Kevin. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128830 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-07Crapmmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128733 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-07If imapfolder=foo were set in voicemail.conf, then when calling VoiceMailMain,mmichelson1-2/+6
app_voicemail would attempt to play a file called vm-foo instead of playing vm-INBOX to play the "new" sound file. This commit fixes that issue. This may fix one of the problems reported in issue #12987 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128731 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-07Get app_voicemail compiling when IMAP storage is used.mmichelson1-12/+12
Brought up by reporter on issue #12987 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128690 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-03Merged revisions 127892,127895 via svnmerge from kpfleming1-5/+0
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r127892 | kpfleming | 2008-07-03 17:18:38 -0500 (Thu, 03 Jul 2008) | 6 lines a couple of small Solaris-related fixes (closes issue #11885) Reported by: snuffy, asgaroth ........ r127895 | kpfleming | 2008-07-03 17:20:16 -0500 (Thu, 03 Jul 2008) | 3 lines remove this, it has been moved to the main Makefile ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127903 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-03Make change proposed by andrew53 on bugtrackermmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127857 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-03Thanks to a suggestion from seanbright, print a warning if the attachmentmmichelson1-2/+6
of the whisper or barge audiohooks fails. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127856 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-03Fix buildmmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127852 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-03Fix a crash when attempting to spy on an unbridged channel.mmichelson1-6/+9
(closes issue #12986) Reported by: andrew53 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127831 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-03Added a new option, "timeoutpriority" to queues.conf. A detailedmmichelson1-2/+15
explanation of the change may be found in configs/queues.conf.sample (closes issue #12690) Reported by: atis git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127720 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-02Oopstilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127622 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-02Keep ast_app_inboxcount API compatible with 1.6.0.tilghman1-19/+39
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127609 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-02Fix some crashlike bugs because flag could be NULL in play_record_review().tilghman1-8/+14
(Closes issue #12892) Reported by: jaroth Patch originally by jaroth, fixed by me. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127564 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Merged revisions 127244 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r127244 | mmichelson | 2008-07-01 18:36:40 -0500 (Tue, 01 Jul 2008) | 5 lines Add error message to failed open(2) calls inside the copy() function of app_voicemail. This idea came as part of my work in helping to resolve issue #12764. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127245 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01another minor ast_channel memory size decrease... for nearly all channels, ↵kpfleming2-10/+4
'dialcontext' is only going to be set once during the channel's lifetime, so make it a string field instead of a char array git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126960 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-30fix an uninitialized variablerizzo1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126571 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-27Remove debug messagemmichelson1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125856 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-27Ensure the thread-safety of the monexec variable in app_queue.mmichelson1-1/+6
Thanks to Russell for pointing out the problem git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125855 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-27Make this compile with dev-mode onmmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125666 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-27The monitor-join option for queues was deprecated in favor of usingmmichelson1-1/+5
MixMonitor to mix audio. However, it was pointed out to me that because of this, the command set for the MONITOR_EXEC variable is ignored as well. This means that people can't do their own custom mixing commands at the end of recordings in order to make, for instance, stereo recordings of calls. With this patch, app_queue will set the "joinfiles" variable for the channel's monitor if MONITOR_EXEC is not zero-length. This means that for normal audio mixing, MixMonitor is still the preferred choice, but we allow custom mixing to be done with the two Monitor streams if desired. (closes issue #12923) Reported by: snyfer git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125649 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-26Improve consistency between app_dial and app_queue with regardsmmichelson1-2/+0
to how language is handled between two channels whose native language is different. Prior to this patch, app_dial would have the callee inherit the caller's language, and app_queue would not. After this patch, app_dial no longer has the language inheritance capability. This seems to make the most sense since it seems more natural for a person to hear files played back in his/her native language instead of the language of the person on the far end of the call. See the CHANGES file for hints on how to keep the previous behavior of app_dial if desired. (closes issue #12489) Reported by: bcnit git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125647 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-26Fix a really stupid mistakemmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125591 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-26Merged revisions 125585 via svnmerge from mmichelson1-0/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r125585 | mmichelson | 2008-06-26 17:52:39 -0500 (Thu, 26 Jun 2008) | 11 lines Add the interface of a queue member to the output of the "queue show" command so that it can easily be associated with a queue member's name. This helps so that the appropriate queue member can be removed or paused since the interface is required, not the member's name. (closes issue #12783) Reported by: davevg Patches: app_queue.diff uploaded by davevg (license 209) with small mod from me ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125586 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-26Merged revisions 125476 via svnmerge from mmichelson1-5/+19
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r125476 | mmichelson | 2008-06-26 15:56:01 -0500 (Thu, 26 Jun 2008) | 11 lines Prior to this patch, the "queue show" command used cached information for realtime queues instead of giving up-to-date info. Now realtime is queried for the latest and greatest in queue info. (closes issue #12858) Reported by: bcnit Patches: queue_show.patch uploaded by putnopvut (license 60) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125477 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-26Don't play "your message has been saved" twice.tilghman1-1/+5
(closes issue #12893) Reported by: jaroth Patches: duplicate_saved.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125438 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-25Merged revisions 125132 via svnmerge from kpfleming6-12/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r125132 | kpfleming | 2008-06-25 17:21:30 -0500 (Wed, 25 Jun 2008) | 10 lines allow tonezone to live in a different place than DAHDI/Zaptel, since dahdi-tools and dahdi-linux are now separate packages and can be installed in different places don't include tonezone.h in dahdi_compat.h, because only a couple of modules need it get app_rpt building again after the DAHDI changes (closes issue #12911) Reported by: tzafrir ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125138 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-24Merged revisions 124910 via svnmerge from tilghman1-13/+38
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124910 | tilghman | 2008-06-24 16:08:52 -0500 (Tue, 24 Jun 2008) | 8 lines Occasionally control characters find their way into CallerID. These need to be stripped prior to placing CallerID in the headers of an email. (closes issue #12759) Reported by: RobH Patches: 20080602__bug12759__2.diff.txt uploaded by Corydon76 (license 14) Tested by: RobH ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124912 f38db490-d61c-443f-a65b-d21fe96a405b
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