Monday, April 5, 2010

Call Success

I tweaked the test dialplan so it plays back the file "tt-weasels" when the number "500" is dialed from XLite. The file played back successfully.

The dialplan:
[globals]

[general]

[default]
exten => s,1,Verbose(1,Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()

[incoming_calls]

[internal]
exten => 500,1,Verbose(1,Echo test application)
exten => 500,n,Playback(tt-weasels)
exten => 500,n,Hangup()

[phones]
include => internal

Some things to keep in mind:
-The book still uses the pipe | symbol as a delimiter. This has since been replaced with the comma, and the asterisk CLI will show a warning if you have a pipe in the dialplan.
-I turned off the various demo contexts from "make samples" by editing modules.conf with the following lines:
; Turns off the pbx_ael "demo"-created contexts in the dialplan
noload => pbx_ael.so
noload => app_queue.so
noload => app_dial.so
noload => features.so
(; precedes comments)
-If you make a change to the dialplan you have to reload it in the asterisk CLI with dialplan reload.

No comments:

Post a Comment