<div dir="auto">you are trying to use Kamailio as transport bridge (TCP <-> TLS) but don't want to use it's transport bridge capabilities (Route & Via headers etc.), that doesn't makes sense...<div><br></div><div>But nevertheless, i think you can,</div><div><br></div><div>1. Use t_relay and then in "send" event route remove the headers added by kamailio manually using textops module functions.</div><div><br></div><div>2. Use send_data or sendx methods in corex module.</div><div><br></div><div>https://kamailio.org/docs/modules/5.5.x/modules/corex.html#corex.f.send_data</div><div><br><div>3. Use "network:msg" route and shape the sip packet to the form acceptable by TCP box.</div><div><br></div><div>https://kamailio.org/docs/modules/5.5.x/modules/corex.html#corex.evr.network_msg</div><div><br></div><div>By the way, per my understanding send_tcp suppose to work for TLS connections, since TLS is basically a TCP connection. Anyways, i will run some tests to see its behavior when i have enough time.</div><div><br></div><div>--</div><div>Muhammad Shahzad Shafi</div><div>Tel: +49 176 99 83 10 85</div><div><br><br>Sent from my Huawei P40 5G phone</div></div></div><div style="line-height:1.5"><br><br>-------- Original message --------<br>From: Ross McKillop <ross@rsmck.co.uk><br>Date: Fri, 12 Nov 2021, 14:44<br>To: "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org><br>Subject: [SR-Users] corex send()<br><blockquote><div style="word-wrap:break-word">Hi All,<div><br /></div><div>Is there an equivalent to corex's send_tcp (<a href="https://kamailio.org/docs/modules/5.2.x/modules/corex.html#corex.f.send_tcp">https://kamailio.org/docs/modules/5.2.x/modules/corex.html#corex.f.send_tcp</a>) for TLS? </div><div><br /></div><div>I have a bit of an odd edge case where I can't add Via headers etc, and send_udp and send_tcp allow me to achieve what I want, but it doesn't seem to have a means of doing the same with TLS? </div><div><br /></div><div>Essentially I want to transparently proxy what is received by Kamailio on one interface to a TLS connection e.g. </div><div><br /></div><div><span style="white-space:pre">     </span>A = (TCP) => Kamailio = (TLS) => Remote Host </div><div><br /></div><div>(A) in this instance is already setting a Via header of the Kamailio's external IP and transport tis. I appreciate this is a non-standard way of doing it, but (A) is a black box that I can't change, what I'm essentially trying to do is have Kamailio handle the TLS but essentially (A) thinks it's at the edge.</div><div><br /></div><div>I can make it work with send_tcp for a standard TCP connection, but if I use t_relay or even forward() to send onwards by TLS then Kamailio obviously adds its own headers as you'd expect.</div><div><br /></div><div>Ross</div></div></blockquote></div>