[Asterisk-cvs] asterisk channel.c,1.204,1.205
markster at lists.digium.com
markster at lists.digium.com
Sat Jun 18 13:16:55 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv6638
Modified Files:
channel.c
Log Message:
Fix timelimit bug (bug #4552)
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.204
retrieving revision 1.205
diff -u -d -r1.204 -r1.205
--- channel.c 14 Jun 2005 18:09:56 -0000 1.204
+++ channel.c 18 Jun 2005 17:18:02 -0000 1.205
@@ -2858,8 +2858,10 @@
time_left_ms = config->timelimit - elapsed_ms;
if (*playitagain && ((ast_test_flag(&(config->features_caller), AST_FEATURE_PLAY_WARNING)) || (ast_test_flag(&(config->features_callee), AST_FEATURE_PLAY_WARNING))) && (config->play_warning && time_left_ms <= config->play_warning)) {
- res = -3;
- break;
+ if (config->warning_freq == 0 || time_left_ms == config->play_warning || (time_left_ms % config->warning_freq) <= 50) {
+ res = -3;
+ break;
+ }
}
if (time_left_ms <= 0) {
res = -3;
More information about the svn-commits
mailing list