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

NOANSWER
                       The channel did not answer in the time indicated by the ring-timeout option.
                   BUSY
                       The dialed channel is currently busy.
                   ANSWER
                       The channel answered the call.
                   CANCEL
                       The call was cancelled.
                   DONTCALL
                       The call was set to DONTCALL by the screening or privacy options.
                   TORTURE
                       The call was set to TORTURE by the screening or privacy options.
                   INVALIDARGS
                       Invalid arguments were passed to the Dial() application.
                       ; dial a seven-digit number on Zap channel 4
                       exten => 123,1,Dial(Zap/4/2317154)

                       ; dial the same number, but this time only have it ring for 10 seconds
                       ; before continuing on with the dialplan
                       exten => 124,1,Dial(Zap/4/2317154,10)
                       exten => 124,2,Playback(im-sorry)
                       exten => 124,3,Hangup()
                       ; dial the same number, but this time with no timeout, and using the
                       ; t, T, and m flags
                       exten => 125,1,Dial(Zap/4/2317154,,tTm)

                       ; dial extension 500 at a remote host (over the IAX protocol), using
                       ; the specified username and password
                       exten => 126,1,Dial(IAX2/username:password@remotehost/500)

                       ; dial a number, but limit the call to 5 minutes (300,000 milliseconds)
                       ; start warning the caller 4 minutes (240,000 milliseconds) in to the call,
                       ; and repeat the warning every 30 seconds (30,000 milliseconds)
                       exten => 127,1,Dial(Zap/4/2317154,,L[300000:240000:30000])

               See Also
               RetryDial()


               Dictate()                                                Virtual dictation machine
               Dictate([base_dir[,filename]])

               This application allows the recording and playback of files, similar to a traditional
               dictation machine. The base_dir parameter specifies the directory in which Asterisk




               388 | Appendix B: Application Reference
   411   412   413   414   415   416   417   418   419   420   421