|Summary:||ASTERISK-04749: [patch] [post 1.2] Pass AST_CONFIG_DIR to AGI scripts as either env or in variable exchange|
|Reporter:||Lee Essen (essele)||Labels:|
|Date Opened:||2005-08-01 12:28:26||Date Closed:||2006-01-20 22:22:45.000-0600|
|Environment:||Attachments:||( 0) 20060105__bug4872.diff.txt|
( 1) res_agi.c.txt
|Description:||It would be nice for AGI scripts to be able to read config information as part of their operation, in order to do this they would need to know where to look and the config directory information isn't currently passed to them.|
I would suggest the easiest approach would be to set an environment variable prior to executing the AGI script, or alternatively it it could get passed over as part of the information exchange at the start of the AGI process.
|Comments:||By: Michael Jerris (mikej) 2005-08-01 12:34:00|
I would suggest that you post a bounty if you would like to see somone do this. We can leave requests open for a week to see if there are any takers.
By: Corey Frang (gnarf) 2005-08-05 15:49:20
Patch File submitted.
agi_astconfdir: /etc/asterisk (or whatever its set to)
To the agi envrionment setup.
By: Michael Jerris (mikej) 2005-08-28 10:08:32
gnarf- Can you please verify that you have a disclaimer on file with digium.
By: Clod Patry (junky) 2005-09-08 23:07:46
gnarf: i repeat, do you have a disclaimer on file?
We need it to continue.
By: Olle Johansson (oej) 2005-11-17 13:25:06.000-0600
No disclaimer confirmed. Please re-open when you have a disclaimer on file.
By: Joshua C. Colp (jcolp) 2005-11-17 15:41:11.000-0600
gnarf wants this back open...
By: Corey Frang (gnarf) 2005-11-17 15:43:10.000-0600
Yeah, Disclaimer on file, name Corey Frang
By: Tilghman Lesher (tilghman) 2006-01-05 13:01:57.000-0600
I agree that these would be best served as environmental variables.
By: Tilghman Lesher (tilghman) 2006-01-20 22:22:45.000-0600
Environmental variable patch committed to trunk.