[asterisk-dev] [asterisk-commits] russell: branch 1.4 r179532 - /branches/1.4/apps/app_meetme.c
Kevin P. Fleming
kpfleming at digium.com
Tue Mar 3 07:14:26 CST 2009
Russell Bryant wrote:
> That way, if ast_read() is called at a bad time anywhere else, it will
> definitely end up calling the channel read callback. That will either
> return NULL, or &ast_null_frame with an error message, IIRC, depending
> on the channel driver. This is better, as we'll always see a symptom
> if this happens.
Actually, I was thinking that if chan->fdno was set to -1 by ast_read(),
then any future calls to ast_read() would see that and directly
abort/generate a warning message, without even requiring the channel
driver callback to be involved.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list