diff options
author | Christian Richter <christian.richter@beronet.com> | 2007-05-22 08:21:59 +0000 |
---|---|---|
committer | Christian Richter <christian.richter@beronet.com> | 2007-05-22 08:21:59 +0000 |
commit | 47362f090608d2cf173c98904487fe8b774250d0 (patch) | |
tree | 3097a52f81e7058c86528f9db645700b7a5bd7dc | |
parent | cff6586d8d62eaeec46721c3dbb0743a27881a92 (diff) |
Merged revisions 65342 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r65342 | crichter | 2007-05-22 10:12:20 +0200 (Di, 22 Mai 2007) | 9 lines
Merged revisions 65328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r65328 | crichter | 2007-05-22 09:46:39 +0200 (Di, 22 Mai 2007) | 1 line
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: https://origsvn.digium.com/svn/asterisk/trunk@65343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_misdn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index e777a465a..72a6129f6 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -3900,7 +3900,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); } |