diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-16 15:12:30 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-16 15:12:30 +0000 |
commit | 735aaa7959782d2fb1f86009ad7b245053458985 (patch) | |
tree | 809d31ec081e66c1d2bdb31b89b2eebfe6febaed /channels/chan_sip.c | |
parent | e48a9fd51b820160cce8e505d7e87a8ce2ed150c (diff) |
- CANCEL never uses authentication
- Add docs on canreinvite
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47734 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 933b62cac..2d380e9f1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3422,7 +3422,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, XMIT_RELIABLE, FALSE); + transmit_request(p, SIP_CANCEL, p->ocseq, XMIT_RELIABLE, FALSE); /* 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. */ needdestroy = 0; @@ -11647,11 +11647,11 @@ static void check_pendings(struct sip_pvt *p) if (ast_test_flag(&p->flags[0], SIP_PENDINGBYE)) { /* if we can't BYE, then this is really a pending CANCEL */ if (!ast_test_flag(&p->flags[0], SIP_CAN_BYE)) - transmit_request_with_auth(p, SIP_CANCEL, p->ocseq, 1, 0); + transmit_request(p, SIP_CANCEL, p->ocseq, XMIT_RELIABLE, FALSE); /* 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 - transmit_request_with_auth(p, SIP_BYE, 0, 1, 1); + transmit_request_with_auth(p, SIP_BYE, 0, XMIT_RELIABLE, TRUE); ast_clear_flag(&p->flags[0], SIP_PENDINGBYE); sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT); } else if (ast_test_flag(&p->flags[0], SIP_NEEDREINVITE)) { |