fixes segfault on incoming call which is disconnected in Alerting state
authorChristian Richter <christian.richter@beronet.com>
Tue, 27 Jun 2006 11:28:48 +0000 (11:28 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 27 Jun 2006 11:28:48 +0000 (11:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36173 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index eee3510..001019d 100644 (file)
@@ -3764,6 +3764,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                break;
        case EVENT_RELEASE_COMPLETE:
        {
+               ch->state=MISDN_CLEANING;
                stop_bc_tones(ch);
                release_chan(bc);
        }