aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-15 21:18:47 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-15 21:18:47 +0000
commit4f2a5fd9bf0fd48f870d9f2f5a75deda9bbee8da (patch)
treec56dadd04ca09d05ae6ba5c0ba1003e8580cc0b5 /channels/chan_sip.c
parentb5126ff02ac6cdb366915f65af8e698c04cc0f07 (diff)
CANCEL requests are never authenticated (according to RFC 3261)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47705 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ca692d915..19ef6e0a2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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