Stefan Knoblich 60cb91b042 freetdm: ftmod_libpri + ftmod_zt: some DAHDI drivers return an error of ELAST (500) on read()/write() to indicate there are events pending.
Fixup zt_read() to handle this case correctly and rework ftmod_libpri's read wrapper function to not fail when the read function returns zero bytes.

NOTE: zt_write() has not been changed (some better way to handle these events is needed then)

This should fix these log messages:

   [WARNING] ftdm_io.c:3561 [s1c16][1:16] raw I/O read filed
   [CRIT] lpwrap_pri.c:125 span 1 D-READ FAIL! []
   [CRIT] lpwrap_pri.c:157 span 1 D-WRITE FAIL! []
   [ERR] ftmod_libpri.c:131 Short write: -1/6 (Unknown error 500)

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-12-07 20:06:48 +01:00
..
2010-11-01 02:13:27 +01:00
2010-05-03 12:15:18 -04:00
2010-10-06 17:51:29 -03:00
2009-02-03 16:41:48 +00:00
2010-01-15 17:06:20 +00:00
2010-10-06 17:51:29 -03:00
+ x
2010-05-01 19:45:55 -05:00
2010-11-16 14:56:19 -05:00
2010-09-30 17:58:25 -04:00
2010-02-09 19:25:26 +00:00
2010-09-30 17:58:25 -04:00
2010-03-12 18:27:24 +00:00

FreeTDM
http://wiki.freeswitch.org/wiki/FreeTDM