Fix small SIP issue with SER (bug #1181)
authorMark Spencer <markster@digium.com>
Sun, 4 Apr 2004 21:09:22 +0000 (21:09 +0000)
committerMark Spencer <markster@digium.com>
Sun, 4 Apr 2004 21:09:22 +0000 (21:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2614 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6047dca..d1d690d 100755 (executable)
@@ -4710,7 +4710,7 @@ static int do_proxy_auth(struct sip_pvt *p, struct sip_request *req, char *heade
        char digest[1024];
        p->authtries++;
        memset(digest,0,sizeof(digest));
-       if (reply_digest(p,req, "Proxy-Authenticate", msg, digest, sizeof(digest) )) {
+       if (reply_digest(p,req, header, msg, digest, sizeof(digest) )) {
                /* No way to authenticate */
                return -1;
        }