我set Elastix2.2 set 只能打出 不能打入
我在角色的Asterisk Programming Language的HKBN 2b settings改出來試用
例如2B NO 是36121234 pw:12345678
1) Edit /etc/hosts, add the following line:
203.80.89.135 s2hkbntel.net s21.hkbntel.net
2)pbx--> Trunk--> Add SIP Trunk
Trunk Name:hkbn2b
Outbound Caller ID:36121234
Outgoing Settings:
Trunk Name:hkbn2b
PEER Details:
type=peer
nat=yes
username=36121234hk
secret=12345678
port=5060
host=s2hkbntel.net
fromuser=36121234hk
fromdomain=s2hkbntel.net
canreinvite=no
insecure=invite
disallow=all
allow=alaw&ulaw
dtmfmode=auto
context=from-hkbn2b
outboundproxy=203.80.89.135
quality=no
Registration
Register String:
36121234hk:12345678@s2hkbntel.net:5060/36121234
if this can not use, you will change 203.80.89.135 s2hkbntel.net s21.hkbntel.net to 203.80.89.139 s2hkbntel.net s22.hkbntel.net and outboundproxy=203.80.89.135 to outboundproxy=203.80.89.139
3)pbx--> Outbound Routes ---> Add Route
Route Name: hkbn2b_outside
Route CID:36121234
Dial Patterns that will use this Route:
如果在打出號碼前要加9
() + 9 | [ / ]
Trunk Sequence for Matched Routes
0 hkbn2b
最後可以參考角色Asterisk Programming Language的HKBN 2b settings
http://www.telecom-cafe.com/foru ... 19&highlight=2b |