[Asterisk-Dev] I need help to make a simple iax switch/proxy

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Sun Sep 11 20:57:40 MST 2005


On Sunday 11 September 2005 22:28, Derek Smithies wrote:
> You see, implementing IAX2 as is done is asterisk is unfortunate, cause
> there is a serious bottle neck at the reception and transmission of
> packets. The receive thread has to do reception and decoding of the
> packets, leaving insufficient time to do correctly receive all packets.

I'm not sure I understand.

If there is CPU starvation with a single-threaded IAX decoder how is adding 
more overhead (thread switches) going to help out?  I can see how it could 
help on a multiprocessor system but yet still I'm not so sure, as you're 
still fighting over resources (memory and network) and no amount of CPUs or 
threads are going to help with that.

Where exactly are you seeing these starvation issues?  I have to say I haven't 
noticed any quality issues with IAX2, but then again I guess I'm just not 
hitting the level of CPU usage that this becomes a problem.  Do you have 
packet dumps/audio files that show this?

-A.



More information about the asterisk-dev mailing list