From 43a41443d7abe1e9b8058811715802807330d322 Mon Sep 17 00:00:00 2001 From: crichter Date: Fri, 22 Jun 2007 15:30:08 +0000 Subject: Merged revisions 69887 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r69887 | crichter | 2007-06-19 15:23:04 +0200 (Di, 19 Jun 2007) | 1 line when we send out a SETUP, but get no response, we should cleanup everything after reception of a hangup. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71120 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_misdn.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'channels/chan_misdn.c') diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 6b2a67aa4..98c982ba1 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2468,8 +2468,14 @@ static int misdn_hangup(struct ast_channel *ast) chan_misdn_log(2, bc->port, " --> state:%s\n", misdn_get_ch_state(p)); switch (p->state) { - case MISDN_INCOMING_SETUP: case MISDN_CALLING: + case MISDN_INCOMING_SETUP: + /* 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"); + release_chan(bc); + p->state=MISDN_CLEANING; misdn_lib_send_event( bc, EVENT_RELEASE_COMPLETE); break; -- cgit v1.2.3