<div dir="ltr">Hi Richard,<div><br></div><div>I get mediaproxy from link: </div><div><a href="https://github.com/sipwise/mediaproxy-ng">https://github.com/sipwise/mediaproxy-ng</a><br></div><div><br></div><div>and rtpproxy-ng from link:</div>
<div><a href="https://github.com/sipwise/kamailio/tree/3.3+ngcp2.8">https://github.com/sipwise/kamailio/tree/3.3+ngcp2.8</a><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/26 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">Hi,<br>
<br>
I can't reproduce this, neither the empty IP address nor the segfault. Can you tell me which version exactly of both mediaproxy-ng and the rtpproxy-ng module you're using (downloaded from where, which repository, which branch), as well as the entire log for a particular call, i.e. everything from the initial offer to the final delete.<br>

<br>
cheers<div class="im"><br>
<br>
<br>
On 07/26/13 04:48, Khue Nguyen Minh wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
<br>
I removed x parameter and re-run. But, I still got same error:<br>
<br>
mediaproxy-ng[10607]: Got valid command from <a href="http://127.0.0.1:54098" target="_blank">127.0.0.1:54098</a><br></div>
<<a href="http://127.0.0.1:54098" target="_blank">http://127.0.0.1:54098</a>>: answer - { "sdp": "v=0#015#012o=- 3583815381<div class="im"><br>
3583815382 IN IP4 10.10.10.20#015#012s=pjmedia#<u></u>015#012c=IN IP4<br>
10.10.10.20#015#012t=0 0#015#012m=audio 4021 RTP/AVP 0 101#015#012c=IN<br>
IP4 10.10.10.20#015#012a=rtcp:4012 IN IP4<br>
10.10.10.20#015#012a=sendrecv#<u></u>015#012a=rtpmap:0<br>
PCMU/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=<u></u>fmtp:101<br>
0-15#015#012a=ice-ufrag:<u></u>498bc970#015#012a=ice-pwd:<u></u>5f0321c0#015#012a=candidate:<u></u>Ha0a0a14<br>
1 UDP 2130706431 10.10.10.20 4021 typ host#015#012a=candidate:<u></u>Ha0a0a14 2<br>
UDP 2130706430 10.10.10.20 4012 typ host#015#012m=text 0 RTP/AVP 124<br>
123#015#012", "flags": [ "force" ], "replace": [ "origin" ], "call-id":<br>
"e2065031-89db-1460-0b8a-<u></u>4670998bcb97", "received-from": [ "IP4",<br>
"x.x.x.x" ], "from-tag": "17831887", "to-tag":<br>
"Z-<u></u>9BdndAjW4RvnSpPKLNt02ksKPJf1Fd<u></u>", "command": "answer" }<br>
<br>
mediaproxy-ng[10607]: [e2065031-89db-1460-0b8a-<u></u>4670998bcb97 - ] Got<br>
LOOKUP, but no usable callstreams found<br>
<br>
mediaproxy-ng[10607]: Error rewriting SDP<br>
<br>
  mediaproxy-ng[10607]: Protocol error in packet from <a href="http://127.0.0.1:54098" target="_blank">127.0.0.1:54098</a><br></div>
<<a href="http://127.0.0.1:54098" target="_blank">http://127.0.0.1:54098</a>>: Error rewriting SDP [d3:sdp457:v=0#015#012o=-<div class="im"><br>
3583815381 3583815382 IN IP4 10.10.10.20#015#012s=pjmedia#<u></u>015#012c=IN<br>
IP4 10.10.10.20#015#012t=0 0#015#012m=audio 4021 RTP/AVP 0<br>
101#015#012c=IN IP4 10.10.10.20#015#012a=rtcp:4012 IN IP4<br>
10.10.10.20#015#012a=sendrecv#<u></u>015#012a=rtpmap:0<br>
PCMU/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=<u></u>fmtp:101<br>
0-15#015#012a=ice-ufrag:<u></u>498bc970#015#012a=ice-pwd:<u></u>5f0321c0#015#012a=candidate:<u></u>Ha0a0a14<br>
1 UDP 2130706431 10.10.10.20 4021 typ host#015#012a=candidate:<u></u>Ha0a0a14 2<br>
UDP 2130706430 10.10.10.20 4012 typ host#015#012m=text 0 RTP/AVP 124<br>
123#015#0125:flagsl5:forcee7:<u></u>replacel6:origine7:call-id36:<u></u>e2065031-89db-1460-0b8a-<u></u>4670998bcb9713:received-<u></u>froml3:IP414:x.x.x.xe8:from-<u></u>tag8:178318876:to-tag32:Z-<u></u>9BdndAjW4RvnSpPKLNt02ksKPJf1Fd<u></u>7:command6:answere]<br>

<br>
mediaproxy-ng[10607]: Returning to SIP proxy:<br>
d6:result5:error12:error-<u></u>reason19:Error rewriting SDPe<br>
<br>
And rtpproxy-ng segment fault when I hangup call.<br>
<br>
<br></div>
2013/7/26 Carsten Bock <<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a> <mailto:<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>>><div class="im"><br>

<br>
    Hi,<br>
<br>
    the "x"-Parameter in dlg_manage is for bridging IPv4/IPv6. You only<br>
    have configured one address, so the x-Parameter does not make any<br>
    sense here.<br>
    <a href="http://kamailio.org/docs/modules/devel/modules/rtpproxy.html#idp2994536" target="_blank">http://kamailio.org/docs/<u></u>modules/devel/modules/<u></u>rtpproxy.html#idp2994536</a><br>
<br>
    Kind regards from the implementor of the "x"-Parameter,<br>
    Carsten<br>
<br>
    2013/7/26 Khue Nguyen Minh <<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a><br></div>
    <mailto:<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a>>>:<div class="im"><br>
     > I run mediaproxy-ng with command:<br>
     > mediaproxy-ng --table=42 --ip=x.x.x.x --listen-ng=<a href="http://127.0.0.1:7723" target="_blank">127.0.0.1:7723</a><br></div>
    <<a href="http://127.0.0.1:7723" target="_blank">http://127.0.0.1:7723</a>> --tos=184<div><div class="h5"><br>
     > --pidfile=/var/run/mediaproxy-<u></u>ng.pid --advertised-ip=x.x.x.x<br>
     ><br>
     > And this is my config of sipproxy<br>
     > 1. when I receive INVITE message<br>
     > if (is_request()) {<br>
     >                         if (is_direction("downstream"))<br>
     >                                 rtpproxy_manage("fox");<br>
     >                         else<br>
     >                                 rtpproxy_manage("foxr");<br>
     >                 } else {<br>
     >                         if (is_direction("downstream"))<br>
     >                                 rtpproxy_manage("foxr");<br>
     >                         else<br>
     >                                 rtpproxy_manage("fox");<br>
     >                 }<br>
     ><br>
     > 2. When I receive 200 OK response<br>
     > if (is_request()) {<br>
     >                         if (is_direction("downstream"))<br>
     >                                 rtpproxy_manage("foxr");<br>
     >                         else<br>
     >                                 rtpproxy_manage("fox");<br>
     >                 } else {<br>
     >                         if (is_direction("downstream"))<br>
     >                                 rtpproxy_manage("fox");<br>
     >                         else<br>
     >                                 rtpproxy_manage("foxr");<br>
     >                 }<br>
     ><br>
     ><br>
     > 2013/7/26 Alexey Rybalko <<a href="mailto:alexey.rybalko@gmail.com" target="_blank">alexey.rybalko@gmail.com</a><br></div></div>
    <mailto:<a href="mailto:alexey.rybalko@gmail.com" target="_blank">alexey.rybalko@gmail.<u></u>com</a>>><div class="im"><br>
     >><br>
     >> Hi!<br>
     >><br>
     >> Just my two cents. What parameters do you use for mediaproxy?<br>
    Smth like<br>
     >> RUN_MEDIAPROXY=yes<br></div>
     >> LISTEN_UDP=<a href="http://127.0.0.1:1111" target="_blank">127.0.0.1:1111</a> <<a href="http://127.0.0.1:1111" target="_blank">http://127.0.0.1:1111</a>><br>
     >> LISTEN_NG=<a href="http://127.0.0.1:11123" target="_blank">127.0.0.1:11123</a> <<a href="http://127.0.0.1:11123" target="_blank">http://127.0.0.1:11123</a>><div class="im"><br>
     >> ADDRESS=XXX.XXX.XXX.XXX<br>
     >><br>
     >> ?<br>
     >><br>
     >> regards,<br>
     >> Alexey<br>
     >><br>
     >><br>
     >><br>
     >> 2013/7/26 Khue Nguyen Minh <<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a><br></div>
    <mailto:<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a>>><div class="im"><br>
     >>><br>
     >>> Thanks Richard. Now, rtpproxy-ng can work with mediaproxy-ng.<br>
    But, I have<br>
     >>> some error when run it. After rtpproxy-ng send SDP information to<br>
     >>> mediaproxy-ng, it receive wrong IP. please see follow log:<br>
     >>><br>
     >>> Got valid command from <a href="http://127.0.0.1:60340" target="_blank">127.0.0.1:60340</a><br></div>
    <<a href="http://127.0.0.1:60340" target="_blank">http://127.0.0.1:60340</a>>: offer - { "sdp":<div><div class="h5"><br>
     >>> "v=0#015#012o=doubango 1983 678901 IN IP4<br>
    10.0.0.19#015#012s=-#015#012c=<u></u>IN<br>
     >>> IP4 10.0.0.19#015#012t=0 0#015#012a=tcap:1<br>
    RTP/AVPF#015#012m=audio 18876<br>
     >>> RTP/AVP 0 8 101#015#012a=ptime:20#015#<u></u>012a=silenceSupp:off - - -<br>
     >>> -#015#012a=rtpmap:0 PCMU/8000/1#015#012a=rtpmap:8<br>
     >>> PCMA/8000/1#015#012a=rtpmap:<u></u>101<br>
    telephone-event/8000/1#015#<u></u>012a=fmtp:101<br>
     >>> 0-16#015#012a=pcfg:1<br>
     >>> t=1#015#012a=sendrecv#015#<u></u>012a=rtcp-mux#015#012a=ssrc:<u></u>434299437<br>
     >>> cname:ldjWoB60jbyQlR6e#015#<u></u>012a=ssrc:434299437<br>
     >>><br>
    mslabel:6994f7d1-6ce9-4fbd-<u></u>acfd-84e5131ca2e2#015#012a=<u></u>ssrc:434299437<br>
     >>> label:Doubango#015#012m=text 2306 RTP/AVP 124<br>
    123#015#012a=rtpmap:124<br>
     >>> t140/1000#015#012a=fmtp:124 cps=30#015#012a=rtpmap:123<br>
     >>> red/1000#015#012a=fmtp:123 124/124/124/124#015#012a=pcfg:<u></u>1<br>
     >>> t=1#015#012a=sendrecv#015#<u></u>012a=rtcp-mux#015#012", "flags": [<br>
    "force",<br>
     >>> "auto-bridge" ], "replace": [ "origin" ], "call-id":<br>
     >>> "066cf8f8-fec9-7441-32f1-<u></u>211298ff1715", "received-from": [<br>
    "IP4", "x.x.x.x"<br>
     >>> ], "from-tag": "15056954", "command": "offer" }<br>
     >>><br>
     >>> [066cf8f8-fec9-7441-32f1-<u></u>211298ff1715] Creating new call<br>
     >>><br>
     >>> Returning to SIP proxy: d3:sdp1022:v=0#015#012o=<u></u>doubango 1983<br>
    678901 IN<br>
     >>> IP4 0.0.0.0#015#012s=-#015#012c=IN IP4 0.0.0.0#015#012t=0<br>
    0#015#012a=tcap:1<br>
     >>> RTP/AVPF#015#012a=ice-lite#<u></u>015#012m=audio 40000 RTP/AVP 0 8<br>
     >>> 101#015#012a=ptime:20#015#<u></u>012a=silenceSupp:off - - -<br>
    -#015#012a=rtpmap:0<br>
     >>> PCMU/8000/1#015#012a=rtpmap:8 PCMA/8000/1#015#012a=rtpmap:<u></u>101<br>
     >>> telephone-event/8000/1#015#<u></u>012a=fmtp:101 0-16#015#012a=pcfg:1<br>
     >>> t=1#015#012a=sendrecv#015#<u></u>012a=ssrc:434299437<br>
     >>> cname:ldjWoB60jbyQlR6e#015#<u></u>012a=ssrc:434299437<br>
     >>><br>
    mslabel:6994f7d1-6ce9-4fbd-<u></u>acfd-84e5131ca2e2#015#012a=<u></u>ssrc:434299437<br>
     >>><br>
    label:Doubango#015#012a=rtcp:<u></u>40001#015#012a=ice-ufrag:<u></u>7YFi3AH6#015#012a=ice-pwd:<u></u>oZwjQ1y9WJbLLI6mjWMSOOSVMvdQ#<u></u>015#012a=candidate:<u></u>rfWFb7Vp3QisWSvf<br>
     >>> 1 UDP 2130706432 0.0.0.0 40000 typ<br>
    host#015#012a=candidate:<u></u>rfWFb7Vp3QisWSvf<br>
     >>> 2 UDP 2130706431 0.0.0.0 40001 typ host#015#012m=text 40004<br>
    RTP/AVP 124<br>
     >>> 123#015#012a=rtpmap:124 t140/1000#015#012a=fmtp:124<br>
     >>> cps=30#015#012a=rtpmap:123 red/1000#015#012a=fmtp:123<br>
     >>> 124/124/124/124#015#012a=pcfg:<u></u>1<br>
     >>><br>
    t=1#015#012a=sendrecv#015#<u></u>012a=rtcp:40005#015#012a=ice-<u></u>ufrag:4SUsQrLE#015#012a=ice-<u></u>pwd:<u></u>qhLmZW7KFb6W7QOVFEOraZfcQaCG#<u></u>015#012a=candidate:<u></u>rfWFb7Vp3QisWSvf<br>
     >>> 1 UDP 2130706432 0.0.0.0 40004 typ<br>
    host#015#012a=candidate:<u></u>rfWFb7Vp3QisWSvf<br>
     >>> 2 UDP 2130706431 0.0.0.0 40005 typ host#015#0126:result2:oke<br>
     >>><br>
     >>> And in SIP message I capture from network, IP address in SDP<br>
    body become<br>
     >>> 0.0.0.0. The call setup success but I don't hear anything. When<br>
    I hangup<br>
     >>> this call, module rtpproxy-ng segment fault, and this is call<br>
    stack:<br>
     >>><br>
     >>> #0  bencode_string (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0,<br>
     >>> op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at<br>
    bencode.h:349<br>
     >>> #1  bencode_list_add_string (bencbuf=0x7fffb6206760,<br>
    msg=0x7fd617cb13a0,<br>
     >>> op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at<br>
    bencode.h:407<br>
     >>> #2  rtpp_function_call (bencbuf=0x7fffb6206760, msg=0x7fd617cb13a0,<br>
     >>> op=OP_DELETE, flags_str=0x7fd617cd5f90 "fox", body_out=0x0) at<br>
     >>> rtpproxy.c:1191<br>
     >>><br>
     >>> Please help me fix it.<br>
     >>><br>
     >>> Thanks<br>
     >>> Khue.<br>
     >>><br>
     >>><br>
     >>> 2013/7/24 Richard Fuchs <<a href="mailto:rfuchs@sipwise.com" target="_blank">rfuchs@sipwise.com</a><br></div></div>
    <mailto:<a href="mailto:rfuchs@sipwise.com" target="_blank">rfuchs@sipwise.com</a>>><div class="im"><br>
     >>>><br>
     >>>> 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<br>
    install and<br>
     >>>> > config follow this guide:<br>
     >>>> > <a href="https://github.com/sipwise/mediaproxy-ng" target="_blank">https://github.com/sipwise/<u></u>mediaproxy-ng</a><br>
     >>>> > when I run kamailio with rtpproxy-ng module and<br>
    mediaproxy-ng I got<br>
     >>>> > error:<br>
     >>>> > mediaproxy-ng[25216]: Failed to properly parse UDP command line<br>
     >>>> > '30514_2<br>
     >>>> > d7:command4:pinge' from <a href="http://127.0.0.1:54621" target="_blank">127.0.0.1:54621</a><br></div>
    <<a href="http://127.0.0.1:54621" target="_blank">http://127.0.0.1:54621</a>> <<a href="http://127.0.0.1:54621" target="_blank">http://127.0.0.1:54621</a>>,<div class="im"><br>
     >>>> > using<br>
     >>>> > fallback RE<br>
     >>>> > ERROR: rtpproxy-ng [rtpproxy.c:1381]: rtpp_test(): proxy<br>
    responded<br>
     >>>> > with<br>
     >>>> > invalid response<br>
     >>>><br>
     >>>> As a quick guess, I'd say that you used the -u option instead<br>
    of the -n<br>
     >>>> option (or --listen-udp instead of --listen-ng). Substitute<br>
    one for the<br>
     >>>> other and it should work.<br>
     >>>><br>
     >>>> cheers<br>
     >>>><br>
     >>>><br>
     >>>> ______________________________<u></u>_________________<br>
     >>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
    mailing list<br>
     >>>> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br></div>
    <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>><div class="im"><br>
     >>>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
     >>>><br>
     >>><br>
     >>><br>
     >>> ______________________________<u></u>_________________<br>
     >>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
    mailing list<br>
     >>> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br></div>
    <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>><div class="im"><br>
     >>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
     >>><br>
     >><br>
     >><br>
     >> ______________________________<u></u>_________________<br>
     >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
    mailing list<br></div>
     >> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>><div class="im">
<br>
     >> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
     >><br>
     ><br>
     ><br>
     > ______________________________<u></u>_________________<br>
     > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
    mailing list<br></div>
     > <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>><div class="im">
<br>
     > <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
     ><br>
<br>
<br>
<br>
    --<br>
    Carsten Bock<br>
    CEO (Geschäftsführer)<br>
<br>
    ng-voice GmbH<br>
    Schomburgstr. 80<br>
    D-22767 Hamburg / Germany<br>
<br>
    <a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br></div>
    mailto:<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a> <mailto:<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>><div class="im"><br>
<br>
    Office +49 40 34927219<br>
    Fax +49 40 34927220<br>
<br>
    Sitz der Gesellschaft: Hamburg<br>
    Registergericht: Amtsgericht Hamburg, HRB 120189<br>
    Geschäftsführer: Carsten Bock<br>
    Ust-ID: DE279344284<br>
<br>
    Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
    <a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/<u></u>imprint/</a><br>
<br>
    ______________________________<u></u>_________________<br>
    SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br></div>
    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>><div class="im">
<br>
    <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<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/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></div></blockquote></div><br></div>