<p style="margin:0;padding:0;" align="left">Hello all,<br /><br />I would like to use Kamailio to encrypt contents of SIP messages (using SIP TLS) between 2 endpoints, i.e.:<br />- To use 5061 port instead of 5060 port,<br />- To use sips uri instead of sip uri...<br /><br />For example, T1 and T2 communicates with &quot;Server A&quot; like that:<br />1) T1 and T2 send REGISTER to &quot;Server A&quot;<br />2) T1 and T2 received 200 OK from &quot;Server A&quot;<br />...<br />3) &quot;Server A&quot; sends an INVITE message to T1 and T2<br />...<br />4) RTP flow between T1 and T2 (this should not be encrypted)<br />...<br />5) &quot;Server A&quot; sends a BYE request to T1 and T2<br />...<br /><br />All those exchanges are made on Transport layer TCP or UDP on port 5060.<br />T1 and T2 are not able to support TLS but &quot;Server A&quot; needs to receive/send messages in SIP TLS.<br />I would like to insert Kamailio between T1 and &quot;Server A&quot;, T2 and &quot;Server B&quot; in order to encrypt contents of SIP messages.<br /><br />I have some questions about that:<br />- I think Kamailio can do that but I am not sure, can you confirm that to me please?<br />- Can I use Kamailio as it is to do that?<br />- Do I have to add a &quot;Route&quot; header in requests in order that requests between T1 and &quot;Server A&quot; go through Kamailio<br />or<br />- Does Kamailio is able to intercept SIP packets automatically (with a certain configuration)?<br />- Do you know difference between Freeswitch and Kamailio? (because I have seen that Freeswitch can do what I need:<br />see Figure4: http://wiki.freeswitch.org/wiki/SIP_TLS)<br /><br />Thank you very much for your input.<br />Regards<br /></p><BR><BR><a target=_blank href=https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique><img style="margin: 0pt;" src="http://webmail.laposte.net/webmail/fr_FR/panels/images/pied-page-generique_2.jpg" alt=""><a>