Skip to Content
Asterisk: The Future of Telephony
book

Asterisk: The Future of Telephony

by Jim Van Meggelen, Jared Smith, Leif Madsen
September 2005
Intermediate to advanced
408 pages
16h 20m
English
O'Reilly Media, Inc.
Content preview from Asterisk: The Future of Telephony

Name

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

Synopsis

    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 0, 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()

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Asterisk: The Future of Telephony, 2nd Edition

Asterisk: The Future of Telephony, 2nd Edition

Jim Van Meggelen, Jared Smith, Leif Madsen
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 0596009623Supplemental ContentCatalog PageErrata