<div dir="ltr"><div><div>Hi Brian.<br><br></div>Basically it becomes handy if you can change contact to be a SIP proxy in front of FS.<br></div><div>I&#39;ve a scenario with kamailio being the SIP proxy in front of FS both on the same server. Kamailio handles 5060/5061 UDP/TCP/TLS and FS listen on 5070/5080 (internal/external) both FS profiles have outbound_proxy enabled and pointing to Kamailio.<br>
</div><div>In this scenario FS sets contact to: &lt;contact_user&gt;@ext-sip-ip:ext-sip-port if i have ext-sip-ip, ext-sip-port defined in my sip profiles otherwise it will be &lt;contact_user&gt;@sip-ip:sip-port.<br></div>
<div>When SIP passes through kamailio it will be using the Contact set in FS and will present it to the endpoints and some endpoints answer back using the contact and not the original source_ip/source_port. When this happens and my firewall prevents FS from being reached directly from the outside world i start experiencing issues like drop calls etc.<br>
</div><div>With that being said it would be useful if i could tell FS to rewrite the contact with a sip_uri of my own, something simillar to what contact-user/ext-sip-ip/ext-sip-port profile variable do but without making FS bind to that IP:PORT which prevents me from setting the same variables in more than one sip profile.<br>
<br></div><div>Looking forward to hear from you.<br><br></div><div>Best Regards,<br></div></div><div class="gmail_extra"><br clear="all"><div><p><font color="#1f497d" face="&#39;Trebuchet MS&#39;, sans-serif">--</font></p>
<p><b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d">Nuno Miguel Reis</span></b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"> | <b>Unified Communication</b></span><b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"> Systems</span></b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>

M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"></span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"></span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>
</span></p><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>

Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:rgb(19,55,112)"><br>

T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:rgb(19,55,112)"><br></span><b><span style="font-size:9.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="http://maps.google.com/maps/ms?msa=0&amp;msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:#1f497d">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d"></span></a></b><p>
<span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>


<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:&#39;Times New Roman&#39;" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
<br><br><div class="gmail_quote">On Tue, May 20, 2014 at 4:48 PM, Nuno Reis <span dir="ltr">&lt;<a href="mailto:nreis@wavecom.pt" target="_blank">nreis@wavecom.pt</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><div><div><div>Hi!<br></div>I&#39;ve been looking at FS source code and realized that at least the invite_contact can be changed by declaring the contact-user, ext-sip-ip and ext-sip-port profile variables.<br>

</div>I would like to know what other option do i have to change contact(all the sip_uri string) in the different stages of a call: REGISTER/INVITE/SESSION_IN_PROGRESS, ACK, OK, etc...<br></div>I would also like to be able to change contact in runtime dynamically, what option do i have in this case?<br>

<br></div>Thanks.<br clear="all"><div><div><div><div><div><div><p><font color="#1f497d" face="&#39;Trebuchet MS&#39;, sans-serif">--</font></p><p><b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d">Nuno Miguel Reis</span></b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"> | <b>Unified Communication</b></span><b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"> Systems</span></b><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>


M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;"></span><span style="font-size:10.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"></span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>

</span></p><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>


Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#133770"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:rgb(19,55,112)"><br>


T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:rgb(19,55,112)"><br></span><b><span style="font-size:9.0pt;font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="http://maps.google.com/maps/ms?msa=0&amp;msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:#1f497d">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d"></span></a></b><p>

<span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>



<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:&#39;Times New Roman&#39;" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
</div></div></div></div></div></div>
</blockquote></div><br></div>