[asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread bilal ghayyad
Hi All; I know that I can use the AGI to call (run) a script (php or python or any other kind of scripts), but the question is: If I have information that I need to build a decision in the extensions.conf based on it, and these informations can be obtained using this script, so how I will

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Alex Balashov
Easiest thing is to have your AGI script set channel variables, which can be read in the dial plan. -- This message was painstakingly thumbed out on my mobile, so apologies for brevity and errors. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Atlanta, GA

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Eric Wieling
You would set a dialplan variable from inside your AGI. In PHPAGI it might be something this: $agi-set_variable(CUST_ID, $cust_id); Then in your dialplan after your script runs you can use the variable like any other. You can also get dialplan variables AND functions: $tmp =

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Steve Edwards
On Sat, 10 Mar 2012, bilal ghayyad wrote: If I have information that I need to build a decision in the extensions.conf based on it, and these informations can be obtained using this script, so how I will read these informations? What is the method to read it from the database and store it in

Re: [asterisk-users] AGI and retreiving data, how to use this data in extensions.conf

2012-03-10 Thread Steve Edwards
On Sat, 10 Mar 2012, Steve Edwards wrote: The retrieved row contains a bunch (up to about a hundred) of columns, most s/row/rows/ -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: