diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-22 16:59:14 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-22 16:59:14 +0000 |
commit | d343c6122b20607314812777229e0740c087dba8 (patch) | |
tree | fc529e98ce4a100f9292e4143f09acc1b1a4198a | |
parent | a77edc26ae9d358dec5db57f3791b25f644a7c80 (diff) |
Merged revisions 288344 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r288344 | dvossel | 2010-09-22 11:53:28 -0500 (Wed, 22 Sep 2010) | 9 lines
Merged revisions 288343 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r288343 | dvossel | 2010-09-22 11:49:56 -0500 (Wed, 22 Sep 2010) | 2 lines
During check_pendings, if the dialog is terminated with a CANCEL, change the invitestate to INV_CANCEL like in sip_hangup.
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@288345 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 38436f4bb..12a595baa 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18512,11 +18512,12 @@ 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 (p->invitestate == INV_PROCEEDING || p->invitestate == INV_EARLY_MEDIA) + if (p->invitestate == INV_PROCEEDING || p->invitestate == INV_EARLY_MEDIA) { + p->invitestate = INV_CANCELLED; transmit_request(p, SIP_CANCEL, p->lastinvite, 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 { + } else { /* We have a pending outbound invite, don't send something new in-transaction */ if (p->pendinginvite) |