On Thu, 4 Jun 2009, Peder wrote: > Is there a limitation to the number of variables you can set from a PHP > agi script?
Not that I've found yet :) One of my AGIs sets almost 600 channel variables. It (written in C) takes all of 1/100 of a second to lookup the variables from 2 tables in a MySQL database and set all of the variables. [snip] > Here is the part from the agi that sets the variables: > > echo ' EXEC SetVar ISLOCALCONTEXT="'.$row['context'].'"'; > echo ' EXEC SetVar ISLOCALDID="'.$row['did'].'"'; You are violating the AGI protocol. First, you have to read the AGI environment. Then, for every request, you must read the response. You will save yourself a lot of time and hair if you use an established library. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users