Eliminate extraneous LOG_DEBUG messages generated by app_fax.
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 10 Jul 2009 16:00:44 +0000 (16:00 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 10 Jul 2009 16:00:44 +0000 (16:00 +0000)
commit44af00a28f4e02e035039805d82edc4677165cfa
tree3d82911f97c87480ebc658019d5e7b48f1f222a7
parentaafa57cf4b2aef5a3961e10f86dbec3069c84c4d
Eliminate extraneous LOG_DEBUG messages generated by app_fax.

The transmit_audio() and transmit_t38() functions in app_fax have processing
loops that are supposed to wait for frames to arrive on the channel and then
handle them, but they also have short timeouts so that the loops can have
watchdog timers and do other required processing. This commit changes the loops
to not actually call ast_read() and attempt to process the returned frame
unless a frame actually arrived, eliminating hundreds of LOG_DEBUG messages
and slightly improving performance.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@205780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_fax.c