On 12 Nov 2021, at 14:45, M S <shaheryarkh@gmail.com> wrote: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...But nevertheless, i think you can,1. Use t_relay and then in "send" event route remove the headers added by kamailio manually using textops module functions.2. Use send_data or sendx methods in corex module.3. Use "network:msg" route and shape the sip packet to the form acceptable by TCP box.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.--Muhammad Shahzad ShafiTel: +49 176 99 83 10 85
Sent from my Huawei P40 5G phone
-------- Original message --------
From: Ross McKillop <ross@rsmck.co.uk>
Date: Fri, 12 Nov 2021, 14:44
To: "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org>
Subject: [SR-Users] corex send()Hi All,Is there an equivalent to corex's send_tcp (https://kamailio.org/docs/modules/5.2.x/modules/corex.html#corex.f.send_tcp) for TLS?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?Essentially I want to transparently proxy what is received by Kamailio on one interface to a TLS connection e.g.A = (TCP) => Kamailio = (TLS) => Remote Host(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.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.Ross