<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Daniel.</p>
<p><br>
</p>
<p>Thank you very much!</p>
<p>I will read about it right now.</p>
<p><br>
</p>
<p>Best regards.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> users-bounces@lists.opensips.org &lt;users-bounces@lists.opensips.org&gt; em nome de Daniel Zanutti &lt;daniel.zanutti@gmail.com&gt;<br>
<b>Enviado:</b> segunda-feira, 18 de abril de 2016 18:56<br>
<b>Para:</b> OpenSIPS users mailling list<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] Fix_nated_SDP works very well. How to do more changes in the SDP?</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">Hi Rodrigo
<div><br>
</div>
<div>In theory you can modify any SIP/SDP using text ops:</div>
<div><br>
</div>
<div><a id="LPlnk213581" href="http://www.opensips.org/html/docs/modules/1.6.x/textops.html#id293600">http://www.opensips.org/html/docs/modules/1.6.x/textops.html#id293600</a><br>
</div>
<div><br>
</div>
<div>I don't know any other way...</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Apr 18, 2016 at 6:17 PM, Rodrigo Pimenta Carvalho
<span dir="ltr">&lt;<a href="mailto:pimenta@inatel.br" target="_blank">pimenta@inatel.br</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Hi.<br>
</p>
<p><br>
</p>
<p>Fix_nated_sdp() function works very well. I can fix IPs in my SDP, for attributes &quot;o&quot; and &quot;c'.</p>
<p><br>
</p>
<p>However, due to a particular desire of my customer, I have to change more others IPs in my SDP. How to do it? Is it possible?</p>
<p><br>
</p>
<p>For example, how to change the pointed IP seen bellow:</p>
<p><br>
</p>
<p><br>
</p>
<p>v=0<br>
o=- 3669999344 3669999344 IN IP4 xxx.yyy.240.71<br>
s=pjmedia<br>
b=AS:25<br>
t=0 0<br>
a=X-nat:1<br>
m=audio 48053 RTP/AVP 8 110 96<br>
c=IN IP4 xxx.yyy.240.71<br>
b=TIAS:8000<br>
a=rtcp:51193 IN IP4 192.168.100.1<br>
a=sendrecv<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:110 speex/8000<br>
a=rtpmap:96 telephone-event/8000<br>
a=fmtp:96 0-16<br>
a=ice-ufrag:30381869<br>
a=ice-pwd:6268c522<br>
a=candidate:Sc0a864f1 1 UDP 1862270975 192.168.100.1 48053 typ srflx raddr 192.168.100.241 rport 48053&nbsp; //&lt;------------------------How to change 192.168.100.1 to another&nbsp; IP ????????<br>
a=candidate:Hc0a864f1 1 UDP 1694498815 192.168.100.241 48053 typ host<br>
a=candidate:Sc0a864f1 2 UDP 1862270974 192.168.100.1 51193 typ srflx raddr 192.168.100.241 rport 51193<br>
a=candidate:Hc0a864f1 2 UDP 1694498814 192.168.100.241 51193 typ host<br>
a=direction:active<br>
a=oldoip:192.168.100.1<br>
a=oldcip:192.168.100.1<br>
</p>
<p><br>
</p>
<p>We are using ICE and STUN, and it could be already well done if the STUN was on Internet as in an ordinary solution.</p>
<p>However, my customer asked me to put my stun server in the same machine of the softphone client that generates this SDP content. &nbsp;
<img tabindex="0" alt="☹" style="vertical-align: bottom; -moz-user-select: none;" src="cid:d3721f53-4bb4-4633-ab9b-25d97cdeebbd"></p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Best regards.<span class="HOEnZb"><font color="#888888"><br>
</font></span></p>
<span class="HOEnZb"><font color="#888888">
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="&#43;553534719200" target="_blank">
&#43;55 35 3471 9200</a> RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</font></span></div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>