login | register
Wed 01 of Aug, 2007 [09:26 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.

Web www.voip-info.org
Shoutbox
  • Aykut, Wed 01 of Aug, 2007 [07:53 UTC]: Hi all, does anybody know about Thomson ST2030 SIP phone. I have upgraded it to latest version (1.56) but "Hold" and "Conf" features are not working after the upgrade ?? Do you know any solution or do you have Ver. 1.52 ?? Where can I find it?
  • Edward J Brown, Tue 31 of Jul, 2007 [23:33 UTC]: Has anybody experienced Choppy voice quality when using a Linksys SPA942 in an Asterisk Conference bridge? It works fine with my polycom and Cisco, but sucks with my Linksys.
  • www.astawerks.com, Fri 27 of Jul, 2007 [18:00 UTC]: does anyone use asterisk on top of clark connect? does it work good?
  • simon, Fri 27 of Jul, 2007 [14:16 UTC]: Hi All, Has anyone here managed to get the Cisco79x1 to successfully fail over to the backup proxy. I have 2 asterisk servers , handsets all register and function, except that backup proxy function doesn't work. Any working example would be very apprecia
  • Matthew Richmond, Thu 26 of Jul, 2007 [03:40 UTC]: using the page() application to page across our building...often the meetme conferences don't disconnect after the caller hangs up. Anyone else having this problem. (using Polycom phones)
  • Matthew Richmond, Wed 25 of Jul, 2007 [02:58 UTC]: thanks Nicholas Blasgen! I haven't worked with AGI before, but there's always a first! Thanks again!
  • Nicholas Blasgen, Tue 24 of Jul, 2007 [19:18 UTC]: Matthew Richmond, AGI will handle all that for you.
  • sam, Mon 23 of Jul, 2007 [16:39 UTC]: need help - certain voicemail extension will stop working and recording voicemail on asterisk - anyone know why and how to fix it? Thanks
  • john haji, Mon 23 of Jul, 2007 [14:55 UTC]: free calls to pakistan
  • bong, Sat 21 of Jul, 2007 [19:09 UTC]: hi good day to all can anyone help me how to configured the nortel sip to the signaling server and how to activate in mobile w/ sip compatible without mcs
Server Stats
  • Execution time: 0.49s
  • Memory usage: 2.20MB
  • Database queries: 32
  • GZIP: Disabled
  • Server load: 2.60

Asterisk cmd RetryDial

RetryDial

This is simply a variant of the Dial command.

RetryDial(announce|sleep|loops|Technology/resource[&Technology2/resource2...[|timeout[|options[|URL]]]])

Synopsis

Place a call, retrying on failure allowing optional exit extension.

Description

Attempt to place a call. If no channel can be reached, play the file defined by 'announce' waiting 'sleep' seconds to retry the call.
If the specified number of attempts matches 'loops' the call will continue with the next priority.

If 'loops' is set to -1, the call will retry endlessly. While waiting, a 1 digit extension may be dialed. If the 1 digit extension exists in the context defined in ${EXITCONTEXT}, the call will exit the RetryDial() application to that extension immmediately.
'sleep' defaults to 10 seconds if any value less than 1 is supplied.

All the arguements after the 'loops' parameter are passed directly to Dial() (show application Dial)

Example

 [vcon]
 exten => 1,1,Voicemail(${BOX})

 [mycon]
 exten => _1XXX,1,SetVar(BOX=${EXTEN})
 exten => _1XXX,2,SetVar(EXITCONTEXT=vcon)
 exten => _1XXX,2,RetryDial(please-wait|5|3|SIP/${BOX}|60|d)
 exten => _1XXX,3,Playback(sorry-pal)
 exten => _1XXX,4,Hangup

The file announces "I am currently busy, press 1 to leave me voicemail or stay on the line"
Because you added the 'd' flag you can now dial 1 even when the call is in the ring state. If you want to never let them hear the ringing just add the 'm' flag too.
It will try to call them for 60 seconds at a time and wait 5 sec between each failure in the event of a busy signal. This will repeat up to 3 times (that is what the 5|3 is for)

Details

See bug/patch 3313

This will not call the caller back, i.e. is not a auto-callback feature as such. This app is for a situation where you would play a file that says "I am currently on the phone, press 1 to leave me a voice mail or stay on the line to wait for me." or "press 1 to leave me a voicemail or 2 to try my cell" but once you hangup that's it, it gives up.

If the 'd' flag is set it trumps the 'H' flag and intercepts any dtmf while you are waiting for the call to be answered and returns that value on the spot. This allows you to dial an exit extension while waiting for the call to be answered. So, if you set this 'd' flag in the dialargs portion of the RetryDial() then you will be able to cancel out the call while waiting for the call to be picked up as well as when music-on-hold is playing.

See also



Go back to Asterisk - documentation of application commands

Created by JustRumours, Last modification by JustRumours on Sat 12 of Aug, 2006 [14:40 UTC]

Comments Filter

Re: RetryDial

by mike lips on Sunday 05 of February, 2006 [23:04:01 UTC]
Is this just a one line replacement for the campon, mini-queue in the tips and tricks???? It will still jump out if context cant be defined?

RetryDial

by clive on Monday 23 of January, 2006 [09:33:14 UTC]
It show RetryDial(announce|sleep|retries|dialargs) in the Asterisk CLI screen.
I believe that the " context " is not applicable in Asterisk V1.2.1.


Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2007 Arte Marketing, Inc.

Powered by bitweaver