I don'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 "transport=tls". 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'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"><<a href="mailto:chusov.alexsandr@gmail.com" target="_blank">chusov.alexsandr@gmail.com</a>></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'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 -> Opensips -> UDP -><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: <<a href="http://sip:1001@172.20.0.24:5061" target="_blank">sip:1001@172.20.0.24:5061</a>>;tag=1518243149<br>
To: <<a href="http://sip:1001@172.20.0.24:5061" target="_blank">sip:1001@172.20.0.24:5061</a>><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>
<sip:1001@172.20.0.20:5060;transport=tls>;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-1000-8000-000B823DB6B2>"<br>
Authorization: Digest username="1001", realm="172.20.0.24",<br>
nonce="102dacd4-959f-11e2-8317-67a135a6f66b",<br>
uri="sip:<a href="http://172.20.0.24:5061" target="_blank">172.20.0.24:5061</a>", response="8f80bc7f8fb5fe5a895a5b39f9b5cde6",<br>
algorithm=MD5, cnonce="12386720", 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: <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>><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: "user"<br>
<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>
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'm not familiar with C + + to test made small changes I understand it'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, "tls", 3)) {<br>
return SOFIA_TRANSPORT_TCP_TLS;<br>
}<br>
<br>
to<br>
} else if (!strncasecmp(str, "tls", 3)) {<br>
return SOFIA_TRANSPORT_UDP;<br>
}<br>
<br>
<br>
<br>
Can anyone tell how to configure FreeSWITCH for normal UDP->TLS TLS->UDP<br>
work. Or maybe I'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>