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

Starts a while loop. Execution will return to this point when EndWhile() is called, until
               expr is no longer true. If a condition is met causing the loop to exit, Asterisk continues
               execution of the dialplan on the next priority after the corresponding EndWhile().
                   exten => 123,1,Set(COUNT=1)
                   exten => 123,2,While($[ ${COUNT} < 5 ])
                   exten => 123,3,SayNumber(${COUNT})
                   exten => 123,4,Set(COUNT=$[${COUNT} + 1])
                   exten => 123,5,EndWhile()

               See Also
               EndWhile(), ExitWhile(), GotoIf()


               Zapateller()                            Uses a special information tone to block telemarketers
               Zapateller(options)

               Generates a special information tone to block telemarketers and other computer-dialed
               calls from bothering you.
               The options argument is a pipe-delimited list of options. The following options are
               available:

               answer
                   Causes the line to be answered before playing the tone.
               nocallerid
                   Causes Zapateller to play the tone only if no Caller ID information is available.
                       ; answer the line, and play the SIT tone if there is no Caller
                       ID information
                       exten => 123,1,Zapateller(answer|nocallerid)

               See Also
               PrivacyManager()


               ZapBarge()                                        Barges in on (monitors) a Zap channel
               ZapBarge([channel])

               Barges in on a specified Zap channel, or prompts if one is not specified. The people on
               the channel won’t be able to hear you and will have no indication that their call is being
               monitored.
               If channel is not specified, you will be prompted for the channel number. Enter 4# for
               Zap/4, for example.
                   exten => 123,1,ZapBarge(Zap/2)
                   exten => 123,2,Hangup()


                                                                           Zapateller() | 447
   470   471   472   473   474   475   476   477   478   479   480