本帖最後由 bubblestar 於 2014-6-13 14:18 編輯
我用以下參數設定Asterisk 11 (CentOS 6.5 or Debian),都可以接通2bApp:- /etc/hosts
- 203.80.89.135 s2hkbntel.net s21.hkbntel.net
- #203.80.89.139 s2hkbntel.net s22.hkbntel.net
- #203.80.89.146 s2hkbntel.net s23.hkbntel.net
- #203.80.89.150 s2hkbntel.net s24.hkbntel.net
- sip.conf
- register = 36xxxxxxhk:mypasswd@s2hkbntel.net:5060/36xxxxxx
- [2bapp]
- type = peer
- defaultuser = 36xxxxxxhk
- fromuser = 36xxxxxxhk
- secret = mypasswd
- host = s2hkbntel.net
- fromdomain = s2hkbntel.net
- canreinvite = no
- insecure = port,invite
- qualify = yes
- ;nat=force_rport,comedia
- port = 5060
- context = from-2bapp
- dtmfmode = auto
- disallow = all
- allow = ulaw
- allow = alaw
複製代碼 |