[svn-commits] crichter: branch 1.2 r65328 - /branches/1.2/channels/chan_misdn.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue May 22 00:46:40 MST 2007


Author: crichter
Date: Tue May 22 02:46:39 2007
New Revision: 65328

URL: http://svn.digium.com/view/asterisk?view=rev&rev=65328
Log:
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

Modified:
    branches/1.2/channels/chan_misdn.c

Modified: branches/1.2/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_misdn.c?view=diff&rev=65328&r1=65327&r2=65328
==============================================================================
--- branches/1.2/channels/chan_misdn.c (original)
+++ branches/1.2/channels/chan_misdn.c Tue May 22 02:46:39 2007
@@ -3459,7 +3459,8 @@
 	{
 		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);
 		}
 	



More information about the svn-commits mailing list