[asterisk-commits] oej: branch 1.2 r41423 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Aug 30 12:01:56 MST 2006


Author: oej
Date: Wed Aug 30 14:01:55 2006
New Revision: 41423

URL: http://svn.digium.com/view/asterisk?rev=41423&view=rev
Log:
Issue #7572 - Hangup when receiving a buggy 487 response to an INVITE

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=41423&r1=41422&r2=41423&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Wed Aug 30 14:01:55 2006
@@ -2299,6 +2299,7 @@
 	switch(cause) {
 		case 603:	/* Declined */
 		case 403:	/* Not found */
+		case 487:	/* Call cancelled */
 			return AST_CAUSE_CALL_REJECTED;
 		case 404:	/* Not found */
 			return AST_CAUSE_UNALLOCATED;
@@ -10073,6 +10074,8 @@
 					break;
 				case 487:
 					/* channel now destroyed - dec the inUse counter */
+					if (owner)
+						ast_queue_hangup(p->owner);
 					update_call_counter(p, DEC_CALL_LIMIT);
 					break;
 				case 482: /* SIP is incapable of performing a hairpin call, which



More information about the asterisk-commits mailing list