Index: asterisk/channel.c =================================================================== RCS file: /usr/cvsroot/asterisk/channel.c,v retrieving revision 1.204 diff -u -r1.204 channel.c --- asterisk/channel.c 14 Jun 2005 18:09:56 -0000 1.204 +++ asterisk/channel.c 18 Jun 2005 02:11:53 -0000 @@ -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;