[SR-Users] rtpproxy-ng doesn't work with mediaproxy-ng

Alexey Rybalko alexey.rybalko at gmail.com
Fri Jul 26 09:54:40 CEST 2013


Hi!

Just my two cents. What parameters do you use for mediaproxy? Smth like
RUN_MEDIAPROXY=yes
LISTEN_UDP=127.0.0.1:1111
LISTEN_NG=127.0.0.1:11123
*ADDRESS=XXX.XXX.XXX.XXX*

?

regards,
Alexey


2013/7/26 Khue Nguyen Minh <khuenm at vega.com.vn>

> Thanks Richard. Now, rtpproxy-ng can work with mediaproxy-ng. But, I have
> some error when run it. After rtpproxy-ng send SDP information to
> mediaproxy-ng, it receive wrong IP. please see follow log:
>
> Got valid command from 127.0.0.1:60340: offer - { "sdp":
> "v=0#015#012o=doubango 1983 678901 IN IP4 10.0.0.19#015#012s=-#015#012c=IN
> IP4 10.0.0.19#015#012t=0 0#015#012a=tcap:1 RTP/AVPF#015#012m=audio 18876
> RTP/AVP 0 8 101#015#012a=ptime:20#015#012a=silenceSupp:off - - -
> -#015#012a=rtpmap:0 PCMU/8000/1#015#012a=rtpmap:8
> PCMA/8000/1#015#012a=rtpmap:101 telephone-event/8000/1#015#012a=fmtp:101
> 0-16#015#012a=pcfg:1
> t=1#015#012a=sendrecv#015#012a=rtcp-mux#015#012a=ssrc:434299437
> cname:ldjWoB60jbyQlR6e#015#012a=ssrc:434299437
> mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2#015#012a=ssrc:434299437
> label:Doubango#015#012m=text 2306 RTP/AVP 124 123#015#012a=rtpmap:124
> t140/1000#015#012a=fmtp:124 cps=30#015#012a=rtpmap:123
> red/1000#015#012a=fmtp:123 124/124/124/124#015#012a=pcfg:1
> t=1#015#012a=sendrecv#015#012a=rtcp-mux#015#012", "flags": [ "force",
> "auto-bridge" ], "replace": [ "origin" ], "call-id":
> "066cf8f8-fec9-7441-32f1-211298ff1715", "received-from": [ "IP4", "x.x.x.x"
> ], "from-tag": "15056954", "command": "offer" }
>
> [066cf8f8-fec9-7441-32f1-211298ff1715] Creating new call
>
> Returning to SIP proxy: d3:sdp1022:v=0#015#012o=doubango 1983 678901 IN
> IP4 0.0.0.0#015#012s=-#015#012c=IN IP4 *0.0.0.0*#015#012t=0
> 0#015#012a=tcap:1 RTP/AVPF#015#012a=ice-lite#015#012m=audio 40000 RTP/AVP 0
> 8 101#015#012a=ptime:20#015#012a=silenceSupp:off - - - -#015#012a=rtpmap:0
> PCMU/8000/1#015#012a=rtpmap:8 PCMA/8000/1#015#012a=rtpmap:101
> telephone-event/8000/1#015#012a=fmtp:101 0-16#015#012a=pcfg:1
> t=1#015#012a=sendrecv#015#012a=ssrc:434299437
> cname:ldjWoB60jbyQlR6e#015#012a=ssrc:434299437
> mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2#015#012a=ssrc:434299437
> label:Doubango#015#012a=rtcp:40001#015#012a=ice-ufrag:7YFi3AH6#015#012a=ice-pwd:oZwjQ1y9WJbLLI6mjWMSOOSVMvdQ#015#012a=candidate:rfWFb7Vp3QisWSvf
> 1 UDP 2130706432 0.0.0.0 40000 typ host#015#012a=candidate:rfWFb7Vp3QisWSvf
> 2 UDP 2130706431 0.0.0.0 40001 typ host#015#012m=text 40004 RTP/AVP 124
> 123#015#012a=rtpmap:124 t140/1000#015#012a=fmtp:124
> cps=30#015#012a=rtpmap:123 red/1000#015#012a=fmtp:123
> 124/124/124/124#015#012a=pcfg:1
> t=1#015#012a=sendrecv#015#012a=rtcp:40005#015#012a=ice-ufrag:4SUsQrLE#015#012a=ice-pwd:qhLmZW7KFb6W7QOVFEOraZfcQaCG#015#012a=candidate:rfWFb7Vp3QisWSvf
> 1 UDP 2130706432 0.0.0.0 40004 typ host#015#012a=candidate:rfWFb7Vp3QisWSvf
> 2 UDP 2130706431* 0.0.0.0 *40005 typ host#015#0126:result2:oke
>
> And in SIP message I capture from network, IP address in SDP body become
> 0.0.0.0. The call setup success but I don't hear anything. When I hangup
> this call, module rtpproxy-ng segment fault, and this is call stack:
>
> #0  bencode_string (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0,
> op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at bencode.h:349
> #1  bencode_list_add_string (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0,
> op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at bencode.h:407
> #2  rtpp_function_call (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0,
> op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at
> rtpproxy.c:1191
>
> Please help me fix it.
>
> Thanks
> Khue.
>
>
> 2013/7/24 Richard Fuchs <rfuchs at sipwise.com>
>
>> On 07/24/13 05:45, Khue Nguyen Minh wrote:
>> > Hi all,
>> >
>> > I am using rtpproxy-ng to control mediaproxy-ng. I was install and
>> > config follow this guide:
>> > https://github.com/sipwise/mediaproxy-ng
>> > when I run kamailio with rtpproxy-ng module and mediaproxy-ng I got
>> error:
>> > mediaproxy-ng[25216]: Failed to properly parse UDP command line '30514_2
>> > d7:command4:pinge' from 127.0.0.1:54621 <http://127.0.0.1:54621>, using
>> > fallback RE
>> > ERROR: rtpproxy-ng [rtpproxy.c:1381]: rtpp_test(): proxy responded with
>> > invalid response
>>
>> As a quick guess, I'd say that you used the -u option instead of the -n
>> option (or --listen-udp instead of --listen-ng). Substitute one for the
>> other and it should work.
>>
>> cheers
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130726/b1d64230/attachment.html>


More information about the sr-users mailing list