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" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] 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 >[EMAIL PROTECTED] MGCP 1.0\r\n", verb, oseq, p->name, p->parent->name); > >this should give you what you need... > > >----- Original Message ----- >From: "Duane Cox" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >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/[EMAIL PROTECTED]' (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/[EMAIL PROTECTED] 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/[EMAIL PROTECTED] 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/[EMAIL PROTECTED] 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/[EMAIL PROTECTED] 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/[EMAIL PROTECTED] 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 >> [EMAIL PROTECTED] >> 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 >[EMAIL PROTECTED] >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 [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
