aboutsummaryrefslogtreecommitdiffstats
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2007-07-24Merged revisions 76801 via svnmerge from mmichelson1-11/+19
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r76801 | mmichelson | 2007-07-24 11:26:58 -0500 (Tue, 24 Jul 2007) | 13 lines Added a membercount variable to call_queue struct which keeps track of the number of logged in members in a particular queue. This makes it so that the 'n' option for Queue() can act properly depending on which strategy is used. If the strategy is roundrobin, rrmemory, or ringall, we want to ring each phone once before moving on in the dialplan. However, if any other strategy is used, we will only ring one phone since it cannot be guaranteed that a different phone will ring on subsequent attempts to ring a phone. As a side effect of this, the QUEUE_MEMBER_COUNT dialplan function now just reads the membercount variable instead of traversing through the member list to figure out how many members there are. Special thanks to blitzrage for helping to test this out. (closes issue #10127, reported by bcnit, patched by me, tested by blitzrage) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76804 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23Merged revisions 76708 via svnmerge from tilghman1-0/+7
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r76708 | tilghman | 2007-07-23 17:38:06 -0500 (Mon, 23 Jul 2007) | 4 lines It was our stated intention for 1.4 that files created in app_voicemail should depend upon the umask. Unfortunately, mkstemp() creates files with mode 0600, regardless of the umask. This corrects that deficiency. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76709 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23Merge the dialplan_aesthetics branch. Most of this patch simply converts ↵tilghman19-525/+480
applications using old methods of parsing arguments to using the standard macros. However, the big change is that the really old way of specifying application and arguments separated by a comma will no longer work (e.g. NoOp,foo|bar). Instead, the way that has been recommended since long before 1.0 will become the only method available (e.g. NoOp(foo,bar). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76703 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23Merged revisions 76618 via svnmerge from file1-2/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r76618 | file | 2007-07-23 14:48:51 -0300 (Mon, 23 Jul 2007) | 2 lines Allow app_morsecode to build on PPC Linux by putting the value of the digit char in an int. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76619 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21One small documentation update made to accompany 10154, the upgrading of the ↵murf1-1/+1
queue ringing to allow periodic announcments git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76222 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-21This update was supplied in 10154; to allow announcemnts if the 'r' option ↵murf1-21/+37
(ringing) is provided. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76220 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Add support for default "say mode" (whether to use the "old" method or "new" ↵qwell1-22/+75
method. "new" method being config file) Add support for autocomplete of "say load" CLI command. Patch by IgorG (closes issue #10243) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76216 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Merged revisions 76139 via svnmerge from mmichelson1-3/+9
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r76139 | mmichelson | 2007-07-20 13:42:27 -0500 (Fri, 20 Jul 2007) | 6 lines When using users.conf for the entries in the directory, if multiple users had the same last name, only the first user listed would be available in the directory. (closes issue #10200, reported by mrskippy, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76140 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19After some study, thought, comparing, etc. I've backed out the previous ↵murf4-96/+96
universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75983 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19This repairs a 'warning: ISO C90 forbids mixed declarations and code' ↵murf1-1/+2
message that cripples my dev-mode enabled build git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75982 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19Merged revisions 75978 via svnmerge from mmichelson1-85/+82
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r75978 | mmichelson | 2007-07-19 13:59:30 -0500 (Thu, 19 Jul 2007) | 3 lines The diff on this looks pretty big but all I did was remove a pointless if statement (always evaluates true). ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75979 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19Merged revisions 75969 via svnmerge from mmichelson1-103/+69
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r75969 | mmichelson | 2007-07-19 11:26:10 -0500 (Thu, 19 Jul 2007) | 10 lines Changes in handling return values of several functions in app_queue. This all started as a fix for issue #10008 but now includes all of the following changes: 1. Simplifying the code to handle positive return values from ast API calls. 2. Removing the background_file function. 3. The fix for issue #10008 (closes issue #10008, reported and patched by dimas) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75977 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19Fix trunk where I broke it earlier (for ast_strftime branch)tilghman1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75841 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75749 via svnmerge from tilghman1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r75749 | tilghman | 2007-07-18 15:40:18 -0500 (Wed, 18 Jul 2007) | 10 lines Merged revisions 75748 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75748 | tilghman | 2007-07-18 15:31:36 -0500 (Wed, 18 Jul 2007) | 2 lines Store prior to copy (closes issue #10193) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merge in ast_strftime branch, which changes timestamps to be accurate to the ↵tilghman6-58/+60
microsecond, instead of only to the second git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75658 via svnmerge from dhubbard1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r75658 | dhubbard | 2007-07-18 12:56:30 -0500 (Wed, 18 Jul 2007) | 9 lines Merged revisions 75657 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75657 | dhubbard | 2007-07-18 12:48:33 -0500 (Wed, 18 Jul 2007) | 1 line removed the word 'pissed' from ast_log(...) function call for BE-90 ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75659 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18This corrects the problem with flags and %lld formats on 64-bit machines, ↵murf1-1/+1
where uint64_t is NOT acceptable for %lld, and also works on 32-bit machines. At least, with gcc. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75585 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Minor code tweaks. Variables were being checked wrong in some situations and ↵file1-9/+6
didn't need to be checked in others. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75566 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75529 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r75529 | tilghman | 2007-07-18 07:29:41 -0500 (Wed, 18 Jul 2007) | 2 lines Using a freed frame causes crashes (closes issue #9317) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75530 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Merged revisions 75405 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r75405 | mmichelson | 2007-07-17 15:03:48 -0500 (Tue, 17 Jul 2007) | 6 lines Fixing an error I made earlier. ast_fileexists can return -1 on failure, so I need to be sure that we only enter the if statement if it is successful. Related to my fix to issue #10186 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75406 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17via 10206, I have added an option (e) to Dial to allow the h exten to get ↵murf4-12/+37
run on peer. Had to upgrade ast_flag stuff to 64 bits to do this. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75400 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Initialize a variable to avoid a warning when the compilerrizzo1-1/+1
(and/or the optimization level) may think it is used uninitialized. The code was indeed correct, but unfortunately the result of some compiler checks such as -Wunused and -Wuninitialized depends heavily on the optimization level. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75365 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Fix an incorrect parenthesization (TODO: Find a better word) in app_dialqwell1-1/+1
Pointed out by Fanzhou Zhao Closes issue #10216 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75351 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Merged revisions 75253 via svnmerge from mmichelson1-5/+16
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r75253 | mmichelson | 2007-07-16 13:16:15 -0500 (Mon, 16 Jul 2007) | 8 lines Restoring functionality from 1.2 wherein Retrydial will not exit if there is no announce file specified. This change makes it so that if there is no announce file specified, the application will continue until finished (or caller hangs up). If a bogus announce file is specified, then a warning message will be printed saying that the file could not be found, but execution will still continue. (closes issue #10186, reported by jon, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75254 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16I found this sillyness when I did my ast_module_user conversion. Return ↵file1-29/+29
immediately if no data was passed to the Verbose application. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75227 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Applications no longer need to call ast_module_user_add and ↵file68-709/+46
ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75200 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16It is no longer required for each module that deals with a channel to call ↵file63-329/+42
ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Merged revisions 75078 via svnmerge from mmichelson1-2/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r75078 | mmichelson | 2007-07-13 15:15:30 -0500 (Fri, 13 Jul 2007) | 13 lines Merged revisions 75066 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75066 | mmichelson | 2007-07-13 15:10:39 -0500 (Fri, 13 Jul 2007) | 5 lines Fixed an issue where chanspy flags were uninitialized if no options were passed. What triggered this investigation was an IRC chat where some people's quiet flags were set while others' weren't even though none of them had specified the q option. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75082 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Use the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.file1-5/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74616 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Allow the native formats of a channel to influence the audio that is going ↵file1-2/+2
to the engine. The best format will try to be chosen with an ultimate fallback to signed linear if possible. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74570 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74476 via svnmerge from mmichelson1-1/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r74476 | mmichelson | 2007-07-10 18:32:52 -0500 (Tue, 10 Jul 2007) | 5 lines Forwarding a message with IMAP storage was storing the message in the sender's box instead of the forwarded mailbox. (closes issue #10138, reported and patched by jaroth) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74477 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74428 via svnmerge from qwell1-10/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 (closes issue #10158) ................ r74428 | qwell | 2007-07-10 14:58:53 -0500 (Tue, 10 Jul 2007) | 14 lines Merged revisions 74427 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74427 | qwell | 2007-07-10 14:57:20 -0500 (Tue, 10 Jul 2007) | 6 lines Fix an issue where it was possible to have a service level of over 100% Between the time recalc_holdtime and update_queue was called, it was possible that the call could have been hungup. Move both additions to the same place, so this won't happen. Issue 10158, initial patch by makoto, modified by me. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74429 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74317 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 (Closes issue #10170) ................ r74317 | qwell | 2007-07-10 10:38:32 -0500 (Tue, 10 Jul 2007) | 12 lines Merged revisions 74316 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74316 | qwell | 2007-07-10 10:37:54 -0500 (Tue, 10 Jul 2007) | 4 lines Fix a small typo in description in of Voicemail() application. Issue 10170, patch by casper. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74318 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Fix building that was broken by recent monitor.h changes. Thanks Russell ↵qwell1-3/+3
for pointing this out (and pointing out what I probably did to prevent gcc from fixing it - don't ctrl-C builds) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74272 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Merged revisions 74120 via svnmerge from mmichelson1-13/+13
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r74120 | mmichelson | 2007-07-09 13:32:50 -0500 (Mon, 09 Jul 2007) | 6 lines The n option for Queue should make the queue exit immediately after failure to reach any members and should not be dependent on the timeout value passed to Queue (closes issue #10127, reported by bcnit, repaired by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74121 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Add Queue and DestinationChannel headers to the AgentCalled manager eventrussell1-1/+3
to be more like the rest of the events in this module. (closes issue #10114, patch by kwakwaversal) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74084 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Merged revisions 74047 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r74047 | mmichelson | 2007-07-09 09:57:41 -0500 (Mon, 09 Jul 2007) | 4 lines Fixed a logic error in leave_voicemail. Pass the mailbox instead of the context to inbox_count when the context is "default." (closes issue #10135, reported by yannj, repaired by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74048 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Implementation of a feature that will disable "missed calls" counters on SIP ↵oej1-5/+13
phones. If the call is answered by another phone, other phones won't display the call as "missed". You can also add an option to the dial command so that you can have a "followme" scenario and not count the calls as "missed" when you cancel the call. Thanks to Ramon and Frank for feedback on this feature. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74024 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Merged revisions 73985 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r73985 | tilghman | 2007-07-08 23:03:20 -0500 (Sun, 08 Jul 2007) | 2 lines Doxygen formatting fixes; fixes errors while 'make progdocs'. (Closes issue #10104) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73994 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06Merged revisions 73727 via svnmerge from mmichelson1-2/+18
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r73727 | mmichelson | 2007-07-06 11:36:17 -0500 (Fri, 06 Jul 2007) | 8 lines Fixing a rare case which causes voicemail to crash when compiled with IMAP storage. inboxcount has the possibility of finding an "interactive" vm_state when no persistent "non-interactive" vm_state exists for that mailbox. If this should happen when someone attempts to leave a message, it results in a crash. This patch, along with my commit in revision 72670 fix issue 10053, reported by jaroth. closes issue #10053 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73728 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Add the ability to play an announcement to queue caller just before bridgingqwell1-0/+11
Issue 7479, patch by tristan_mahe. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73549 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Remove directory creation of directories we've never used.tilghman1-12/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73432 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Merged revisions 73400 via svnmerge from mmichelson1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r73400 | mmichelson | 2007-07-05 10:59:41 -0500 (Thu, 05 Jul 2007) | 5 lines Correcting a minor CLI bug I found. When issuing the queue show command, if you type queue show and then press tab, you can continue pressing tab and it will keep auto-completing queue names even though only 1 queue can be used as an argument. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73402 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Merged revisions 73355 via svnmerge from file1-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r73355 | file | 2007-07-05 11:21:44 -0300 (Thu, 05 Jul 2007) | 10 lines Merged revisions 73349 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73349 | file | 2007-07-05 11:19:14 -0300 (Thu, 05 Jul 2007) | 2 lines Tweak spy locking. (issue #9951 reported by welles) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73359 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Merged revisions 73316 via svnmerge from file1-2/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r73316 | file | 2007-07-05 10:22:13 -0300 (Thu, 05 Jul 2007) | 10 lines Merged revisions 73315 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73315 | file | 2007-07-05 10:19:17 -0300 (Thu, 05 Jul 2007) | 2 lines Reset ServicelevelPerf variable back to 0 if we are unable to calculate it each time... otherwise we will get previous values. (issue #10117 reported by noriyuki) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73317 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03mkstemp doesn't specify a file mode, so we should chmod it to ↵qwell1-0/+5
VOICEMAIL_FILE_MODE Taken from a larger patch by ltd - the rest of which is no longer necessary in trunk. Closes issue #9231 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73175 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03Fix a build warning, and potential issue if option p is not set at all.qwell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73174 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03Add support for changing the exit key from # to any DTMF.qwell1-7/+27
This does not break existing configs - the arguments to p are optional. Issue 8827, initial patch by junky, mostly rewritten by fw to re-use option p, further modified by me. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73144 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03Fix up the device state processing thread in app_queue so that it's notrussell1-2/+4
possible for there to be entries in the queue and the thread is just sleeping (Thanks to mmichelson for bringing the problem to my attention) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73127 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03Merged revisions 73053 via svnmerge from tilghman1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r73053 | tilghman | 2007-07-03 07:38:53 -0500 (Tue, 03 Jul 2007) | 10 lines Merged revisions 73052 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73052 | tilghman | 2007-07-03 07:34:14 -0500 (Tue, 03 Jul 2007) | 2 lines RetryDial should accept a 0 argument, but it does not, because atoi does not distinguish between 0 and error (closes issue #10106) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73054 f38db490-d61c-443f-a65b-d21fe96a405b