[Asterisk-Users] Asterisk with ShoreTel 210 (MGCP)

Ben Dugdale ben at apachecounty.net
Thu May 12 16:51:14 MST 2005


Duane Cox wrote:
> Yes * can work with MGCP phones directly.  You have a configuration issue.

Glad to hear it!

> a typical mgcp.conf might be:
> [general]
> port            = 2427
> bindaddr        = 0.0.0.0
> 
> [10.21.4.2]
> accountcode     = 1123
> amaflags        = billing
> context         = main
> host            = 10.21.4.2
> wcardep         = aaln/*
> callerid        = "YOUR NAME" <1231231234>
> callwaiting     = no
> callreturn      = yes
> cancallforward  = yes
> canreinvite     = no
> threewaycalling = no
> transfer        = no
> dtmfmode        = none
> line => aaln/1

Where does a person find a list of the mgcp.conf options and meanings?  ( I've
tried 'man mgcp' 'man mgcp.conf' and looked for info in the doc directory of the
* source (I did make documentation at install) )?

> turn on MGCP debug "mgcp debug" and see what messages are going to and fro.

I'm now using  Asterisk CVS-HEAD-05/12/05-16:10:03

Here is what I see at the console:

MGCP Debugging Enabled
*CLI> MGCP read:
RSIP 11630 SHOR_001049007E83@[192.168.90.209] MGCP 1.0
RM: restart
X-ShoreModel: S1

from 192.168.90.209:2427
Verb: 'RSIP', Identifier: '11630', Endpoint:
'SHOR_001049007E83@[192.168.90.209]', Version: 'MGCP 1.0'
3 headers, 0 lines
May 12 16:31:56 NOTICE[28300]: chan_mgcp.c:1644 find_subchannel_and_lock:
Gateway '192.168.90.209' (and thus its endpoint 'SHOR_001049007E83') does not exist
MGCP read:
RSIP 11630 SHOR_001049007E83@[192.168.90.209] MGCP 1.0
RM: restart
X-ShoreModel: S1



Here is what I see with ngrep port 2727

interface: eth0 (192.168.90.0/255.255.255.0)
filter: ip and ( port 2727 )
#
U 192.168.90.209:2427 -> 192.168.90.6:2727
  RSIP 11625 SHOR_001049007E83@[192.168.90.209] MGCP 1.0.RM:
restart.X-ShoreModel: S1.

I've changed mgcp.conf to pretty much exactly look like the example:

[192.168.90.209]
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         = local
host            = 192.168.90.209
wcardep         = aaln/*        ; enables wildcard endpoint and sets it to
'aaln/*' another common format is '*'
callerid        = "Duane Cox" <123>     ; now lets setup line 1 using per
endpoint configuration...
callwaiting     = no
callreturn      = yes
cancallforward  = yes
canreinvite     = no
transfer        = no
dtmfmode        = inband
line => aaln/1                  ; now lets save this config to line1 aka aaln/1

> I would suspect that your end device is setup looking for host/domain name convention and not IP.
> If so, change * to match or change your device to IP and not dns.

I'm not sure I know what you mean by this.  I tried setting it up in DNS to see
if the name it reported changed to a FQDN but it stayed the same.

I wonder if the phone is trying to register as
'SHOR_001049007E83@[192.168.90.209]' but * interperets that as it being behind
another gateway because of a special character in the string (@)?

What does the normal MGCP negotiation look like?

> GoodLuck,
> Duane Cox

Thanks,

> 
> ----- Original Message ----- 
> From: "Ben Dugdale" <ben at apachecounty.net>
> To: <asterisk-users at lists.digium.com>
> Sent: Thursday, May 12, 2005 3:19 PM
> Subject: [Asterisk-Users] Asterisk with ShoreTel 210 (MGCP)
> 
> 
> 
>>Okay, so I'm a noob.
>>
>>Asterisk looks very promising, so I say "thanks" and "good job" to all who
>>contribute.
>>
>>My * test box is up and running with soft phones using IAX and SIP, so now I'm
>>on to testing hard phones.
>>
>>I borrowed a couple ShoreTel 210 phones from somebody who had them on hand but
>>they only support MGCP.  I see that there's an mgcp.conf in /etc/asterisk/ but
>>it's not very commented an I'm having trouble getting these phones to work
>>(tried voip-info.org and google for info of course).
>>
>>A couple mailing list posts that I dug up with google lead me to wonder if MGCP
>>requires some sort of a switching device.  Also the first example in the
>>mgcp.conf seems to be a D-Link gateway and my error message is gateway related.
>>
>>Can MGCP phones work directly with Asterisk?
>>
>>mgcp.conf:
>>[general]
>>
>>[192.168.90.209]
>>host = 192.168.90.209
>>context = default
>>canreinvite = no
>>line => aaln/1
>>
>>
>>Phone Config:
>>MGC: 192.168.90.6 ; My * box
>>IP: 192.168.90.209
>>
>>
>>Error message:
>>May 12 11:35:56 NOTICE[15257]: chan_mgcp.c:1509 find_subchannel: Gateway
>>'192.168.90.209' (and thus its endpoint 'SHOR_001049007E83') does not exist
>>
>>Thanks!
>>-- 
>>Ben Dugdale <ben at apachecounty.net>
>>Network Administrator
>>Apache County Schools Business Consortium www.acsbc.net
>>Apache County Arizona www.co.apache.az.us
>>
>>_______________________________________________
>>Asterisk-Users mailing list
>>Asterisk-Users at lists.digium.com
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> [Scanned for viruses]
> 
> [Scanned for viruses]
> 
> 

-- 
Ben Dugdale <ben at apachecounty.net>
Network Administrator
Apache County Schools Business Consortium www.acsbc.net
Apache County Arizona www.co.apache.az.us




More information about the asterisk-users mailing list