Hello,
if you are using upcoming 4.4, then new pvs were added:
-
https://www.kamailio.org/wiki/features/new-in-4.4.x#pv
For older versions, besides the regexp, you can try with transformations:
-
https://www.kamailio.org/wiki/cookbooks/4.3.x/transformations
Or selects:
-
https://www.kamailio.org/wiki/cookbooks/4.3.x/selects#authorization_s_respo…
Note that selects can be accessed with $sel(select.path)
Cheers,
Daniel
On 07/03/16 01:14, Matthew Harrold wrote:
Hi All,
I am trying to get attributes from the Proxy-Authenticate
WWW-Authenticate and Authorization headers, namely username, realm,
uri, nonce, and response,
I can see some of these are already presented as psuedo-variables,
however nonce and response are not.
What's the most efficient way to obtain these headers? I'm currently
using a regex, but there must be a more efficient method.
Thanks for your help,
Matthew
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, March 7-9, 2016 -
http://www.asipto.com