[Home]

Summary:ASTERISK-02062: MGCP wildcard endpoint audit fails
Reporter:duanecox (duanecox)Labels:
Date Opened:2004-07-19 10:39:56Date Closed:2004-09-25 02:12:17
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) mgcp.conf.sample.patch
( 1) mgcp.conf.sample.patch-correct
Description:Our end devices have a feature that audits the MGCP status on the call agent.  We have found that if our end devices lose network connectivity (network outage, reboot, etc.) with asterisk, there _may_ be instances where our end device and asterisk get out of sync.  There is a feature within our end device called 'pulse interval' that can be set to send a heart beat to asterisk every x seconds.  The problem is that our end device sends this as a wildcard endpoint and asterisk reports it as an error; end point does not exist...

****** ADDITIONAL INFORMATION ******

ntfy 22515 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427MGCP read:
ntfy 22515 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427Verb: 'ntfy', Identifier: '22515', Endpoint: 'aaln/*@[10.252.240.2]', Version: 'MGCP 1.0'
3 headers, 0 lines
Jul 19 09:26:46 NOTICE[98310]: chan_mgcp.c:1474 find_subchannel: Gateway '10.252.240.2' (and thus its endpoint 'aaln/*') does not exist
MGCP read: LI>
ntfy 22515 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427MGCP read:
ntfy 22515 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427Verb: 'ntfy', Identifier: '22515', Endpoint: 'aaln/*@[10.252.240.2]', Version: 'MGCP 1.0'
3 headers, 0 lines
Jul 19 09:26:47 NOTICE[98310]: chan_mgcp.c:1474 find_subchannel: Gateway '10.252.240.2' (and thus its endpoint 'aaln/*') does not exist
Comments:By: duanecox (duanecox) 2004-07-19 12:02:00

found this in chan_mgcp.c

/* JS: We dont send NTFY or AUEP to wildcard ep */
if (strcmp(p->name, p->parent->wcardep) != 0) {
transmit_notify_request(sub, "");

For what it's worth...  This end device is a gateway, and sends a ntfy request with wildcard enpoints to asterisk, apparently asterisk will NOT send them BACK.  Is there a reason for * not to do this?

edited on: 07-26-04 17:46

By: Mark Spencer (markster) 2004-07-19 12:09:01

It would appear from the description that the problem is that it doesn't see the [10.252.240.2] entry in your mgcp.conf.

By: duanecox (duanecox) 2004-07-19 12:16:59

True, it does appear to be that way, must be the way it errors in the code.
I can assure you that the mgcp.conf file is correct and this device is up and registred, making and receiving calls normally...


Asterisk CVS-HEAD-07/19/04-09:45:30, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster@digium.com>
=========================================================================
Connected to Asterisk CVS-HEAD-07/19/04-09:45:30 currently running on localhost (pid = 21853)
localhost*CLI> mgcp show endpoints
Gateway '10.252.242.2' at 10.252.242.2 (Static)
  -- 'aaln/1@10.252.242.2 in 'main' is idle
Gateway '10.252.240.2' at 10.252.240.2 (Static)
  -- 'aaln/2@10.252.240.2 in 'main' is idle
  -- 'aaln/1@10.252.240.2 in 'main' is idle

By: duanecox (duanecox) 2004-07-19 12:24:45

DEBUG FROM OUR VOIP GATEWAY:

Jul 19 16:55:28 [100790109] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1602:
SEND: ntfy 23108 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

Jul 19 16:55:29 [100790219] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack
.c 468:
SEND: ntfy 23108 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping



DEBUG FROM ASTERISK:

ntfy 23108 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427MGCP read:
ntfy 23108 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427Verb: 'ntfy', Identifier: '23108', Endpoint: 'aaln/*@[10.252.240.2]', Version: 'MGCP 1.0'
3 headers, 0 lines
Jul 19 11:08:37 NOTICE[98310]: chan_mgcp.c:1474 find_subchannel: Gateway '10.252.240.2' (and thus its endpoint 'aaln/*') does not exist
MGCP read: LI>
ntfy 23108 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427MGCP read:
ntfy 23108 aaln/*@[10.252.240.2] MGCP 1.0
X: 0
O: X-NET/ping

from 10.252.240.2:2427Verb: 'ntfy', Identifier: '23108', Endpoint: 'aaln/*@[10.252.240.2]', Version: 'MGCP 1.0'
3 headers, 0 lines
Jul 19 11:08:37 NOTICE[98310]: chan_mgcp.c:1474 find_subchannel: Gateway '10.252.240.2' (and thus its endpoint 'aaln/*') does not exist


MGCP.CONF

[10.252.240.2]
context=main
host=10.252.240.2
nat=no
callerid = "Kevin Osterbur" <9993790610>
callwaiting=yes
threewaycalling=no
transfer=no
cancallforward=no
canreinvite=no
line => aaln/1
context=main
host=10.252.240.2
nat=no
callerid = "Duane Cox" <9993790612>
callwaiting=yes
threewaycalling=no
transfer=no
cancallforward=no
canreinvite=no
line => aaln/2

edited on: 07-19-04 12:09

By: Olle Johansson (oej) 2004-07-26 08:36:49

Housekeeping reminder - any updates on this bug?
Does it still exist in the latest CVS?

By: duanecox (duanecox) 2004-07-26 08:54:33

Yes, still here.

Asterisk CVS-HEAD-07/26/04-07:38:28 built by root@localhost on a i686 running Linux

Jul 26 07:42:16 NOTICE[98310]: chan_mgcp.c:1493 find_subchannel: Gateway '10.252.240.2' (and thus its endpoint 'aaln/*') does not exist

By: duanecox (duanecox) 2004-07-30 12:19:34

apparently this _is_ supported in asterisk.  it has to do with a /etc/asterisk/mgcp.conf configuration

I suggest adding this into the .sample file so others will not have the same headache.  (there is a new glitch, I will post another bug for it)


mgcp.conf.sample.patch

By: Malcolm Davenport (mdavenport) 2004-07-30 14:11:18

Added to CVS.  Thank you.