I wondering whether that removing autoservice in this case would be such a good idea.<br>Since the Set(ARRAY()) function is also used in combination of func_odbc to set multiple entries from a database lookup. <br>Obviously an ODBC lookup might also block for an appreciable period of time.<br>
If this is indeed the case, then the autoservice should also be called during a normal Set(). Am I mistaken?<br><br><br><div class="gmail_quote">2008/11/20 Russell Bryant <span dir="ltr">&lt;<a href="mailto:russell@digium.com">russell@digium.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Theo Belder wrote:<br>
&gt; Please could somebody tell me why the autoservice is used for the<br>
&gt; function and why the autoservice slows down asterisk.<br>
<br>
</div>The channel must be put in autoservice if code being run might block for<br>
an appreciable period of time (database lookup, ENUM lookup, etc.). &nbsp;In<br>
this case, the code for the ARRAY() function does no such thing.<br>
Channel autoservice should be removed in this case.<br>
<br>
--<br>
Russell Bryant<br>
Senior Software Engineer<br>
Open Source Team Lead<br>
Digium, Inc.<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</blockquote></div><br>