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-09-27 13:26:09 -05:00
2010-09-07 09:40:47 -05:00
2010-11-24 03:58:22 +00:00
2010-08-19 10:38:54 -05:00
2010-08-19 10:38:54 -05:00
2010-08-19 10:38:54 -05:00
2010-11-17 11:46:20 -06:00
2010-03-30 14:25:13 -04:00
2009-12-07 07:07:43 +00:00
2010-11-07 14:35:29 -06:00
2010-02-23 22:56:54 +00:00
2010-09-14 17:14:53 -07:00