A1200P on DAHDI User Manual
OpenVox Communication Co. LTD.
URL: www.openvox.cn
26
# vim /etc/asterisk/extensions.conf
[from-pstn]
exten => s,1,Answer()
exten => s,n,Dial(dahdi/1,,r)
exten => s,n,Hangup()
[from-internal]
exten => 200,1,Dial(dahdi/7/outgoing_number)
exten => 200,2,Hangup()
Figure 10 dial plan
You should write the destination number instead of the
outgoing_number in the above dial plan. The above dial
plan achieves that when an extension telephone dials 200,
Asterisk will transfer through channel 7 to the destination.
While a call comes from PSTN line, Asterisk answers firstly, and then
gets through the extension set which connects to channel 1.
After saving your dialplan, please run
"
asterisk –r
"
, then execute
"
reload
"
in the CLI. Next you are able to make calls.