本帖最後由 角色 於 2013-5-21 13:39 編輯
回復 26# alexccy
Using OBi110 as FXO gateway for Asterisk Server
1. Create a SIP account to OBi110 SP2 as follows:
sip.conf
;TW OBi110 SP2
[1910]
type=friend
username=TW OBi110
secret=password for SP2 of OBi110
host=dynamic
canreinvite=no
dtmfmode = auto
context=internal
2. Generate suitable dialplan in Asterisk server for the resource available
Prefix = 111. (**1 resoruce, SP1)
Prefix = 118. (**8 resoruce, PSTN FXO)
Prefix = 001. (**1 resoruce, SP1, GV)
Prefix = 00852. (**8 resoruce, PSTN FXO if connected HK PSTN fixed line)
Prefix = 119. (**9 resoruce, Obitalk)
extensions.conf
;110 OBi110 AA
[trunk-obi110-aa]
exten => _110,1,Dial(SIP/**0@1910,,)
exten => _110,n,Hangup()
;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()
;001 OBi110 PSTN
[trunk-obi110-pstn-001]
exten => _001.,1,Dial(SIP/**1${EXTEN:3}@1910,,)
exten => _001.,n,Hangup()
;00852 OBi110 OBiTalk
[trunk-obi110-pstn-00852]
exten => _00852.,1,Dial(SIP/**8${EXTEN:5}@1910,,)
exten => _00825.,n,Hangup()
;119 OBi110 OBiTalk
[trunk-obi110-obitalk]
exten => _119.,1,Dial(SIP/**9${EXTEN:3}@1910,,)
exten => _119.,n,Hangup() |