diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 136e2898fd..30381716ad 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2824,12 +2824,11 @@ static int misdn_hangup(struct ast_channel *ast) switch (p->state) { case MISDN_INCOMING_SETUP: - case MISDN_CALLING: p->state = MISDN_CLEANING; /* This is the only place in misdn_hangup, where we * can call release_chan, else it might create lot's of trouble * */ - ast_log(LOG_NOTICE, "release channel, in CALLING/INCOMING_SETUP state.. no other events happened\n"); + ast_log(LOG_NOTICE, "release channel, in INCOMING_SETUP state.. no other events happened\n"); release_chan(bc); misdn_lib_send_event( bc, EVENT_RELEASE_COMPLETE); break; @@ -2850,6 +2849,7 @@ static int misdn_hangup(struct ast_channel *ast) misdn_lib_send_event( bc, EVENT_DISCONNECT); break; + case MISDN_CALLING: case MISDN_ALERTING: case MISDN_PROGRESS: case MISDN_PROCEEDING: