From hw@gilawa.com Tue Mar 19 10:31:09 2024 From: Henning Westerholt To: sr-users@lists.kamailio.org Subject: [SR-Users] Re: http_async_query on carrierfailureroute changes rd back to carrieroute primary Date: Tue, 19 Mar 2024 10:30:51 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0567294816==" --===============0567294816== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, Using http_async_query can change some script behaviour due to some side effe= cts, I noticed this also e.g. on rtpengine functions. I did not looked into your cfg in details, but one easy option from your side= would be to try a maintained Kamailio version (e.g. 5.7.x) and see if the pr= oblem also is observable there. Cheers, Henning From: Maharaja Azhagiah via sr-users Sent: Montag, 18. M=C3=A4rz 2024 22:21 To: Kamailio (SER) - Users Mailing List Cc: Maharaja Azhagiah Subject: [SR-Users] http_async_query on carrierfailureroute changes rd back t= o carrieroute primary Hi I am running kamailio 5.4 on debian I have carrierfailureroute configured incase of primary service provider fail= s. I also have Stirshaken configured to add Identity header on outbound calls= . Issue is when call fail overs to carrierfailureroute, http_async_query chan= ges $ru to the primary carrier From the debug logs, when primary carrier sends a 488 (primary carrier expect= s SIP TLS but my call is UDP - to test the failover scenario) 39(285) DEBUG: {1 18398 INVITE 8EmmsLqNuMRYBduMqFgX3w4JHAn4C2xn} tmx [t_var.c= :561]: pv_get_tm_reply_code(): reply code is <488> 39(285) DEBUG: {1 18398 INVITE 8EmmsLqNuMRYBduMqFgX3w4JHAn4C2xn} carrierroute= [cr_func.c:178]: set_next_domain_on_rule(): searching for matching routing r= ules39(285) INFO: {1 18398 INVITE 8EmmsLqNuMRYBduMqFgX3w4JHAn4C2xn} carrierro= ute [cr_func.c:197]: set_next_domain_on_rule(): next_domain is 47987 Carrier route rewrites the failover carrier 39(285) INFO: {1 18398 INVITE 8EmmsLqNuMRYBduMqFgX3w4JHAn4C2xn} carrierroute = [cr_func.c:706]: cr_do_route(): uri 14371234567 was rewritten to sip:14371234= 567(a)sip.primaryprovider.com, carrier 1, domain 47987 Before http_async_query rd and ru are still the failover carrier 39(285) INFO: {1 18398 INVITE 8EmmsLqNuMRYBduMqFgX3w4JHAn4C2xn}