From: Jeff Peeler Date: Mon, 2 Aug 2010 21:14:20 +0000 (+0000) Subject: Change SIP NOTIFY requests to expect a response so authentication will work. X-Git-Tag: 1.6.2.12-rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a66be5fedca75458a755c807493d63422781e132;p=thirdparty%2Fasterisk.git Change SIP NOTIFY requests to expect a response so authentication will work. 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 78ce4d6552..dc8e987136 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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)