I used append_to_reply function to rebuild the To header, but the problem is that the old To header stays there even if I use remove_hf method to remove it.__________________________________________________________
What I’m doing wrong here?
My logic is set inside a route block.
Regards,
Sent from my iPhone
On Aug 9, 2023, at 2:55 PM, Ali Taher <ataher@vanrise.com> wrote:
Hello,
I’m using Kamailio as SIP redirect where SBC sends INVITE packet to kamailio and "302","Multiple Choices" is sent back to SBC.
What I want is to modify the URI part in the To header of the Multiple Choices packet sent from kamailio. I tried to use uac_replace_to("”,"sip:$var(cdpn)@$td") where $var(cdpn) is already defined in the routing logic, but it’s not reflected and the original TO URI is sent instead.
Any help to handle this issue is much appreciated.
Regards,
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: