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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri May 18 08:12:10 MST 2007


Author: oej
Date: Fri May 18 10:12:09 2007
New Revision: 65075

URL: http://svn.digium.com/view/asterisk?view=rev&rev=65075
Log:
Issue 9235 - part of the problem, maybe not all. Please retry with this patch (and no
other patch) if you have problems with hanging SIP channels. Thank you.

A special Thank You to WeBRainstorm that gave me access to his system.

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?view=diff&rev=65075&r1=65074&r2=65075
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Fri May 18 10:12:09 2007
@@ -9872,10 +9872,15 @@
 			This transaction is already scheduled to be killed by sip_hangup().
 		*/
 		transmit_request(p, SIP_ACK, seqno, 0, 0);
-		if (p->owner && !ignore)
+		if (p->owner && !ignore) {
 			ast_queue_hangup(p->owner);
-		else if (!ignore)
+			append_history(p, "Hangup", "Got 487 on CANCEL request from us. Queued AST hangup request");
+		} else if (!ignore) {
 			update_call_counter(p, DEC_CALL_LIMIT);
+			append_history(p, "Hangup", "Got 487 on CANCEL request from us on call without owner. Killing this dialog.");
+			ast_set_flag(p, SIP_NEEDDESTROY);	
+			ast_set_flag(p, SIP_ALREADYGONE);	
+		}
 		break;
 	case 491: /* Pending */
 		/* we have to wait a while, then retransmit */



More information about the asterisk-commits mailing list