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)
committerAndreas Eversberg <jolly@eversberg.eu>
Mon, 13 Dec 2010 08:13:04 +0000 (09:13 +0100)
commit3fd79822b115b5a4d4eb1e3c490c5e0c254c9914
tree9c39b312962510f2b824b48948b4a321b22ebe77
parentc62fe17ee353ac81c1fb126366902b5f6e1f05c5
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