返回列表 發帖

CMPhone setting in Asterisk 11

Below is my setting in sip.conf for working in and out CMPhone
  1. [general]
  2. context = default
  3. srvlookup = yes
  4. nat = force_rport,comedia ; Asterisk 11
  5. nat = yes ; Asterisk 1.8 or Asterisk 10
  6. externrefresh = 10
  7. autodomain = yes
  8. allowexternalinvites = no
  9. allowexternaldomains = no
  10. allowguest = no
  11. alwaysauthreject = yes
  12. port = 5060
  13. bindaddr = 0.0.0.0
  14. disallow = all
  15. allow = ulaw
  16. allow = alaw
  17. allow = g729
  18. allow = gsm
  19. allow = slin
  20. insecure = port,invite
  21. dtmfmode = rfc2833
  22. rfc2833compensate = yes
  23. faxdetect = yes
  24. registerattempts = 10
  25. relaxdtmf = yes
  26. notifyringing = yes
  27. notifyhold = yes
  28. notifycid = yes
  29. pedantic = yes ; yes for cmphone
  30. promiscredir = no

  31. subscribecontext = default


  32. register => 852350XXYYZ:password@202.0.179.3/852350XXYYZ

  33. [cmphone]
  34. type=peer
  35. host=202.0.179.3
  36. port=5060
  37. fromdomain=huawei.com
  38. fromuser=852350XXYYZ
  39. realm=huawei
  40. secret=password
  41. username=852350XXYYZ
  42. insecure=port,invite
  43. context=from-cmphone
  44. authname=852350XXYYZ
  45. dtmfmode=auto
  46. canreinvite=no
  47. qualify=no
  48. disallow = all
  49. allow = ulaw
  50. allow = alaw
  51. allow = g729
  52. **must inclue the following line in Asterisk 11
  53. icesupport = no
複製代碼
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.

The setting in Asterisk.conf remains
[options]
internal_timing = yes

返回列表