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

See Also
               The EVAL, Exec(), TryExec()


               ExitWhile()                Exit from a While() loop, whether or not the conditional has been satisfied
               ExitWhile()

               Will cause a While() loop to exit whether or not the conditional expression has been
               satisfied.
                   exten => 123,1,Set(COUNT=1)
                   exten => 123,n,While($[${COUNT} < 5])
                   exten => 123,n,GotoIf($[${COUNT} != 3]?continue)
                   exten => 123,n,ExitWhile()
                   exten => 123,n(continue),NoOp()
                   exten => 123,n,SayNumber(${COUNT})
                   exten => 123,n,Set(COUNT=$[${COUNT} + 1])
                   exten => 123,n,EndWhile()

               See Also
               While(), ContinueWhile(), EndWhile()


               ExtenSpy()              Listen to the audio on an extension, and optionally whisper to the calling channel
               ExtenSpy([exten@context[,options]])

               This application is used to listen to the audio going to and from an Asterisk channel.
               Only channels created by outgoing calls for the specified extension will be selected for
               spying.
               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
               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.
               q
                   Quiet mode. Tells the application not to beep or read the selected channel’s name
                   when spying begins.




                                                                            ExitWhile() | 393
   416   417   418   419   420   421   422   423   424   425   426