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
Sorry, hf_value2 instead of the hf_value and I see nothing in the logs, any ideas?
Thanks,
On Thu, Oct 26, 2017 at 6:36 PM, Arsen arsen.semionov@gmail.com 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 <+44%2020%203519%208881>
Hi! Maybe shoud to try @authorization[%s] - shuppoe it should get some entry matches to [%s] didn't checked but maybe it would help.
2017-10-26 18:39 GMT+03:00 Arsen arsen.semionov@gmail.com:
Sorry, hf_value2 instead of the hf_value and I see nothing in the logs, any ideas?
Thanks,
On Thu, Oct 26, 2017 at 6:36 PM, Arsen arsen.semionov@gmail.com 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 <+44%2020%203519%208881>
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Yuriy,
I've tried @authorization[%s] , seems it has only predefined parameters, moreover I can define only one realm.
Thanks, Arsen
On Thu, Oct 26, 2017 at 6:42 PM, Yuriy Gorlichenko ovoshlook@gmail.com wrote:
Hi! Maybe shoud to try @authorization[%s] - shuppoe it should get some entry matches to [%s] didn't checked but maybe it would help.
2017-10-26 18:39 GMT+03:00 Arsen arsen.semionov@gmail.com:
Sorry, hf_value2 instead of the hf_value and I see nothing in the logs, any ideas?
Thanks,
On Thu, Oct 26, 2017 at 6:36 PM, Arsen arsen.semionov@gmail.com 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 <+44%2020%203519%208881>
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org 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
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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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@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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users