本帖最後由 角色 於 2013-9-14 19:48 編輯
我的settings好像与你的不一样,请看
sip.conf- [general]
- srvlookup=yes
- nat=yes
- realm=sip.myasterisk.org
- externhost=sip.myasterisk.org
- fromdomain=sip.myasterisk.org
- localnet=10.0.88.0/255.255.255.0
- externrefresh = 1
- maxexpiry=120
- defaultexpirey=300
- bindport=5060
- qualify=yes
- disallow=all
- allow=ulaw,alaw,gsm,g729
- alwaysauthreject=yes
- tos_sip=cs3
- tos_audio=ef
- tos_video=af41
- pedantic=yes
- context=front-desk
- ;HKBN 2b
- register => 31234567hk:mypassword@s2hkbntel.net:5060/31234567
- [hkbn2b]
- type=peer
- username=31234567hk
- secret=mypassword
- port=5060
- host=s2hkbntel.net
- fromuser=31234567hk
- fromdomain=s2hkbntel.net
- canreinvite=no
- canredirect = no
- insecure=port,invite
- dtmfmode=auto
- context=from-hkbn
複製代碼 extensions.conf- [internal]
- exten => _X.,1,Dial(SIP/${EXTEN}@hkbn2b,,r)
- exten => _X.,n,Hangup()
- [from-hkbn]
- exten => 31234567,1,Dial(SIP/2001,,r)
- exten => 31234567,n,Huangup()
複製代碼 /etc/hosts contains- 127.0.0.1 localhost localhost
- 10.0.88.6 MyNAS MyNAS
- 203.80.89.135 s2hkbntel.net s21.hkbntel.net
複製代碼 |