[asterisk-dev] Ways of invoking channel read function

Russell Bryant russell at digium.com
Wed Oct 7 08:15:07 CDT 2009


Rus V. Brushkoff wrote:
> On Tue, 6 Oct 2009, Kevin P. Fleming wrote:
> 
> 	Hi,
> 
> :>   I'm developing new channel driver for 8 X E1 card. For code simplifying 
> :> and speed the voice samples and signalling are directly delivering to 
> :> Asterisk channel module memory - no files / file descriptors are used. All 
> :> is working except the channel read() function - it is called only when 
> :> some fd for particular voice channel is ready.
> :>   How to cope with such problem ?
> :
> :Look at how chan_iax2 handles this situation, since it does not have a
> :file descriptor per channel either.
> 
> You mean simply periodically calling ast_queue_frame(owner, f) ?

Yep.  :-)

-- 
Russell Bryant
Digium, Inc. | Engineering Manager, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list