[Asterisk-Dev] Unacceptable delays in IAX channel.

Dmytro Mishchenko dioml at dreamtime.net
Wed Dec 21 04:43:59 MST 2005


Hello,

Here is a problem with IAX and probably other kind of channels.

IAX2 channel function socket_read() process all kind of IAX frames.
Frames of type: IAX_COMMAND_REGREQ, IAX_COMMAND_AUTHREQ, IAX_COMMAND_AUTHREP 
etc. may take some significant time for processing. E.g. in the case when 
realtime engine will try to get data from DB. 
If this time is even half of a second its enough to interrupt ALL currently 
running calls. All audio streams delayed until one frame being processed. It 
makes audio choppy.

I'm thinking that such kind of work as finding user should be scheduled and 
executed by other thread. Does it make sense? Or may be some other solution 
can be used?

Thanks,
Dmitry.



More information about the asterisk-dev mailing list