Asterisk config mgcp.conf
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
- HowTo Cisco ATA 186 Cisco ATA 186 MGCP and Asterisk (HowTo)
- Sample config: Swissvoice ip10
- Sample config: Cisco IAD 242x
- Asterisk mgcp channels
- MGCP, IETF
- Asterisk channels
- DLINK 102S

Comments
333Has anybody got a MGCP device working with Asterisk@home?
Tommy
333Dlink MGCP 4 port gate
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
333sample config for Swissvoice ip10s
- ; 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