[Asterisk-Dev] Error parsing "response" in check_auth()
Wilhelm Wimmreuter
wilhelm at wimmreuter.de
Wed May 14 14:52:03 MST 2003
check_auth() fails if the authentication response holds
"response" as the first argument without a leading ",".
e.g.
'Digest response="5badb0131a8d5f41d184969bfc10fcea",username="8080",
realm="asterisk",nonce="00de4d7a",uri="sip:192.168.1.5:5060"'
These humble change helped at least for me:
2931d2930
< char *z; /*ww to cure the error in parsing
Authentication Headers */
2969,2972c2968
< /*ww we need to check for blanks as well"
< c = strchr(c, ',');
< */
< if ((z = strchr(c,' ')) || (z = strchr(c,','))) c=z;
---
> c = strchr(c, ',');
has anyone got a better idea to do fix this?
Willi
More information about the asterisk-dev
mailing list