[asterisk-commits] branch crichter/0.3.0 r36172 - /team/crichter/0.3.0/channels/chan_misdn.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jun 27 04:28:02 MST 2006


Author: crichter
Date: Tue Jun 27 06:28:02 2006
New Revision: 36172

URL: http://svn.digium.com/view/asterisk?rev=36172&view=rev
Log:
fixes segfault on incoming call which is disconnected in Alerting state

Modified:
    team/crichter/0.3.0/channels/chan_misdn.c

Modified: team/crichter/0.3.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_misdn.c?rev=36172&r1=36171&r2=36172&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Tue Jun 27 06:28:02 2006
@@ -3651,6 +3651,7 @@
 		break;
 	case EVENT_RELEASE_COMPLETE:
 	{
+		ch->state=MISDN_CLEANING;
 		stop_bc_tones(ch);
 		release_chan(bc);
 	}
@@ -3776,6 +3777,7 @@
 		break;
 	case EVENT_CLEANUP:
 	{
+		ch->state=MISDN_CLEANING;
 		stop_bc_tones(ch);
 		release_chan(bc);
 	}



More information about the asterisk-commits mailing list