I think you can accomplish this by using both of these together
http://www.opensips.org/Resources/DocsCoreVar18#toc93
$hdr(WWW-Authenticate)
http://www.opensips.org/Resources/DocsCoreTran18#toc6
s.select
On , Marwan El-Sadek <[email protected]> wrote:
Hello,
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:
$var(temp)=$(hdr(WWW-Authenticate){param.value,Realm});
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?
Thanks,
Marwan
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users