aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
AgeCommit message (Collapse)AuthorFilesLines
2007-08-06Extend the ast_senddigit and ast_dtmf_stream API calls to allow the duration ↵file1-3/+3
of the DTMF digit(s) to be specified and make the SendDTMF application have the capability to use it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Convert code that checks the _softhangup member of ast_channel directory to userussell1-2/+2
the ast_check_hangup() funciton. This function takes scheduled hangups into account. (closes issue #10230, patch by Juggie) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77858 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-27These fixes take care of two problems: a complaint in asterisk-dev that ↵murf1-0/+5
goto's aren't working in trunk, a side effect of the move to commas as arg seps in apps and funcs; and a problem I spotted myself with dial's 'e' option, where gotos were off by one, because I forgot to set the AUTOLOOP flag in the peer channel. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77520 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26Do a massive conversion for using the ast_verb() macrorussell1-80/+48
(closes issue #10277, patches by mvanbaak) Basically, this changes ... if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3, "Something\n"); to ... ast_verb(3, "Something\n"); git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23Merge the dialplan_aesthetics branch. Most of this patch simply converts ↵tilghman1-38/+30
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-19After some study, thought, comparing, etc. I've backed out the previous ↵murf1-89/+89
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-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 ↵murf1-5/+30
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-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-16Applications no longer need to call ast_module_user_add and ↵file1-10/+1
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 ↵file1-2/+0
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-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-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
2007-06-22Issue 9990 - New API ast_mkdir, which creates parent directories as ↵tilghman1-4/+4
necessary (and is faster than an outcall to mkdir -p) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71040 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Cleaning up a small disaster I created earliermurf1-11/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70607 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20As per 9228, now app_queue should have the proper machinery to do gosubs.murf1-5/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70531 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Merged revisions 70445 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r70445 | tilghman | 2007-06-20 14:29:23 -0500 (Wed, 20 Jun 2007) | 10 lines Merged revisions 70444 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70444 | tilghman | 2007-06-20 14:25:54 -0500 (Wed, 20 Jun 2007) | 2 lines Issue 9997 - Timelimit times out the wrong channel ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70446 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Merge work to make U(...) option work for Dialtilghman1-7/+56
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70358 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Via bug9228, no way to create macros via AEL, and some of the apps allow you ↵murf1-7/+88
to call macros..., I modded the apps that allow macro calls to allow gosubs calls also, to make them AEL compliant. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70161 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Add a massive set of changes for converting to use the ast_debug() macro.russell1-10/+5
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12Completely remove all of the code related to jumping to priority n + 101. yay!russell1-22/+4
(issue #9926, caio1982) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68970 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Merged revisions 68071 via svnmerge from file1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r68071 | file | 2007-06-07 10:21:59 -0400 (Thu, 07 Jun 2007) | 10 lines Merged revisions 68070 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r68070 | file | 2007-06-07 10:19:40 -0400 (Thu, 07 Jun 2007) | 2 lines Allow the 'g' option to work if used with the 'S' option. (issue #9888 reported by gasparz) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68072 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06Issue 9869 - replace malloc and memset with ast_calloc, and other coding ↵tilghman1-4/+4
guidelines changes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Merged revisions 67066 via svnmerge from file1-2/+2
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: http://svn.digium.com/svn/asterisk/trunk@67067 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18Merged revisions 65200 via svnmerge from murf1-0/+7
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: http://svn.digium.com/svn/asterisk/trunk@65202 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-17Merged revisions 64756 via svnmerge from russell1-1/+1
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: http://svn.digium.com/svn/asterisk/trunk@64757 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-13Merged revisions 61656 via svnmerge from file1-4/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r61656 | file | 2007-04-13 15:17:08 -0400 (Fri, 13 Apr 2007) | 10 lines Merged revisions 61655 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r61655 | file | 2007-04-13 15:15:12 -0400 (Fri, 13 Apr 2007) | 2 lines Add OUTBOUND_GROUP_ONCE variable to app_dial. This behaves the same as OUTBOUND_GROUP except it will get unset after use so it won't get accidentally inherited. (issue #BE-140) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61657 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-09Remove unused instances of unnamed enums.russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61116 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-09Merged revisions 60798 via svnmerge from file1-3/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r60798 | file | 2007-04-08 21:03:14 -0400 (Sun, 08 Apr 2007) | 10 lines Merged revisions 60797 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r60797 | file | 2007-04-08 20:59:29 -0400 (Sun, 08 Apr 2007) | 2 lines When calling a device that then forwards us elsewhere... we have to make our channels compatible if it is the only channel being dialed. (issue #9445 reported by marcelbarbulescu) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60799 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-27Properly hangup the original dialed channel, not the new channel that ↵file1-2/+3
appeared from the forwarding. (issue #9161 reported by PhilSmith) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57011 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-17Merged revisions 55154 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r55154 | file | 2007-02-16 22:55:30 -0500 (Fri, 16 Feb 2007) | 10 lines Merged revisions 55153 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r55153 | file | 2007-02-16 22:53:45 -0500 (Fri, 16 Feb 2007) | 2 lines Answer the channel before recording privacy information. (issue #8926 reported by lmamane) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55155 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 54924 via svnmerge from file1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54924 | file | 2007-02-16 13:51:15 -0500 (Fri, 16 Feb 2007) | 2 lines Need to check macro extension as well as macro context for directed pickup. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54925 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 54884 via svnmerge from file1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54884 | file | 2007-02-16 12:02:35 -0500 (Fri, 16 Feb 2007) | 2 lines Allow directed pickup to pick up the real context instead of the macro context if a Macro is used. (issue #8984 reported by jamesb63) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54885 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-15Merged revisions 54623 via svnmerge from file1-9/+13
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r54623 | file | 2007-02-15 11:19:39 -0500 (Thu, 15 Feb 2007) | 10 lines Merged revisions 54622 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r54622 | file | 2007-02-15 11:14:40 -0500 (Thu, 15 Feb 2007) | 2 lines Use a separate variable to indicate execution should continue instead of the return value. (issue #8842 reported by pluto70) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54624 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-14Merged revisions 54481 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54481 | file | 2007-02-14 16:07:23 -0500 (Wed, 14 Feb 2007) | 2 lines Forward begin DTMF frames as well as end. (issue #9068 reported by mhardeman) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54489 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-09Merged revisions 53749 via svnmerge from file1-1/+11
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r53749 | file | 2007-02-09 14:33:31 -0500 (Fri, 09 Feb 2007) | 2 lines Temporarily change musicclass on channel to one specified in Dial so that the 'm' option functions properly. (issue #8969 reported by christianbee) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03Merged revisions 53136 via svnmerge from russell1-3/+9
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r53136 | russell | 2007-02-03 14:44:20 -0600 (Sat, 03 Feb 2007) | 12 lines Merged revisions 53133 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r53133 | russell | 2007-02-03 14:38:13 -0600 (Sat, 03 Feb 2007) | 4 lines set the DIALSTATUS variable to contain "INVALIDARGS" when the dial application exits early because of invalid arguments instead of just leaving it empty. (issue #8975) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53137 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-10Merged revisions 50298 via svnmerge from file1-5/+15
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r50298 | file | 2007-01-09 23:55:13 -0500 (Tue, 09 Jan 2007) | 10 lines Merged revisions 50295 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r50295 | file | 2007-01-09 23:51:06 -0500 (Tue, 09 Jan 2007) | 2 lines Add another return value to dial_exec_full that indicates execution is going to continuing at a new extension/context/priority and to just let it slide. (issue #8598 reported by jon) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50302 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-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-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 47850 via svnmerge from file1-3/+3
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-16Merged revisions 47782 via svnmerge from qwell1-1/+1
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-14Make local copy of arguments to parse. (issue #8362 reported by homesick)file1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47623 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04move out another large block to a large function, and documentrizzo1-199/+194
some possibly missing parts in the privacy screening code. Now that it is more streamlined it is easier to see differences in handling the various cases. Have not tested the code in depth. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47189 f38db490-d61c-443f-a65b-d21fe96a405b