diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-22 15:30:08 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-22 15:30:08 +0000 |
commit | 43a41443d7abe1e9b8058811715802807330d322 (patch) | |
tree | 79954e09f8a95ffc1f11612fc357204113dfffb6 /channels | |
parent | 4040d0beafe2fe5b4aaa9fa5eca861d8658e7539 (diff) |
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
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_misdn.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; |