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

Ben Dugdale ben at apachecounty.net
Fri May 13 21:03:38 MST 2005


Duane Cox wrote:
> can you post your mgcp.conf file.

Gladly, but I should point out that I brought the phone home, so the
network numbers differ from those I stated before.

My * server = 192.168.0.5

Phone Settings
IP = 192.168.1.137 (routed subnet, not NAT. SIP and AIX work)
MGC = 192.168.0.5

Here's everything that isn't a comment in mgcp.conf
 <>< grep -v '^;' mgcp.conf
[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         = local
host            = 192.168.1.137
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

And the current error messages:

Asterisk Ready.
*CLI> May 13 20:48:06 NOTICE[21844]: chan_mgcp.c:1644
find_subchannel_and_lock: Gateway '192.168.1.137' (and thus its endpoint
'SHOR_001049007E83') does not exist

 <>< ngrep host 192.168.1.137
interface: eth0 (192.168.0.0/255.255.255.0)
filter: ip and ( host 192.168.1.137 )
#
U 192.168.1.137:2427 -> 192.168.0.5:2727
  RSIP 2162 SHOR_001049007E83@[192.168.1.137] MGCP 1.0.RM:
restart.X-ShoreModel: S1.
#

I have made no corresponding entries in extensions.conf yet.

Also, I noticed that the default port setting seems to be 2727, and
that's what the phone seems to be talking to, but the mgcp.conf example
and your config indicate 2427.  Is that significant?

Thanks,

>>From the debug output it looks like * can not find the gateway in the mgcp.conf
> (* goes on to tell you it can not match the endpoint, because it first has to find the gateway device...)
> 
> 
> ----- Original Message ----- 
> From: "Ben Dugdale" <ben at apachecounty.net>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
> Sent: Thursday, May 12, 2005 6:51 PM
> Subject: Re: [Asterisk-Users] Asterisk with ShoreTel 210 (MGCP)
> 
> 
> 
>>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,
>>
> 
> 
> _______________________________________________
> 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
(928) 337-7507



More information about the asterisk-users mailing list