Hi guys,
Is possible to cut change/delete display name in contact header? Does this breaks something?
Cheers,
Diego.
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@gmail.com phone: +34669448337
On Mon, Jul 17, 2017 at 8:48 PM, Diego Nadares 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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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@gmail.com mailto:david.villasmil.work@gmail.com phone: +34669448337
On Mon, Jul 17, 2017 at 8:48 PM, Diego Nadares <dnadares@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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users