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


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


Created by: oej, Last modification: Sun 20 of May, 2012 (19:56 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+