[SR-Users] Display name in contact

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 24 08:39:34 CEST 2017


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 at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>
> On Mon, Jul 17, 2017 at 8:48 PM, Diego Nadares <dnadares at gmail.com
> <mailto:dnadares at 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 at lists.kamailio.org <mailto:sr-users at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170724/fecac921/attachment.html>


More information about the sr-users mailing list