www.atcom.cn
16
3
Check the ports status
1)
Start asterisk
[root@localhost asterisk]# asterisk –vvgc
*CLI> reload
2)
Run pri show spans command
You can get the following port information, all of the four ports are in up status.
*CLI> pri show spans
PRI span 1/0: Provisioned, Up, Active
PRI span 2/0: Provisioned, Up, Active
PRI span 3/0: Provisioned, Up, Active
PRI span 4/0: Provisioned, Up, Active
4
Edit a dial-plan in extensions.conf
[from-internal]
exten=>300,1,Dial(dahdi/g1/100)
exten=>300,2,hangup()
exten=>400,1,Dial(dahdi/g2/200)
exten=>400,2,hangup()
[from-pstn]
exten=>100,1,Playback(hello-world)
exten=>100,2,Dial(dahdi/g1/${EXTEN})
exten=>100,3,Hangup()
exten=>200,1,Playback(hello-world)
exten=>200,2,Dial(dahdi/g2/${EXTEN})
exten=>200,3,Hangup()
5
Use a registered sip phone to call from the 30 channels of port 1 to the 30 channels of port 4,
and call from the 30 channels of port 2 to the 30 channels of port 3