From: Christian Richter Date: Mon, 10 Apr 2006 14:09:17 +0000 (+0000) Subject: we send nearly everytime a RELEASE, only if we for sure know, that it's a TE and... X-Git-Tag: 1.4.0-beta1~2049 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb6f278393eeffc5c818cae33c3a3c70ba3778f7;p=thirdparty%2Fasterisk.git we send nearly everytime a RELEASE, only if we for sure know, that it's a TE and we did create the call we don't to hear the Inband Info git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18800 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index dd2b6042bb..054224bae4 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -3556,7 +3556,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) send_cause2ast(ch->ast,bc); - if (misdn_inband_avail(bc) && ch->state != MISDN_CONNECTED) { + if ( ch->orginator==ORG_AST && !bc->nt && misdn_inband_avail(bc) && ch->state != MISDN_CONNECTED) { /* If there's inband information available (e.g. a recorded message saying what was wrong with the dialled number, or perhaps even giving an @@ -3588,7 +3588,6 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) */ misdn_lib_send_event(bc,EVENT_RELEASE); - } break;