<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I know it doesn't make sense, it's a bit of a stop-gap solution that I had hoped would be simple and turned into anything but ;-)<div class=""><br class=""></div><div class="">Best,</div><div class="">Ross<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 12 Nov 2021, at 14:45, ‪M S‬ <<a href="mailto:shaheryarkh@gmail.com" class="">shaheryarkh@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">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 class=""><br class=""></div><div class="">But nevertheless, i think you can,</div><div class=""><br class=""></div><div class="">1. Use t_relay and then in "send" event route remove the headers added by kamailio manually using textops module functions.</div><div class=""><br class=""></div><div class="">2. Use send_data or sendx methods in corex module.</div><div class=""><br class=""></div><div class=""><a href="https://kamailio.org/docs/modules/5.5.x/modules/corex.html#corex.f.send_data" class="">https://kamailio.org/docs/modules/5.5.x/modules/corex.html#corex.f.send_data</a></div><div class=""><br class=""><div class="">3. Use "network:msg" route and shape the sip packet to the form acceptable by TCP box.</div><div class=""><br class=""></div><div class=""><a href="https://kamailio.org/docs/modules/5.5.x/modules/corex.html#corex.evr.network_msg" class="">https://kamailio.org/docs/modules/5.5.x/modules/corex.html#corex.evr.network_msg</a></div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">--</div><div class="">Muhammad Shahzad Shafi</div><div class="">Tel: +49 176 99 83 10 85</div><div class=""><br class=""><br class="">Sent from my Huawei P40 5G phone</div></div></div><div style="line-height:1.5" class=""><br class=""><br class="">-------- Original message --------<br class="">From: Ross McKillop <<a href="mailto:ross@rsmck.co.uk" class="">ross@rsmck.co.uk</a>><br class="">Date: Fri, 12 Nov 2021, 14:44<br class="">To: "Kamailio (SER) - Users Mailing List" <<a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a>><br class="">Subject: [SR-Users] corex send()<br class=""><blockquote class=""><div style="word-wrap:break-word" class="">Hi All,<div class=""><br class=""></div><div class="">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" class="">https://kamailio.org/docs/modules/5.2.x/modules/corex.html#corex.f.send_tcp</a>) for TLS? </div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Essentially I want to transparently proxy what is received by Kamailio on one interface to a TLS connection e.g. </div><div class=""><br class=""></div><div class=""><span style="white-space:pre" class="">        </span>A = (TCP) => Kamailio = (TLS) => Remote Host </div><div class=""><br class=""></div><div class="">(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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Ross</div></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>