I don&#39;t know much about OpenSIPS but it looks to me like OpenSIPS is specifically requesting to use TLS as the transport. The Contact header you showed specifically has &quot;transport=tls&quot;. I know that OpenSIPS is quite a versatile proxy so it would not surprise me if it is able to do what you are wanting. I would ask on the OpenSIPS mailing list for tips on how to accomplish this. Bogan (creator of OpenSIPS) knows a lot about FreeSWITCH as well. If this can be done they&#39;ll be happy to show you how. If you figure it out please come back and tell us if you had to make changes to OpenSIPS config, FreeSWITCH config, or both.<br>
<br>Thanks,<br>Michael<br><br><div class="gmail_quote">On Mon, Mar 25, 2013 at 4:03 PM, Chusov Alexsander <span dir="ltr">&lt;<a href="mailto:chusov.alexsandr@gmail.com" target="_blank">chusov.alexsandr@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">     Hello all,<br>
<br>
I&#39;m trying to deploy FreeSWITCH as a back-end for Opensips (<br>
<a href="http://wiki.freeswitch.org/wiki/Opensips" target="_blank">http://wiki.freeswitch.org/wiki/Opensips</a> ). TLS -&gt; Opensips -&gt; UDP -&gt;<br>
FreeSWITCH<br>
TLS work fine end point is registered. But when call phone FreeSWITCH<br>
send invite use TLS instead of UDP.<br>
<br>
Register exsample:<br>
172.20.0.24 - opensips<br>
172.20.0.22 - freeswitch<br>
172.20.0.20 - phone<br>
<br>
    REGISTER sip:<a href="http://172.20.0.22:5060" target="_blank">172.20.0.22:5060</a> SIP/2.0<br>
    Via: SIP/2.0/UDP 172.20.0.24;branch=z9hG4bK3641.9fabd823.0;i=15<br>
    Via: SIP/2.0/TLS<br>
172.20.0.20:5060;received=172.20.0.20;branch=z9hG4bK1590064540;rport=47050;alias<br>
    From: &lt;<a href="http://sip:1001@172.20.0.24:5061" target="_blank">sip:1001@172.20.0.24:5061</a>&gt;;tag=1518243149<br>
    To: &lt;<a href="http://sip:1001@172.20.0.24:5061" target="_blank">sip:1001@172.20.0.24:5061</a>&gt;<br>
    Call-ID: <a href="mailto:1616382919-5060-1@BHC.CA.A.CA">1616382919-5060-1@BHC.CA.A.CA</a><br>
    CSeq: 2505 REGISTER<br>
    Contact:<br>
&lt;sip:1001@172.20.0.20:5060;transport=tls&gt;;reg-id=1;+sip.instance=&quot;&lt;urn:uuid:00000000-0000-1000-8000-000B823DB6B2&gt;&quot;<br>
    Authorization: Digest username=&quot;1001&quot;, realm=&quot;172.20.0.24&quot;,<br>
nonce=&quot;102dacd4-959f-11e2-8317-67a135a6f66b&quot;,<br>
uri=&quot;sip:<a href="http://172.20.0.24:5061" target="_blank">172.20.0.24:5061</a>&quot;, response=&quot;8f80bc7f8fb5fe5a895a5b39f9b5cde6&quot;,<br>
algorithm=MD5, cnonce=&quot;12386720&quot;, qop=auth, nc=00000005<br>
    Max-Forwards: 30<br>
    User-Agent: Grandstream GXP1405 1.0.5.10<br>
    Supported: path<br>
    Expires: 300<br>
    Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO,<br>
REFER, UPDATE, MESSAGE<br>
    Content-Length: 0<br>
    Path: &lt;sip:172.20.0.24;r2=on;lr;received=sip:<a href="http://172.20.0.20:47050" target="_blank">172.20.0.20:47050</a>&gt;<br>
    X-AUTH-IP: 172.20.0.20<br>
<br>
Call-ID:        <a href="mailto:1616382919-5060-1@BHC.CA.A.CA">1616382919-5060-1@BHC.CA.A.CA</a><br>
User:           <a href="mailto:1001@172.20.0.22">1001@172.20.0.22</a><br>
Contact:        &quot;user&quot;<br>
&lt;sip:1001@172.20.0.20:5060;transport=tls;fs_path=%3Csip%3A172.20.0.24%3Br2%3Don%3Blr%3Breceived%3Dsip%3A172.20.0.20%3A47050%3E&gt;<br>
Agent:          Grandstream GXP1405 1.0.5.10<br>
Status:         Registered(TLS)(unknown) EXP(2013-03-26 01:01:18)<br>
EXPSECS(309)<br>
Host:           172.20.0.22<br>
IP:             172.20.0.24<br>
Port:           5060<br>
Auth-User:      1001<br>
Auth-Realm:     172.20.0.24<br>
MWI-Account:    <a href="mailto:1001@172.20.0.22">1001@172.20.0.22</a><br>
<br>
<br>
sofia/internal/sip:1001@172.20.0.20:5060;transport=tls;fs_path=%3Csip%3A172.20.0.24%3Br2%3Don%3Blr%3Breceived%3Dsip%3A172.20.0.20%3A47050%3E<br>
<br>
I&#39;m not familiar with C + + to test made small changes I understand it&#39;s<br>
not right but it works<br>
in src/mod/endpoints/mod_sofia/sofia_glue.c  1233, 1348  change<br>
<br>
         } else if (!strncasecmp(str, &quot;tls&quot;, 3)) {<br>
                 return SOFIA_TRANSPORT_TCP_TLS;<br>
         }<br>
<br>
to<br>
         } else if (!strncasecmp(str, &quot;tls&quot;, 3)) {<br>
                 return SOFIA_TRANSPORT_UDP;<br>
         }<br>
<br>
<br>
<br>
Can anyone tell how to configure FreeSWITCH for normal UDP-&gt;TLS TLS-&gt;UDP<br>
work. Or maybe I&#39;m doing something wrong?<br>
<br>
<br>
Sorry for my english<br>
<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>