--- Lightcomm/Sistemas/Asterisk/asterisk-1.4.21.1/main/audiohook.c 2008-04-08 12:03:43.000000000 -0300 +++ svn/core/core-1.4.21.1/main/audiohook.c 2008-07-10 18:41:09.000000000 -0300 @@ -135,12 +135,12 @@ *time = ast_tvnow(); /* If we are using a sync trigger and this factory suddenly got audio fed in after a lapse, then flush both factories to ensure they remain in sync */ - if (ast_test_flag(audiohook, AST_AUDIOHOOK_TRIGGER_SYNC) && ast_slinfactory_available(other_factory) && (ast_tvdiff_ms(*time, previous_time) > (ast_slinfactory_available(other_factory) / 8))) { - if (option_debug) - ast_log(LOG_DEBUG, "Flushing audiohook %p so it remains in sync\n", audiohook); - ast_slinfactory_flush(factory); - ast_slinfactory_flush(other_factory); - } +// if (ast_test_flag(audiohook, AST_AUDIOHOOK_TRIGGER_SYNC) && ast_slinfactory_available(other_factory) && (ast_tvdiff_ms(*time, previous_time) > (ast_slinfactory_available(other_factory) / 8))) { +// if (option_debug) +// ast_log(LOG_DEBUG, "Flushing audiohook %p so it remains in sync\n", audiohook); +// ast_slinfactory_flush(factory); +// ast_slinfactory_flush(other_factory); +// } /* Write frame out to respective factory */ ast_slinfactory_feed(factory, frame);