Workaround for "noise" problems with app_rxfax in current LCR.
authorPeter Schlaile <peter@schlaile.de>
Tue, 7 Dec 2010 11:06:14 +0000 (12:06 +0100)
committerroot <peter@schlaile.de>
Tue, 7 Dec 2010 11:06:14 +0000 (12:06 +0100)
commit5a16de16711325f1a9d4b86e6b7a99b9fda258ca
tree9c39b312962510f2b824b48948b4a321b22ebe77
parent487327d2e561c218148822c6ac63705578707e5c
Workaround for "noise" problems with app_rxfax in current LCR.

The problem: for some reason, asterisk silently switches write_format
from SLINEAR to ALAW when using app_rxfax, thereby effectively disabling
automatic conversion SLINEAR->ALAW and thereby breaking app_rxfax after
the first call to ast_write(). Read: instantly, after the first data frame.

Older versions of LCR work flawlessly, until we find out, what really triggers
the problem, we at least switch the channel back, since it never makes
sense to send something different than ALAW to chan_lcr.
chan_lcr.c