先決條件: 假設你已經成功把Asterisk (trixbox)的Extension各自分配給 SPA3102 或 SPA3000的 Line 1 及 PSTN,並且已取得註冊。
1. Login to your device, then click on Admin Login and then click Advanced
2. Go to the PSTN tab
3. Under Proxy and Registration, set the Proxy to the IP Address of your PBX
4. For Make Call Without Reg and Ans Call Without Reg, hit the drop down menu and select yes
5. Under Dial Plans, go to Dial Plan 1 and switch it to: (S0<:17185551212@0.0.0.0:5060>).Replace 17185551212 with your local phone number, and 0.0.0.0 with your PBX's IP Address.
6. Under Voip-to-PSTN Gateway Setup, make sure that Line 1 VoIP Caller DP is 1 and VoIP Caller Default DP is 3
7. Under FXO Timer Values (sec), confirm the following:
VoIP Answer Delay: 0
PSTN Answer Delay: 3
8. Now, create a sip trunk in the PBX Web Interface. Name the trunk what you want, and under Maximum Channels, put 1 in there.
Under PEER Details, put the following:
type=peer
qualify=yes
port=5061
nat=no
insecure=very
host=SPA3000/SPA3102 IP
disallow=all
context=from-pstn
canreinvite=no
allow=ulaw
USER Context: from-trunk
USER Details:
type=user
port=5060
nat=no
insecure=very
host=trixbox IP
disallow=all
context=from-pstn
canreinvite=no
allow=ulaw
9. Save the settings and add this trunk to your outbound route.
10. To set up your inbound route, go to Inbound Routes and under DID, input your phone number in the following format: 17185551212
溫馨提示: 設定ATA之前,請Backup原來的設定。那麼,無論你如何改變設定或改到不似人形,甚至失敗,都可以輕易立刻還原。
[ 本帖最後由 bubblestar 於 2009-7-4 18:58 編輯 ] |