<div dir="ltr"><div><div>Hi!<br></div><br>Just my two cents. What parameters do you use for mediaproxy? Smth like <br>RUN_MEDIAPROXY=yes<br>LISTEN_UDP=<a href="http://127.0.0.1:1111">127.0.0.1:1111</a><br>LISTEN_NG=<a href="http://127.0.0.1:11123">127.0.0.1:11123</a><br>
<u>ADDRESS=XXX.XXX.XXX.XXX</u><br><br>?<br><br></div>regards,<br>Alexey<br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/26 Khue Nguyen Minh <span dir="ltr"><<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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:<div>
<br>
<div>Got valid command from <a href="http://127.0.0.1:60340" target="_blank">127.0.0.1:60340</a>: 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" }<br>

</div></div><div><br></div><div>[066cf8f8-fec9-7441-32f1-211298ff1715] Creating new call<br></div><div><br></div><div>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 <b><u><font color="#ff0000">0.0.0.0</font></u></b>#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<b><u><font color="#ff0000"> 0.0.0.0 </font></u></b>40005 typ host#015#0126:result2:oke<br>

</div><div><br></div><div>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:</div>

<div><br></div><div><div>#0  bencode_string (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0, op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at bencode.h:349</div><div>#1  bencode_list_add_string (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0, op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at bencode.h:407</div>

<div>#2  rtpp_function_call (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0, op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at rtpproxy.c:1191</div></div><div><br></div><div>Please help me fix it.</div>

<div><br></div><div>Thanks</div><div>Khue.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/24 Richard Fuchs <span dir="ltr"><<a href="mailto:rfuchs@sipwise.com" target="_blank">rfuchs@sipwise.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>On 07/24/13 05:45, Khue Nguyen Minh wrote:<br>
> Hi all,<br>
><br>
> I am using rtpproxy-ng to control mediaproxy-ng. I was install and<br>
> config follow this guide:<br>
> <a href="https://github.com/sipwise/mediaproxy-ng" target="_blank">https://github.com/sipwise/mediaproxy-ng</a><br>
> when I run kamailio with rtpproxy-ng module and mediaproxy-ng I got error:<br>
> mediaproxy-ng[25216]: Failed to properly parse UDP command line '30514_2<br>
</div>> d7:command4:pinge' from <a href="http://127.0.0.1:54621" target="_blank">127.0.0.1:54621</a> <<a href="http://127.0.0.1:54621" target="_blank">http://127.0.0.1:54621</a>>, using<br>
<div>> fallback RE<br>
> ERROR: rtpproxy-ng [rtpproxy.c:1381]: rtpp_test(): proxy responded with<br>
> invalid response<br>
<br>
</div>As a quick guess, I'd say that you used the -u option instead of the -n<br>
option (or --listen-udp instead of --listen-ng). Substitute one for the<br>
other and it should work.<br>
<br>
cheers<br>
<br>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div>