]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CANCEL requests are never authenticated (according to RFC 3261)
authorOlle Johansson <oej@edvina.net>
Wed, 15 Nov 2006 21:18:47 +0000 (21:18 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 15 Nov 2006 21:18:47 +0000 (21:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47705 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ca692d915cedcb6c58baadce9e1f940675c06076..19ef6e0a2e5bc2967c01de1a6ee5f05593827990 100644 (file)
@@ -2482,7 +2482,7 @@ static int sip_hangup(struct ast_channel *ast)
                                        /* Do we need a timer here if we don't hear from them at all? */
                                } else {
                                        /* Send a new request: CANCEL */
-                                       transmit_request_with_auth(p, SIP_CANCEL, p->ocseq, 1, 0);
+                                       transmit_request(p, SIP_CANCEL, p->ocseq, 1, 0);
                                        /* Actually don't destroy us yet, wait for the 487 on our original 
                                           INVITE, but do set an autodestruct just in case we never get it. */
                                }
@@ -9649,7 +9649,7 @@ static void check_pendings(struct sip_pvt *p)
        if (ast_test_flag(p, SIP_PENDINGBYE)) {
                /* if we can't BYE, then this is really a pending CANCEL */
                if (!ast_test_flag(p, SIP_CAN_BYE))
-                       transmit_request_with_auth(p, SIP_CANCEL, p->ocseq, 1, 0);
+                       transmit_request(p, SIP_CANCEL, p->ocseq, 1, 0);
                        /* Actually don't destroy us yet, wait for the 487 on our original 
                           INVITE, but do set an autodestruct just in case we never get it. */
                else