[Asterisk-Users] Need help to format asterisk MGCP packet.

Duane Cox duanec at illicom.net
Mon Mar 15 17:46:12 MST 2004


YES, that change in the chan_mgcp.c worked for my setup.  Like I said before, it may not be the best long term solution.

What would need to be done to get this into the CVS?  Maybe not this exact hack, but some sort of option to allow the change in the format of the packet?

ODDLY, the device sends up to asterisk in that format, and asterisk could understand the device, it just couldn't communicate back (before the change).... 

Apparently with this STACK used by this device, the manufactuer is dead set on NOT changing it. I am finding that there is no 'true MGCP standard' as I work with it between vendors....


***LOG SHOWS IT IS NOW WORKING***

Aug  2 00:49:54 [4280831] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1602:
SEND: rsip 14394 aaln/2@[63.252.240.2] MGCP 1.0
RM:forced
RD:0

Aug  2 00:49:54 [4280831] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1602:
SEND: 200 6 OK

Aug  2 00:49:54 [4280832] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1143:
RECEIVE: RQNT 6 aaln/2@[63.252.240.2] MGCP 1.0
X: 0704259f
R: hd(N)

Aug  2 00:49:54 [4280832] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1481:
SEND: 200 5 OK

Aug  2 00:49:55 [4280832] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1143:
RECEIVE: RQNT 6 aaln/2@[63.252.240.2] MGCP 1.0
X: 0704259f
R: hd(N)

Aug  2 00:49:55 [4280832] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1143:
RECEIVE: RQNT 6 aaln/2@[63.252.240.2] MGCP 1.0
X: 0704259f
R: hd(N)

Aug  2 00:49:55 [4280832] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1481:
SEND: 200 6 OK

Aug  2 00:49:55 [4280832] MGCP DEBUG INFO at mgcp/common/transport/rvmgcpstack.c 1143:
RECEIVE: 200 14394 OK


---------- Original Message ----------------------------------
From: "Duane Cox" <duanec at illicom.net>
Reply-To: asterisk-users at lists.digium.com
Date:  Mon, 15 Mar 2004 18:28:08 -0600

>I will apply this and recompile.  I was hoping I could do this with a format or a flag (as I may need to send MGCP to other devices in the correct format).
>
>I will let you know how it works.
>
>MANY THANKS!
>
>Duane Cox
>
>
>
>
>---------- Original Message ----------------------------------
>From: "Derek Bruce" <dbruce at calgarytelecom.com>
>Reply-To: asterisk-users at lists.digium.com
>Date:  Mon, 15 Mar 2004 17:14:59 -0700
>
>>I don't use MGCP, but after a quick look at the code I may have a solution
>>for you...
>>
>>in chan_mgcp.c, replace the snprintf line in init_req (line#1367 in march 1
>>cvs version)with:
>>
>>snprintf(req->header[req->headers], sizeof(req->data) - req->len, "%s %d
>>%s@[%s] MGCP 1.0\r\n", verb, oseq, p->name, p->parent->name);
>>
>>this should give you what you need...
>>
>>
>>----- Original Message -----
>>From: "Duane Cox" <duanec at illicom.net>
>>To: <Asterisk-Users at lists.digium.com>
>>Sent: Monday, March 15, 2004 4:21 PM
>>Subject: [Asterisk-Users] Need help to format asterisk MGCP packet.
>>
>>
>>> Hello, I am trying to setup a 'gateway' fiber to the home device from
>>wave7optics (www.wave7optics.com)
>>>
>>> They use a MGCP stack from "RAD?"  and did not code it themselves.  My
>>MGCP name-convetion on this device is set to IP, but this stack expects the
>>received MGCP packets to be formated as 'aaln/X@[IP.IP.IP.IP]' (notice the
>>brackets)
>>>
>>> I have tried to adjust my extensions.conf and mgcp.conf to compensate, but
>>could not get asterisk to send in that format.
>>>
>>> Can anyone help?
>>>
>>> This is the debug log from the 'gateway' device.
>>> You can see the format that it is sending out, and it is expecting to get
>>the same format back.  You can see that asterisk is sending to the device in
>>the format (without the brackets) and this gateway device responds with
>>'endpoint unknown'
>>>
>>> ***LOG***
>>>
>>>
>>> Aug  1 23:19:27 [3195449] MGCP DEBUG INFO at
>>mgcp/common/transport/rvmgcpstack.c 1602:
>>> SEND: rsip 14389 aaln/2@[10.252.240.2] MGCP 1.0
>>> RM:restart
>>> RD:0
>>>
>>> Aug  1 23:19:27 [3195450] MGCP DEBUG INFO at
>>mgcp/common/transport/rvmgcpstack.c 1143:
>>> RECEIVE: RQNT 6 aaln/2 at 10.252.240.2 MGCP 1.0
>>> X: 2467de76
>>> R: hd(N)
>>>
>>> Aug  1 23:19:27 [3195450] MGCP DEBUG INFO at
>>mgcp/common/transport/rvmgcpstack.c 1143:
>>> RECEIVE: RQNT 6 aaln/2 at 10.252.240.2 MGCP 1.0
>>> X: 2467de76
>>> R: hd(N)
>>>
>>> Aug  1 23:19:28 [3195450] MGCP DEBUG INFO at
>>mgcp/common/transport/rvmgcpstack.c 1481:
>>> SEND: 500 5 Unknown endpoint
>>>
>>> Aug  1 23:19:28 [3195450] MGCP DEBUG INFO at
>>mgcp/common/transport/rvmgcpstack.c 1143:
>>> RECEIVE: RQNT 6 aaln/2 at 10.252.240.2 MGCP 1.0
>>> X: 2467de76
>>> R: hd(N)
>>>
>>> Aug  1 23:19:28 [3195450] MGCP DEBUG INFO at
>>mgcp/common/transport/rvmgcpstack.c 1143:
>>> RECEIVE: RQNT 6 aaln/2 at 10.252.240.2 MGCP 1.0
>>> X: 2467de76
>>> R: hd(N)
>>>
>>> Aug  1 23:19:28 [3195450] MGCP DEBUG INFO at
>>mgcp/common/transport/rvmgcpstack.c 1481:
>>> SEND: 500 5 Unknown endpoint
>>>
>>>
>>> _______________________________________________
>>> 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
>>
> 
>_______________________________________________
>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
>
 



More information about the asterisk-users mailing list