[OpenSIPS-Users] WWW-Authenticate header Realm extraction

Marwan El-Sadek marwan_sadek at hotmail.com
Wed Jun 27 17:17:18 CEST 2012


I'm trying to extract the Realm value from the WWW-Authenticate header of the 401 unauthorized reply, however, I can't find a pseudo-variable for it, so I tried the following:


I also tried it with Digest Realm, Digest and "Digest Realm".

The received value in 401 is:

WWW-Authenticate: Digest realm="XXXX",nonce="5e36af",qop="auth"

I'm getting the following error: parse_params: invalid character, ; expected, found r

So think the problems happens because there is a space in the parameter name.

Does anyone know how can I do this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120627/9c163287/attachment.htm>

More information about the Users mailing list