From david.villasmil.work@gmail.com Tue Nov 21 12:58:57 2023 From: David Villasmil To: sr-users@lists.kamailio.org Subject: [SR-Users] Re: sips to sip Date: Tue, 21 Nov 2023 13:58:25 +0100 Message-ID: In-Reply-To: =?utf-8?q?=3CDB7PR07MB388293A22FF1B0D857C01213BFBBA=40DB7PR07MB?= =?utf-8?q?3882=2Eeurprd07=2Eprod=2Eoutlook=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2144312523==" --===============2144312523== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable thanks Henning, Already tried that with: if (is_method("INVITE")) { $var(fline) =3D $msg(fline); $var(hdrs) =3D $msg(hdrs); $var(body) =3D $msg(body); $var(fline) =3D $(var(fline){s.replace,sips,sip}); #{s.replace,;transport=3DTLS,}{s.replace,;transport=3Dtls,}); $var(hdrs) =3D $(var(hdrs){s.replace,sips,sip}); #{s.replace,;transport=3DTLS,}{s.replace,;transport=3Dtls,}); $var(body) =3D $(var(body){s.replace,sips,sip}); #{s.replace,;transport=3DTLS,}{s.replace,;transport=3Dtls,}); msg_set_buffer("$var(fline)\r\n$var(hdrs)\r\n\r\n$var(body)"); msg_apply_changes(); } but then the BYE doesn't work, kamailio can't match it to a dialog 2023/11/21 12:48:41.962062 FREESWITCH-IP:5080 -> 10.0.3.141:5060 BYE sip:+FROM-NUMBER(a)CLIENT-IP;transport=3DTLS SIP/2.0 Via: SIP/2.0/UDP FREESWITCH-IP:5080;rport;branch=3Dz9hG4bK34FNtg4e31B8K Route: Route: Max-Forwards: 70 From: ;tag=3D133B764ZS9QvD To: ;tag=3Ddf6b235d Call-ID: 75fc6fcaaa32bcd7655ca72452eac CSeq: 75731668 BYE User-Agent: C3S-v1.1 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY Supported: timer, path, replaces Reason: Q.850;cause=3D16;text=3D"NORMAL_CLEARING" Content-Length: 0 DEBUG: [core/receive.c:392]: receive_msg(): --- received sip message - request - call-id: [aa157c08df1109c4655ca64d0ed67] - cseq: [75731561 BYE] DEBUG: [core/receive.c:263]: ksr_evrt_pre_routing(): event route core:pre-routing not defined DEBUG: [core/receive.c:474]: receive_msg(): preparing to run routing scripts... ERROR: