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

kinds of information pertaining to a section of code you are testing, without having to
                  see all of the other activity in the system. If you set the following in your dial plan:
                     exten => _X.,n,Verbose(2, ${SOME_VAR})
                  You can then use the CLI to set the verbosity to 2 or less (core set verbose 2), and you
                  will see output from the various calls to Verbose(), but very little else.
                  Read the section on Verbose() later in this appendix for more on how to use it. The
                  NoOp() application is best used as a place holder. For example, if you are setting a
                  Goto() point in your dialplan that is using a priority label, you can use NoOp() as the
                  destination point for that goto. For example,
                     exten => _X.,n(call_forward),NoOp()
                  is an excellent marker for pointing a jump in your dialplan to a spot. From that point
                  you can carry on with whatever logic you wanted to apply to that part of the extension
                  (judging by the label, it’d have something to do with call forwarding). The value of the
                  NoOp() is that when you don’t really know what sort of things you might want to move
                  around in relation to what follows that label, you can be sure you’ll never have to recode
                  the  label  itself.  It  will  never  do  anything  other  than  provide  a  destination  for  the
                  Goto(), so you can put it wherever you like and be sure it won’t introduce any unex-
                  pected behavior.
                  If this seems confusing, it is due to our inability to describe it right. Experiment with
                  Verbose() and NoOp() all in your dialplan (you can use them anywhere), and you will
                  quickly gain an understanding of how they can help you (especially if you are like us
                  and cause a lot of syntax errors).


               See Also
               Verbose(), Log()


               Page()                                          Opens one-way audio to multiple phones
               Page(Tech/chan1[&Tech/chan2]&[...][&Tech/chanN][|options])

               Places outbound calls to the given technology/resource and dumps them in to a con-
               ference bridge as muted participants. The original caller is dumped in to the conference
               as a speaker, and the room is destroyed when the original caller leaves. The following
               options may be specified:
               d
                   Full duplex audio. Allow the paged persons to respond to the caller.
               q
                   Quiet. Do not play a beep to the caller.
               r
                   Record the page. See the r option to MeetMe for more information.

                   exten => 123,1,Page(SIP/101&SIP/102&IAX2/iaxy123)

               416 | Appendix B: Application Reference
   439   440   441   442   443   444   445   446   447   448   449