<p dir="ltr">If you were to ask me, i would prefer that mp-ng would take the 2nd arg to rtpproxy_manage and replace the sdp.</p>
<p dir="ltr">That way, it would be consistent to the behavior of the old one, rtpproxy.</p>
<div class="gmail_quote">On Feb 1, 2014 1:36 AM, "Richard Fuchs" <<a href="mailto:rfuchs@sipwise.com">rfuchs@sipwise.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
<br>
You're right, mediaproxy-ng is inconsistent with the docs. Just to<br>
clarify, when you call<br>
<br>
> rtpproxy_manage("co","10.17.0.102");<br>
<br>
you expect the new, rewritten SDP to come out with this IP address as<br>
media address in it, as opposed to the address(es) set on the MP-NG<br>
command line, right?<br>
<br>
Right now, MP-NG treats it as an override to the original address given<br>
in the received SDP. Not sure if it even makes sense to have that option.<br>
<br>
I'll push a fix shortly.<br>
<br>
cheers<br>
<br>
<br>
On 01/30/14 20:25, Kelvin Chua wrote:<br>
> somehow, mediaproxy is ignoring the media address set via<br>
><br>
> rtpproxy_manage("co","10.17.0.102");<br>
><br>
> anybody tried this before?<br>
><br>
><br>
> Jan 31 09:03:29 kam2 mediaproxy-ng[20455]: Got valid command from<br>
> <a href="http://127.0.0.1:46077" target="_blank">127.0.0.1:46077</a> <<a href="http://127.0.0.1:46077" target="_blank">http://127.0.0.1:46077</a>>: answer - { "sdp":<br>
> "v=0#015#012o=root 345956998 345956998 IN IP4<br>
> 10.17.0.105#015#012s=Asterisk PBX 11.7.0#015#012c=IN IP4<br>
> 10.17.0.105#015#012t=0 0#015#012m=audio 15712 RTP/AVP 97 3 0 8<br>
> 101#015#012a=rtpmap:97 speex/8000#015#012a=rtpmap:3<br>
> GSM/8000#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:8<br>
> PCMA/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101<br>
> 0-16#015#012a=ptime:20#015#012a=sendrecv#015#012", "replace": [<br>
> "session-connection", "origin" ], "call-id":<br>
> "yqtupxcwsnbmcbo@X340saucy", "received-from": [ "IP4", "10.17.0.105" ],<br>
> "media address": "22.9.18.15", "from-tag": "kjoel", "to-tag":<br>
> "as478f57f3", "command": "answer" }<br>
> Jan 31 09:03:29 kam2 mediaproxy-ng[20455]: Returning to SIP proxy:<br>
> d3:sdp541:v=0#015#012o=root 345956998 345956998 IN IP4<br>
> 10.17.0.102#015#012s=Asterisk PBX 11.7.0#015#012c=IN IP4<br>
> 10.17.0.102#015#012t=0 0#015#012a=ice-lite#015#012m=audio 10002 RTP/AVP<br>
> 97 3 0 8 101#015#012a=rtpmap:97 speex/8000#015#012a=rtpmap:3<br>
> GSM/8000#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:8<br>
> PCMA/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101<br>
> 0-16#015#012a=ptime:20#015#012a=sendrecv#015#012a=rtcp:10003#015#012a=ice-ufrag:QocOqhlR#015#012a=ice-pwd:HZ7WUgsHAKlLGp1n2FAzEwWsS9gj#015#012a=candidate:pMoXfVtH0dDfxpoa<br>
> 1 UDP 2130706432 10.17.0.102 10002 typ<br>
> host#015#012a=candidate:pMoXfVtH0dDfxpoa 2 UDP 2130706431 10.17.0.102<br>
> 10003 typ host#015#0126:result2:oke<br>
><br>
><br>
> Kelvin Chua<br>
><br>
><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>
<br>
<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>