[SR-Users] Get value of a custom header param

Arsen arsen.semionov at gmail.com
Thu Oct 26 21:02:13 CEST 2017


yeah regex works fine, but I just thought that it is possible to extract
the value by using hf_value2 function as advertised in the textopsx.html.
maybe I've misunderstood something.

Thanks


On Thu, Oct 26, 2017 at 9:07 PM, Alex Balashov <abalashov at evaristesys.com>
wrote:

> You can always fish it out using one of the regex transformations.
>
> On Thu, Oct 26, 2017 at 06:36:57PM +0300, Arsen wrote:
>
> > Hi guys!
> >
> > Is it possible to get value of a custom parameter of the authorization
> > header?
> >
> > I've checked selects in the textops mod and try the following:
> >
> >  if (is_present_hf("Authorization")) {
> >  xplog("L_ERR", "custom auth $sel(@hf_value.authorization.
> edatech_opaque)
> > \n");
> >  }
> >
> > Arsen Semionov
> > www.eurolan.info
> > cell: +442035198881
>
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171026/3969e1d8/attachment.html>


More information about the sr-users mailing list