Professional Documents
Culture Documents
Comandos Asterisk
Comandos Asterisk
sip.conf
[general] [1000] type=friend context=phones host=dynamic secret=guessthis -+---------------------------------------extensiones exten => 123,1,Answer()
In this example, the extension name is 123, the priority is 1, and the application is Answer(). Now, lets move ahead and explain priorities and applications. The following extension would answer the phone (in priority number 1), and then hang it up (in priority number 2):
exten => 123,1,Answer() exten => 123,2,Hangup()
Internally, Asterisk will calculate the next priority number every time it encounters an n. You should note, however, that you must always specify priority number 1. If you accidentally put an n instead of 1 for the first priority, youll find that the extension will not be available.