aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_misdn.c
diff options
context:
space:
mode:
authorcrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 07:46:39 +0000
committercrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 07:46:39 +0000
commitad4f95c84bf994d5aafe3bc502239c50708ea2ea (patch)
tree2a072c474ba212af2580d56a442e89369b16486e /channels/chan_misdn.c
parent59d800072ecf60a7e8e92140cc17e527e3349ecd (diff)
we stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNECTED state we should not stop tones when we receive an Information Message
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65328 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r--channels/chan_misdn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index e2bd8b087..703e3c378 100644
--- a/channels/chan_misdn.c
+++ b/channels/chan_misdn.c
@@ -3459,7 +3459,8 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
{
int stop_tone;
misdn_cfg_get( 0, MISDN_GEN_STOP_TONE, &stop_tone, sizeof(int));
- if ( stop_tone ) {
+
+ if ( (ch->state != MISDN_CONNECTED) && stop_tone ) {
stop_indicate(ch);
}