[SR-Users] Header field Contact not changed on kamailio 4.2

Rizwan Khan rizkhan at gmail.com
Mon Nov 9 19:34:17 CET 2015


Did you find the solution to this ?  Do you need to do msg_apply_changes ?

Rizwan Khan



On Mon, May 25, 2015 at 1:04 PM, Зуев Михаил <z.m.c at list.ru> wrote:

> Hi all,
>
>
>
> I need to modify the host part of a contact header. I'm trying something
> like:
>
> route {
>
> .....
>
> if (remove_hf("Contact")){
>
> if (insert_hf("Contact: <sip:XXX.XXX.XXX.XXX:5060>\r\n", "Contact"))
>
> xlog("Contact modified");
>
> }
>
> if (!t_relay("YYY.YYY.YYY.YYY","5060")) {
>
> sl_reply_error();
>
> }
>
> ......
>
> }
>
>
>
> When i look SIP DUMP on YYY.YYY.YYY.YYY side i see older Contact field.
>
> I try subst_hf with regexp, subst and simply remove Contact, all this does
> not work.
>
> What i am doing wrong?
>
>
> --
>
> С уважением Зуев Михаил
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151109/75e27cdd/attachment.html>


More information about the sr-users mailing list