Page 455 - Asterisk™: The Future of Telephony
P. 455

a
                   Store any stacked records.
               w
                   Store the current CDR record before resetting it.
               v
                   Save CDR variables.

                   ; write a copy of the current CDR record, and then reset the CDR
                   exten => 123,1,Answer()
                   exten => 123,2,Playback(tt-monkeys)
                   exten => 123,3,ResetCDR(wv)
                   exten => 123,4,Playback(tt-monkeys)

               See Also
               ForkCDR(), NoCDR()


               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 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 trans-
               fer 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)

               See Also
               Dial()


               Return()                                         Returns from a Gosub() or GosubIf()
               Return()

               Returns from a previously invoked Gosub() or GosubIf(). If there was no previous in-
               vocation of Gosub() or GosubIf(), Return() exits abnormally.


                                                                            RetryDial() | 427
   450   451   452   453   454   455   456   457   458   459   460