aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_misdn.c
diff options
context:
space:
mode:
authorcrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-10 14:09:17 +0000
committercrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-10 14:09:17 +0000
commit285ab1707107a6bf32892de64d07d12f4d3692c7 (patch)
tree20090ed57eb7f0001d9dbd3c11083801fa0cd1ac /channels/chan_misdn.c
parentcd60e503a94891be4c611894a6ac6c5f13088f01 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@18800 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r--channels/chan_misdn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index dd2b6042b..054224bae 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;