[asterisk-dev] function ARRAY slows asterisk down

Russell Bryant russell at digium.com
Thu Nov 20 09:01:02 CST 2008


Theo Belder wrote:
> Please could somebody tell me why the autoservice is used for the 
> function and why the autoservice slows down asterisk.

The channel must be put in autoservice if code being run might block for 
an appreciable period of time (database lookup, ENUM lookup, etc.).  In 
this case, the code for the ARRAY() function does no such thing. 
Channel autoservice should be removed in this case.

-- 
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.



More information about the asterisk-dev mailing list