mgcp.conf.sample 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ;
  2. ; MGCP Configuration for Asterisk
  3. ;
  4. [general]
  5. ;port = 2427
  6. ;bindaddr = 0.0.0.0
  7. ; See qos.tex or Quality of Service section of asterisk.pdf for a description of these parameters.
  8. ;tos=cs3 ; Sets TOS for signaling packets.
  9. ;tos_audio=ef ; Sets TOS for RTP audio packets.
  10. ;cos=3 ; Sets 802.1p priority for signaling packets.
  11. ;cos_audio=5 ; Sets 802.1p priority for RTP audio packets.
  12. ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
  13. ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
  14. ; MGCP channel. Defaults to "no". An enabled jitterbuffer will
  15. ; be used only if the sending side can create and the receiving
  16. ; side can not accept jitter. The MGCP channel can accept jitter,
  17. ; thus an enabled jitterbuffer on the receive MGCP side will only
  18. ; be used if the sending side can create jitter and jbforce is
  19. ; also set to yes.
  20. ; jbforce = no ; Forces the use of a jitterbuffer on the receive side of a MGCP
  21. ; channel. Defaults to "no".
  22. ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
  23. ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
  24. ; resynchronized. Useful to improve the quality of the voice, with
  25. ; big jumps in/broken timestamps, usually sent from exotic devices
  26. ; and programs. Defaults to 1000.
  27. ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a MGCP
  28. ; channel. Two implementations are currently available - "fixed"
  29. ; (with size always equals to jbmax-size) and "adaptive" (with
  30. ; variable size, actually the new jb of IAX2). Defaults to fixed.
  31. ; jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set.
  32. ; The option represents the number of milliseconds by which the new
  33. ; jitter buffer will pad its size. the default is 40, so without
  34. ; modification, the new jitter buffer will set its size to the jitter
  35. ; value plus 40 milliseconds. increasing this value may help if your
  36. ; network normally has low jitter, but occasionally has spikes.
  37. ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
  38. ;-----------------------------------------------------------------------------------
  39. ;[dlinkgw]
  40. ;host = 192.168.0.64
  41. ;context = default
  42. ;canreinvite = no
  43. ;line => aaln/2
  44. ;line => aaln/1
  45. ;; The MGCP channel supports the following service codes:
  46. ;; # - Transfer
  47. ;; *67 - Calling Number Delivery Blocking
  48. ;; *70 - Cancel Call Waiting
  49. ;; *72 - Call Forwarding Activation
  50. ;; *73 - Call Forwarding Deactivation
  51. ;; *78 - Do Not Disturb Activation
  52. ;; *79 - Do Not Disturb Deactivation
  53. ;; *8 - Call pick-up
  54. ;
  55. ; known to work with Swissvoice IP10s
  56. ;[192.168.1.20]
  57. ;context=local
  58. ;host=192.168.1.20
  59. ;callerid = "John Doe" <123>
  60. ;callgroup=0 ; in the range from 0 to 63
  61. ;pickupgroup=0 ; in the range from 0 to 63
  62. ;nat=no
  63. ;threewaycalling=yes
  64. ;transfer=yes ; transfer requires threewaycalling=yes. Use FLASH to transfer
  65. ;callwaiting=yes ; this might be a cause of trouble for ip10s
  66. ;cancallforward=yes
  67. ;line => aaln/1
  68. ;
  69. ;[dph100]
  70. ;
  71. ; Supporting the DPH100M requires defining DLINK_BUGGY_FIRMWARE in
  72. ; chan_mgcp.c in addition to enabling the slowsequence mode due to
  73. ; bugs in the D-Link firmware
  74. ;
  75. ;context=local
  76. ;host=dynamic
  77. ;dtmfmode=none ; DTMF Mode can be 'none', 'rfc2833', or 'inband' or
  78. ; 'hybrid' which starts in none and moves to inband. Default is none.
  79. ;slowsequence=yes ; The DPH100M does not follow MGCP standards for sequencing
  80. ;line => aaln/1
  81. ; known to work with wave7optics FTTH LMGs
  82. ;[192.168.1.20]
  83. ;accountcode = 1000 ; record this in cdr as account identification for billing
  84. ;amaflags = billing ; record this in cdr as flagged for 'billing',
  85. ; 'documentation', or 'omit'
  86. ;context = local
  87. ;host = 192.168.1.20
  88. ;wcardep = aaln/* ; enables wildcard endpoint and sets it to 'aaln/*'
  89. ; another common format is '*'
  90. ;callerid = "Duane Cox" <123> ; now lets setup line 1 using per endpoint configuration...
  91. ;callwaiting = no
  92. ;callreturn = yes
  93. ;cancallforward = yes
  94. ;canreinvite = no
  95. ;transfer = no
  96. ;dtmfmode = inband
  97. ;line => aaln/1 ; now lets save this config to line1 aka aaln/1
  98. ;callerid = "Duane Cox" <456> ; now lets setup line 2
  99. ;callwaiting = no
  100. ;callreturn = yes
  101. ;cancallforward = yes
  102. ;canreinvite = no
  103. ;transfer = no
  104. ;dtmfmode = inband
  105. ;line => aaln/2 ; now lets save this config to line2 aka aaln/2