mgcp.conf.sample 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ;
  2. ; MGCP Configuration for Asterisk
  3. ;
  4. [general]
  5. ;port = 2427
  6. ;bindaddr = 0.0.0.0
  7. ;[dlinkgw]
  8. ;host = 192.168.0.64
  9. ;context = default
  10. ;canreinvite = no
  11. ;line => aaln/2
  12. ;line => aaln/1
  13. ;; The MGCP channel supports the following service codes:
  14. ;; # - Transfer
  15. ;; *67 - Calling Number Delivery Blocking
  16. ;; *70 - Cancel Call Waiting
  17. ;; *72 - Call Forwarding Activation
  18. ;; *73 - Call Forwarding Deactivation
  19. ;; *78 - Do Not Disturb Activation
  20. ;; *79 - Do Not Disturb Deactivation
  21. ;; *8 - Call pick-up
  22. ;
  23. ; known to work with Swissvoice IP10s
  24. ;[192.168.1.20]
  25. ;context=local
  26. ;host=192.168.1.20
  27. ;callerid = "John Doe" <123>
  28. ;callgroup=0
  29. ;pickupgroup=0
  30. ;nat=no
  31. ;threewaycalling=yes
  32. ;transfer=yes ; transfer requires threewaycalling=yes. Use FLASH to transfer
  33. ;callwaiting=yes ; this might be a cause of trouble for ip10s
  34. ;cancallforward=yes
  35. ;line => aaln/1
  36. ;
  37. ;[dph100]
  38. ;
  39. ; Supporting the DPH100M requires defining DLINK_BUGGY_FIRMWARE in
  40. ; chan_mgcp.c in addition to enabling the slowsequence mode due to
  41. ; bugs in the D-Link firmware
  42. ;
  43. ;context=local
  44. ;host=dynamic
  45. ;dtmfmode=none ; DTMF Mode can be 'none', 'rfc2833', or 'inband' or
  46. ; 'hybrid' which starts in none and moves to inband. Default is none.
  47. ;slowsequence=yes ; The DPH100M does not follow MGCP standards for sequencing
  48. ;line => aaln/1
  49. ; known to work with wave7optics FTTH LMGs
  50. ;[192.168.1.20]
  51. ;accountcode = 1000 ; record this in cdr as account identification for billing
  52. ;amaflags = billing ; record this in cdr as flagged for 'billing', 'documentation', or 'omit'
  53. ;context = local
  54. ;host = 192.168.1.20
  55. ;wcardep = aaln/* ; enables wildcard endpoint and sets it to 'aaln/*' another common format is '*'
  56. ;callerid = "Duane Cox" <123> ; now lets setup line 1 using per endpoint configuration...
  57. ;callwaiting = no
  58. ;callreturn = yes
  59. ;cancallforward = yes
  60. ;canreinvite = no
  61. ;transfer = no
  62. ;dtmfmode = inband
  63. ;line => aaln/1 ; now lets save this config to line1 aka aaln/1
  64. ;callerid = "Duane Cox" <456> ; now lets setup line 2
  65. ;callwaiting = no
  66. ;callreturn = yes
  67. ;cancallforward = yes
  68. ;canreinvite = no
  69. ;transfer = no
  70. ;dtmfmode = inband
  71. ;line => aaln/2 ; now lets save this config to line2 aka aaln/2