Section E.1. add

E.1. add

The add command contains many subcommands that allow you to add functionality to your Asterisk PBX without directly editing the configuration files.

When you add a new line to the dialplan your changes immediately become active, but changes made to the dialplan from the command line are not permanent until you save them (see save dialplan ). All comments are stripped from the extensions.conf file upon a save dialplan . The add commands are useful for making temporary changes and for ad hoc testing, but we recommend that permanent changes to the dialplan be made directly to extensions.conf in /etc/asterisk/ .

add extension

 add extension   exten   ,   priority   ,   app   ,   app_data   into   context   [replace] 

Adds a new extension into the specified context. If an extension with the same priority exists, and the optional replace argument is given, replaces the existing extension.

 add extension 500,1,Dial,IAX2/guest@misery.digium.com/s@default into local 

add ignorepat

 add ignorepat   pattern   into   context   

Adds a new ignore pattern into the specified context.

 add ignorepat 9 into local 

add queue member

 add queue member   channel   to   queue   [penalty   penalty   ] 

Allows you to add a channel to a specified queue, optionally specifying a penalty with the penalty option.

 add queue member SIP/1000-d448 to customer_service penalty 10 



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net