diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 3bf80aae1a..0fc1a5b3b9 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2884,12 +2884,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; @@ -2912,6 +2911,7 @@ static int misdn_hangup(struct ast_channel *ast) } break; + case MISDN_CALLING: case MISDN_ALERTING: case MISDN_PROGRESS: case MISDN_PROCEEDING: