[SR-Users] Header field Contact not changed on kamailio 4.2
Зуев Михаил
z.m.c at list.ru
Mon May 25 10:04:37 CEST 2015
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: rn", "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?
--
С
уважением Зуев Михаил
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150525/35f98d8f/attachment.html>
More information about the sr-users
mailing list