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

; print the available channel name to the Asterisk CLI
                   exten => 123,2,Verbose(0,${AVAILORIGCHAN})

                           This application does not work correctly on MGCP channels.





               ChannelRedirect()                         Redirects a channel to a new location in the dialplan
               ChannelRedirect(channel,[[context,]extension,]priority)

               This application redirects the specified channel to a new priority in the dialplan. If
               extension is not specified, the current extension is assumed. If context is not specified,
               the current context will be assumed:
                   ; Transfer SIP/Bob to hold music when extension 123 is dialed
                   exten => 123,1,ChannelRedirect(SIP/Bob,124,1)

                   exten => 124,1,Answer()
                   exten => 124,2,MusicOnHold()
               See Also
               Transfer()


               ChanSpy()                 Listens to the audio on a channel, and optionally whisper to the calling channel

               ChanSpy([chanprefix[,options]])
               This application is used to listen to the audio going to and from an Asterisk channel.
               If the chanprefix parameter is specified, only channels beginning with this value will
               be spied upon.
               While a channel is being spied upon, the following actions may be performed:
                 • Dialing # cycles the volume level.
                 • Dialing * will cause the application to spy on the next available channel.
                 • Dialing a series of digits followed by # builds a channel name (which will be ap-
                   pended to chanprefix). For example, placing ChanSpy(Zap) and then dialing the
                   digits 42# while spying will begin spying on the channel Zap/42.
               The options parameter may contain zero or more of the following options:

               b
                   Only spy on channels that are involved in a bridged call.
               g(group)
                   Only spy on channels that contain a channel variable named  SPYGROUP, which
                   should contain group in an optional colon-delimited list.


               378 | Appendix B: Application Reference
   401   402   403   404   405   406   407   408   409   410   411