[asterisk-commits] qwell: trunk r137532 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 13 16:08:58 CDT 2008


Author: qwell
Date: Wed Aug 13 16:08:58 2008
New Revision: 137532

URL: http://svn.digium.com/view/asterisk?view=rev&rev=137532
Log:
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

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=137532&r1=137531&r2=137532
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Aug 13 16:08:58 2008
@@ -15178,7 +15178,10 @@
  	/* 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 */




More information about the asterisk-commits mailing list