chan_lcr: this fixes hanging with app_rxfax and a race condition
authorPeter Schlaile <root@asterisk.schlaile.de>
Fri, 22 Aug 2008 18:08:43 +0000 (20:08 +0200)
committerroot <root@asterisk.schlaile.de>
Fri, 22 Aug 2008 18:08:43 +0000 (20:08 +0200)
commita9c1ce57ba87ed4f83ce2ead103e9b6891e921c2
tree24c7ab7da0ddbd39f24315bd9de38d8d04cdb505
parent712c4dfdcb1db015da9e5d7f22683fdc3dc521b4
chan_lcr: this fixes hanging with app_rxfax and a race condition
in lcr_read

(lcr_read was hanging in locked-state forever, when no data was
available, making any further calls impossible.
Now we return a null-packet to asterisk)

Sidenode: you have to use lcr_config(r) to receive faxes correctly.
(app_rxfax seems to rely on 160-byte buffers)
chan_lcr.c