<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>initially the rtpproxy is in so called learning mode, waiting for
      the first rtp packet to come from each side of the call. Before
      receiving first rtp packet it relies on source ip of signaling.</p>
    <p>If the SDP has the device IP (you can eventually set that in the
      proxy), then you can use 'r' flag for rtpproxy_manage() to tell
      rtpproxy that it should trust the IP from sdp.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 27/05/16 09:55, gmele wrote:<br>
    </div>
    <blockquote cite="mid:1464335701687-148850.post@n5.nabble.com"
      type="cite">
      <pre wrap="">Hello,

we are using an RTP Proxy from rtpproxy.org as media relay to establish
communication between our mobile phones. Of course, we are using the
kamailio rtpproxy module to modify the SDP payload and control the proxy.

In our Kamailio configuration, we have 1 kamailio configured as Proxy and
one kamailio configured as Registrar. So calls go through the Proxy and then
to the Registrar who will update the SDP header and select an available rtp
proxy.

We have noticed that sometimes, the rtp udp flow between the phones isn't
routed properly by the rtpproxies, ending in the communication drop (all the
SIP nego is working well, and the SDP are correctly patched with the rtp
proxy address and port). 

Analyzing the RTP proxy packets, we have found that the Kamailio registrar
gives the Kamailio proxy ip address in the RTP proxy create session command,
but keeps the original sdp port.
command looks like this:
Uc96,101 DC -PbO~Wnm <proxy_ip> <port from original sdp phone packet>
PZU5OITCW;1 

We are using rtpproxy_manage() without any flags.
It seems to us that this ip and port are used as default forward route as
long as the callee hasnt connected to the rtpproxy. *Is it correct?
*
If its true, Its seems to us that this cant work as we are mixing the proxy
sip address with a udp port open on the phone ? *Is our analysis correct ?*

Can we use some option in rtpproxy_manage to replace the proxy ip by the
phone ip as seen in the via route ? 


Thx for your help

Giovanni









--
View this message in context: <a class="moz-txt-link-freetext" href="http://sip-router.1086192.n5.nabble.com/rtpproxy-module-question-tp148850.html">http://sip-router.1086192.n5.nabble.com/rtpproxy-module-question-tp148850.html</a>
Sent from the Users mailing list archive at Nabble.com.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>