Andreas, I had the same issue, but with From uri, but I've found, that I have independed assigning of $fu / $fd. So, will repeat here what I've got from commit author (that introduced this "regression")
$tu - To URI *$tu* - reference to URI of 'To' header 🔥*IMPORTANT*: It is R/W variable (you can assign values to it directly in configuration file, but its value does not change) NOTE: When using this along with $tn to change part of the message, applying them all at once can result in unintended side-effects. To ensure that the changes are applied to the message as intended, it is suggested to use the msg_apply_changes() function from the textopsx module after each change to the message. This function can ensure that the changes are applied correctly and that the message remains valid. https://www.kamailio.org/wikidocs/cookbooks/devel/pseudovariables/#tu-to-uri Le mer. 4 févr. 2026 à 11:01, Andreas Heil via sr-users < [email protected]> a écrit : > Hi Björn, > > Thanks for the answer. I’ll have a look in that. > > Greetings, > Andreas > > Am 03.02.2026 um 17:25 schrieb Björn Klasen via sr-users < > [email protected]>: > > Hi Andreas, > > have you tried assing_hf_value from tmx module or just remove and add the > header with remove_hf and append_hf. > > The problem seems to be the missing brackets around the sip-uri, so it can > not be correctly parsed by uac_replace_to > > Greetings, Björn > Am 03.02.26 um 16:26 schrieb Andreas Heil via sr-users: > > Hi all, > > I’m currently testing a migration from version 5.6.x to 5.8.x. > > The problem: > 1. INVITE comes in with a To-header like this: > > To: sip:[email protected]:5060 > > 2. uac_replace_to in a branch_route: > > uac_replace_to("", > "sip:+$(avp(newDAD){s.replace,CC,})@$var(carrierDomain);user=phone“); > > Note: It does not matter if we try to change the To in different ways like: > uac_replace_to("", "sip:[email protected];user=phone“); > Or: > $td = „some.carrier.net" > <sip:[email protected];user=phone%E2%80%9C);Or:$td=%E2%80%9Esome.carrier.net>; > > 3. What gets on the line is: > > To: <sip:[email protected]:5060> > <sip:[email protected]:5060>sip:[email protected];user=phone > > Or in case of ($td): > > To: <sip:[email protected]:5060> > <sip:[email protected]:5060>some.carrier.net > > Note: the INVITE received has 1 space between „To:" and Content, The INVITE > send has 2 spaces. > > The bug only appears if the initial to-header is NOT enclosed in < >. > > I could track it down to version 5.8.5 in which it appeared first. > Everything before (including 5.8.4) behaves normally. > > I think it’s introduced by commit 6367a41f64ed165792ffe71ea310fd917947ccba > There is a comment beneath it, that reports something similar with the From > header, too. > > How can I fix that in the config, or is it a bug? > > Greetings, > Andreas > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions -- > [email protected] > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > > -- > Björn Klasen, Teamleitung NGN VoIP-Backbone > TNG Stadtnetz GmbH, TNG-Technik > Gerhard-Fröhler-Straße 12 > 24106 Kiel・Deutschland > > T +49 431 7097-10 > F +49 431 7097-555 > [email protected] > https://www.tng.de > > Executive board (Geschäftsführer): > Dr. Sven Willert (CEO), > Sabine Domes, Gunnar Peter, > Bernd Sontheimer > > Amtsgericht Kiel HRB 6002 KI > USt-ID: DE225201428 > Die Information über die Verarbeitung Ihrer Daten > gemäß Artikel 13 DSGVO können Sie unter https://www.tng.de/datenschutz/ > abrufen. > ______________________________________________________________________ > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions -- > [email protected] > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions -- > [email protected] > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > -- Best regards, Ihor (Igor)
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
