aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-13 21:09:36 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-13 21:09:36 +0000
commit9466c30453ea62aba29a6dcb1434f0d00358db83 (patch)
treee8d0348332874f11689a2e00af64474744f0b874
parentf2979833a44e248a6a6bc696e323fd1427741e4d (diff)
Merged revisions 137532 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r137532 | qwell | 2008-08-13 16:08:58 -0500 (Wed, 13 Aug 2008) | 8 lines Correctly end locally ended calls. (closes issue #12170) Reported by: pj Patches: 20080702__issue12170_clear_pendinginvite.diff uploaded by bbryant (license 36) Tested by: bbryant, pabelanger ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@137533 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d8fe725a3..66a5fdf3e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14705,7 +14705,10 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
/* Final response, not 200 ? */
if (resp >= 300 && (p->invitestate == INV_CALLING || p->invitestate == INV_PROCEEDING || p->invitestate == INV_EARLY_MEDIA ))
p->invitestate = INV_COMPLETED;
-
+
+ /* Final response, clear out pending invite */
+ if ((resp == 200 || resp >= 300) && p->pendinginvite && seqno == p->pendinginvite)
+ p->pendinginvite = 0;
switch (resp) {
case 100: /* Trying */