Hello,
for operations over headers, subst_hf() could come also handy sometimes.
Btw, be careful not to do operations over the same header many times,
use msg_apply_changes() if you have to.
Cheers,
Daniel
On 17.07.17 20:59, David Villasmil wrote:
The display name shouldn't affect anything, best
is just to test it.
You can use something like:
xlog("L_ERR", "Contact header: $ct\n");
$var(mycontact) = $ct;
*** Manipulate the content as needed ***
remove_hf("Contact");
append_hf("Contact: <$var(mycontact)>\r\n");
Hope this helps
ᐧ
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
<mailto:david.villasmil.work@gmail.com>
phone: +34669448337
On Mon, Jul 17, 2017 at 8:48 PM, Diego Nadares <dnadares(a)gmail.com
<mailto:dnadares@gmail.com>> wrote:
Hi guys,
Is possible to cut change/delete display name in contact header?
Does this breaks something?
Cheers,
Diego.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org <mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
<https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training -
www.asipto.com
Kamailio World Conference -
www.kamailioworld.com