[SR-Users] How to change To header URI from Kamailio?

Sebastian Damm damm at sipgate.de
Tue Dec 5 08:57:34 CET 2017


Hi,

most user agents ignore the domain and port in the from header. Your
UAC must be special.

However, the uac module has some functions to help you. But don't
forget to restore it on the way back.

Regards,
Sebastian

On Tue, Dec 5, 2017 at 5:32 AM, Arun NV <arunbalannv at gmail.com> wrote:
> Hi,
> I am using Kamailio 4.4. I would like to forward the request to a different
> port number of my endpoint. I have changed the destination URI and the
> INVITE  correctly reached to the new port. But the To header in the INVITE
> request has the old port. so the endpoint is not responding to the request.
> Then I tried to remove and replace To header using remove_hf("To") and
> insert_hf("To: $var(modified_to_header) \r\n"); functions. But the to header
> not changed.
> So, is there any way to change the To header URI.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>



More information about the sr-users mailing list