]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Change SIP NOTIFY requests to expect a response so authentication will work.
authorJeff Peeler <jpeeler@digium.com>
Mon, 2 Aug 2010 21:14:20 +0000 (21:14 +0000)
committerJeff Peeler <jpeeler@digium.com>
Mon, 2 Aug 2010 21:14:20 +0000 (21:14 +0000)
This changes the request to be sent with the transmit type XMIT_RELIABLE so that
sip_ack doesn't return false and cause the 401 to be ignored in cases where
authentication is required.

(closes issue #14255)
Reported by: zktech

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@280669 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 78ce4d6552065c7527abc7243ab8808bf10c2036..dc8e987136854bd1c291c64347456bdf5bf023a2 100644 (file)
@@ -11464,7 +11464,7 @@ static int transmit_notify_custom(struct sip_pvt *p, struct ast_variable *vars)
                initialize_initreq(p, &req);
        }
 
-       return send_request(p, &req, XMIT_UNRELIABLE, p->ocseq);
+       return send_request(p, &req, XMIT_RELIABLE, p->ocseq);
 }
 
 static int manager_sipnotify(struct mansession *s, const struct message *m)