[SR-Users] Retrieving the custom header parameter value from contact header

Daniel-Constantin Mierla miconda at gmail.com
Tue May 2 15:22:02 CEST 2017


Hello,

be careful with using param transformation directly not to have a
conflict of parameter name between URI parameters and header parameters.

It may be safer to chain the tobody and param transformations to be sure
you access the right part of the header.

Cheers,
Daniel


On 02.05.17 09:02, vivek at advaitamtech.com wrote:
>
> I used " $(ct{param.value,tgrp});". It worked. Thanks for the input.
>
>  
>
> - Vivek.
>
>  
>
> -----Original Message-----
> From: "Juha Heinanen" <jh at tutpro.com>
> Sent: Monday, 1 May, 2017 6:15pm
> To: "Kamailio (SER) - Users Mailing List" <sr-users at lists.kamailio.org>
> Subject: [SR-Users] Retrieving the custom header parameter value from
> contact header
>
> vivek at advaitamtech.com writes:
>
> > Tried using @hf_value.contact.p.tgrp . But it is giving me complete
> > contact header.
> > I want only "tgrp" paramter value "tg_0615_prsw1". Anyone , any
> > sugeestions?
>
> Try {uri.param,name} transformation.
>
> -- Juha
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> 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 - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

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


More information about the sr-users mailing list