CMPhone setting in Asterisk 11
| Below is my setting in sip.conf for working in and out CMPhone Because of change in Asterisk 11, nat parameter needs to change. Besides, in Asterisk 11, icesupport is ON as default. It needs to switch off in the cmphone context. Otherwise, cannot dial out.複製代碼[general]
context = default
srvlookup = yes
nat = force_rport,comedia ; Asterisk 11
nat = yes ; Asterisk 1.8 or Asterisk 10
externrefresh = 10
autodomain = yes
allowexternalinvites = no
allowexternaldomains = no
allowguest = no
alwaysauthreject = yes
port = 5060
bindaddr = 0.0.0.0
disallow = all
allow = ulaw
allow = alaw
allow = g729
allow = gsm
allow = slin
insecure = port,invite
dtmfmode = rfc2833
rfc2833compensate = yes
faxdetect = yes 
registerattempts = 10
relaxdtmf = yes 
notifyringing = yes 
notifyhold = yes 
notifycid = yes 
pedantic = yes ; yes for cmphone
promiscredir = no
subscribecontext = default
register => 852350XXYYZ:password@202.0.179.3/852350XXYYZ
[cmphone]
type=peer
host=202.0.179.3
port=5060
fromdomain=huawei.com
fromuser=852350XXYYZ
realm=huawei
secret=password
username=852350XXYYZ
insecure=port,invite
context=from-cmphone
authname=852350XXYYZ
dtmfmode=auto
canreinvite=no
qualify=no
disallow = all
allow = ulaw
allow = alaw
allow = g729
**must inclue the following line in Asterisk 11
icesupport = no
 The setting in Asterisk.conf remains
 [options]
 internal_timing = yes
 |