Hello,
it is usually not a good idea to modify the To-user directly with the pseudo-variables. The uac module offers a rewrite to header function that works better and can transparently translate between the original and changed
values in request and replies.
Please note that also the uac function can be used to rewrite the To header once, so you should save your modifications and then apply them one time.
Cheers,
Henning
From: David VILLAUME <david.villaume@sewan.fr>
Sent: Mittwoch, 14. Juni 2023 11:22
To: sr-users@lists.kamailio.org
Subject: [SR-Users] impossible to modify $tU twice
Hello,
I’m in a scenario where i would apply different modification to $tU to User with KEMI, but I can’t achieve it.
I managed to reproduce it with legacy config :
Scenario 1 (both values concatenates):
route[dbg] {
$tU ="aaa";
$tU ="bbb";
}
Scenario 1 (both values concatenates and @ disapears):
route[dbg] {
$tU ="aaa";
$tU=$null;
$tU ="bbb";
}
To: sip:aaabbb5.5.5.5 --->without @
I tried different combination with [*] as for avps without success, does anyone have an idea about how to perform it ?
Regards,
David