OBi110 being outbound trunks (GV, landline, OBiTalk) of Asterisk with one-stage dialling
本帖最後由 角色 於 2011-3-27 02:43 編輯
In an Asterisk server, an extension 1910 is created as follows:
sip.conf
;TW OBi110 SP2
[1910]
type=friend
username=TW OBi110
secret=password
host=dynamic
canreinvite=no
dtmfmode = auto
disallow=all
allow=ulaw,alaw,gsm
context=internal
The dialling plans in Asterisk to access the voice resources in the OBi110 are shown below. Other extensions are not shown for the sake of simplicity.
extensions.conf
;111 OBi110 GV
[trunk-obi110-gv]
exten => _111.,1,Dial(SIP/**1${EXTEN:3}@1910,,)
exten => _111.,n,Hangup()
;118 OBi110 PSTN
[trunk-obi110-pstn]
exten => _118.,1,Dial(SIP/**8${EXTEN:3}@1910,,)
exten => _118.,n,Hangup()
;119 OBi110 OBiTalk
[trunk-obi110-obitalk]
exten => _119.,1,Dial(SIP/**9${EXTEN:3}@1910,,)
exten => _119.,n,Hangup()
[internal]
include => trunk-obi110-gv
include => trunk-obi110-pstn
include => trunk-obi110-obitalk
exten => 1910,1,Dial(SIP/1910,,) ;OBi110 SP2
In OBi110 Settings: (Use OBi Expert to edit the following variable)
Voice Service >> SP2 Service >> X_InboundCallRoute =
{@>(<**1:>xx.):sp1},{@>(<**8:>xx.):li},{@>(<**9:>xx.):pp}
Using one of extensions in Asterisk to carry out the following tests:
1) Key sequence to make US/CAN telephone call via the OBi110's GV gateway
Press 111 + <US/CAN telephone number>
2) Key sequence to make local PSTN calls via the OBi110's LINE port gateway
Press 118 + <PSTN call>
3) Key sequence to make OBiTalk calls via the OBi110's OBiTalk gateway
Press 119 + <PSTN call>
YH |