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

vivek at advaitamtech.com vivek at advaitamtech.com
Mon May 1 14:41:12 CEST 2017


Hi,
 
Am trying to extract a custom parameter from the contact header. Below it the example of contact header,
 
Eg: Contact: <sip:fayazat at XXX.XXX.XXX.XXX:5060;tgrp=tg_0615_prsw1>
I want to extract the parameter value of "tgrp"
 
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?
 
Thanks,
Vivek.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170501/021dcb03/attachment.html>


More information about the sr-users mailing list