login | register
Wed 09 of Jul, 2008 [05:16 UTC]

voip-info.org

Discuss [3] History

Asterisk config mgcp.conf

Created by: oej,Last modification on Mon 08 of May, 2006 [12:24 UTC] by dominig

Example


  ;
  ; MGCP Configuration for Asterisk
  ;
  [general]
  port = 2427
  bindaddr = 0.0.0.0

  [dlinkgw]   ; on my setup I put the mac address here which is set as the word with which to authenticate
  host = 192.168.0.64
  callgroup=1
  context = default
  callerid="David" <ext3> ; This will apply to all lines "line" after until callerid is defined again
  line => aaln/1
  callgroup=2
  context = internal_callers
  callerid="John" <ext3>
  line => aaln/2
  line => * ; for some reason on my dlink it doesn't work unless I have this line.

  [192.168.0.123]
  context=from-mgcp
  host=192.168.0.123
  threewaycalling=yes
  ;transfer=yes allows FLASH transfers and requires threewaycalling
  callwaiting=yes
  ;is there a way to operate MGCP devices behind NAT?
  nat=no
  canreinvite=yes
  callgroup=0,2-5
  pickupgroup=0,1
  cancallforward=yes
  callerid="Sven Svoboda" <1234>
  accountcode=BillingSvoboda
  mailbox=5444@from-mgcp
  line => aaln/1


Please note

  • When typing "reload" on the console, the asterisk doesnt reread the mgcp.conf. You have to restart Asterisk. After v0.7.2 a patch was introduced that supposedly fixes this behaviour and allows the use of "reload". See bug note #1114.
  • Use the "mailbox=1234@context" notation if your mailbox is not located in the default context! With the advent of Voicemail2 (and the removal of voicemail version 1 in the end of 2003 from the Asterisk code) voicemail has become context sensitive.

Cisco 7960 MGCP sample config


I have noticed that sometimes 7960 will hang or reboot but chan_mgcp is rock solid.

;
; MGCP Configuration for Asterisk
;
[general]
port = 2727
bindaddr = 192.168.1.1
disallow = all
allow = ulaw
allow = alaw

[0009e8812533] ; mac address of cisco phone
context=local
host=192.168.1.20
callerid = "Amer" <3456>
threewaycalling=yes
transfer=yes ; transfer requires threewaycalling=yes. Use FLASH to transfer
callwaiting=yes ; this might be a cause of trouble for ip10s
cancallforward=yes
line => d001

[003094c44326]
context=local
host=192.168.1.122
callerid = "Amer" <3457>
threewaycalling=yes
transfer=yes ; transfer requires threewaycalling=yes. Use FLASH to transfer
callwaiting=yes ; this might be a cause of trouble for ip10s
cancallforward=yes
line => d001

ShoreTel 210 Sample Config


[general]
port = 2727
bindaddr = 0.0.0.0

[192.168.1.137]
accountcode = 1000 ; record this in cdr as account identification for billing
amaflags = billing ; record this in cdr as flagged for 'billing', 'documentation', or 'omit'
context = home
host = 192.168.1.137
wcardep = * ; enables wildcard endpoint and sets it to '*' another common format is 'aaln/*'
callerid = "ShoreTel" <123>
callwaiting = no
callreturn = no
cancallforward = no
canreinvite = no
transfer = yes
dtmfmode = inband
line => SHOR_001049007E83 ;you can see this value in the error messages you get at the * console if this is wrong


See also



Comments

Comments Filter
222

333Has anybody got a MGCP device working with Asterisk@home?

by tokio69, Wednesday 01 of June, 2005 [18:39:29 UTC]
Thanx for letting me know if it is even possible

Tommy
222

333Dlink MGCP 4 port gate

by tokio69, Sunday 13 of March, 2005 [16:36:05 UTC]
I Use Asterisk @home and the AMP web config. How can I make extentions that are working with an MGCP gate (Dlink DL-104S).
The SIP extensions are working fine. Now all I need is 4 extra extions that I want to use on with thye Dlink. Can anybody tell me how to do that step by step, strarting at the asterisk@home root command?

I'm a Linux newbie and an asterisk newbie. Thank You tom@tokiogroup.com
222

333sample config for Swissvoice ip10s

by , Thursday 20 of November, 2003 [20:54:34 UTC]
; The MGCP channel supports the following service codes
;; # - Transfer
;; *67 - Calling Number Delivery Blocking
;; *70 - Cancel Call Waiting
;; *72 - Call Forwarding Activation
;; *73 - Call Forwarding Deactivation
;; *78 - Do Not Disturb Activation
;; *79 - Do Not Disturb Deactivation
;; *8 - Call pick-up
;
; known to work with Swissvoice IP10s
;[192.168.1.20]]
;context=local
;host=192.168.1.20
;callerid = "John Doe"
;mailbox=1234@default
;callgroup=0
;pickupgroup=0
;nat=no
;threewaycalling=yes
;transfer=yes ; transfer requires threewaycalling=yes. Use FLASH to transfer
;callwaiting=yes ; this might be a cause of trouble for ip10s
;cancallforward=yes
;line => aaln/1