aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-03RetryDial should accept a 0 argument, but it does not, because atoi does not ↵tilghman1-2/+2
distinguish between 0 and error (closes issue #10106) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73052 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Issue 9997 - Timelimit times out the wrong channeltilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Allow the 'g' option to work if used with the 'S' option. (issue #9888 ↵file1-1/+4
reported by gasparz) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68070 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18This update will fix the situation that occurs as described by 9717, where ↵murf1-0/+7
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/branches/1.2@65172 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-13Add OUTBOUND_GROUP_ONCE variable to app_dial. This behaves the same as ↵file1-4/+12
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/branches/1.2@61655 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-09When calling a device that then forwards us elsewhere... we have to make our ↵file1-3/+5
channels compatible if it is the only channel being dialed. (issue #9445 reported by marcelbarbulescu) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@60797 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-17Answer the channel before recording privacy information. (issue #8926 ↵file1-0/+1
reported by lmamane) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@55153 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-15Use a separate variable to indicate execution should continue instead of the ↵file1-10/+14
return value. (issue #8842 reported by pluto70) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@54622 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03set the DIALSTATUS variable to contain "INVALIDARGS" when the dial applicationrussell1-7/+6
exits early because of invalid arguments instead of just leaving it empty. (issue #8975) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53133 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-10Add another return value to dial_exec_full that indicates execution is going ↵file1-4/+11
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/branches/1.2@50295 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19Free localuser structure when we fail to dial (issue #8612 reported by rizzo)file1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48584 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01if Dial() is going to send music-on-hold to the calling party, it has to ↵kpfleming1-0/+1
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/branches/1.2@48192 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16Fix a couple of typos in applications.. Initially spotted by mrobinson.qwell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47780 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19fixes some verbose vs debug issues. patch from bug 2617mogorman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43269 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-05make sure the priv-callerintros directory exists before trying to create a filerussell1-1/+8
there (issue #7659, patch by hads, with some modifications by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@38928 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09Handle hangup during recording of screened name (issue #7304 reported by ↵file1-7/+16
kulldominique) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@33294 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24Merge branch for bug 6264 (Privacy option 2 returns dial-status ANSWER / ↵file1-3/+10
option_priority_jumping not respected) (reported by jkoopmann and branch by murf git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@30035 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-16Inherit channel variables during call forwards when going through chan_local ↵file1-0/+4
(issue #7095 reported by raarts) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@27594 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 Correct application documentation to make users aware that certain options ↵bweschke1-1/+4
cannot be used in conjunction with others. #6666 (chotaire) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@24567 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11Bug 6490 - telco intercept should report NOANSWER instead of CHANUNAVAILtilghman1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@19397 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11handle call time limit properly when warning is requested _after_ call would ↵kpfleming1-1/+16
hae already ended (issue #6356) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@19301 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-19revert the change made in revision 12927 in favor of keeping the originalrussell1-3/+5
behavior of the option. The documentation has now been updated to reflect the actual behavior. (issue #6523) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@13550 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14when using the G() option to Dial, fix sending the called channel to 1 priorityrussell1-1/+0
beyond what was specified (issue #6523) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@12927 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-25ensure hangup cause code is handled properly when channel does not return a ↵kpfleming1-0/+1
frame (issue #6346) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8608 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11fix a little typorussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7957 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-13restore ability of caller to hangup calls that are still ringing (issue #5839)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7453 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-30fix DIALEDTIME when call has not been answered (issue #5862)russell1-6/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7234 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-25issue #5850russell1-4/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-2@7196 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14fix a typo in the RetryDial descriptionrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7095 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-12issue #5720kpfleming1-5/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7083 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11update the descriptions of a couple more appsrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7073 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11more cleanups to application descriptionsrussell1-84/+114
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7072 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5602kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7006 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-07application doc updatekpfleming1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6992 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06Convert some built-in applications to use new args parsing macros.russell1-1/+1
Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6987 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06issue #5605russell1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6979 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06Dial janitor patch (bug #5613)markster1-8/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6970 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-03flags usage simplificationkpfleming1-125/+108
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6955 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-03major update to arg/option parsing APIs and documentationkpfleming1-26/+26
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6953 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-02uhh... oopskpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6947 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-02upgrade Dial() app to use API-based argument/option parsingkpfleming1-363/+255
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6946 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26remove unnecessary checks before calls to ast_strlen_zerorussell1-12/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-20fix up help text (issue #5479)russell1-5/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6834 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-19Massive cleanups to applications for LOCAL_USER handling and some other things.russell1-12/+21
In general, LOCAL_USER_ADD/REMOVE should be the first/last thing called in an application. An exception is if there is some *fast* setup code that might halt the execution of the application, such as checking to see if an argument exists. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6832 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-18it's a good idea to unregister everything before calling ↵russell1-4/+11
STANDARD_HANGUP_LOCALUSERS git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6828 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-14ensure Dial() options are sorted in help output (issue #5386)kpfleming1-40/+40
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6784 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-13add auto-monitor support (issue #5411)kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6773 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-05properly report hangupcause when ast_request() fails for the last (or only) ↵kpfleming1-0/+2
target of a dial operation (issue #5394, different fix) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6735 f38db490-d61c-443f-a65b-d21fe96a405b