RetryDial( )


RetryDial( ) Attempts to place a call, and retries on failure

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

Attempts to place a call. If no channel can be reached, plays 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 in the dialplan. If loops is set to , the call will retry endlessly.

While waiting, a one-digit extension may be dialed . If that extension exists in either the context defined in ${EXITCONTEXT} (if defined) or the current one, the call will transfer to that extension immediately.

All arguments after loops are passed directly to the Dial( ) application.

 ; attempt to dial the number three times via IAX, retrying every five      seconds  exten => 123,1,RetryDial(priv-trying,5,3,IAX2/VOIP/8885551212,30)  ; if the caller presses 9 while waiting, dial the number on the Zap/4      channel  exten => 9,1,RetryDial(priv-trying,5,3,Zap/4/8885551212,30)  

SeeAlso

Dial( )



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net