[Asterisk-Users] Need help to format asterisk MGCP packet.
Derek Bruce
dbruce at calgarytelecom.com
Mon Mar 15 17:14:59 MST 2004
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
More information about the asterisk-users
mailing list