[asterisk-commits] murf: trunk r47349 - /trunk/main/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 8 16:17:27 MST 2006


Author: murf
Date: Wed Nov  8 17:17:27 2006
New Revision: 47349

URL: http://svn.digium.com/view/asterisk?rev=47349&view=rev
Log:
This mod via bug 7531

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?rev=47349&r1=47348&r2=47349&view=diff
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed Nov  8 17:17:27 2006
@@ -3882,7 +3882,11 @@
 						bridge_playfile(c1, c0, config->warning_sound, t);
 				}
 				if (config->warning_freq) {
-					nexteventts = ast_tvadd(nexteventts, ast_samp2tv(config->warning_freq, 1000));
+
+					if (time_left_ms > (config->warning_freq + 5000)) {
+						nexteventts = ast_tvadd(nexteventts, ast_samp2tv(config->warning_freq, 1000));
+					}
+								
 				} else
 					nexteventts = ast_tvadd(config->start_time, ast_samp2tv(config->timelimit, 1000));
 			}



More information about the asterisk-commits mailing list