[Home]

Summary:ASTERISK-13956: [patch] Add environment variables to #exec for config files, add new AST_BUILD dialplan function
Reporter:jmls (jmls)Labels:
Date Opened:2009-04-14 15:35:55Date Closed:2010-05-28 17:50:07
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20090916__issue14899.diff.txt
( 1) patch.txt
Description:This patch adds the following functionality

1) Makes several environment variables available to #exec config files

AST_SYSTEMNAME
AST_BUILD_HOST
AST_BUILD_DATE
AST_BUILD_KERNEL
AST_BUILD_MACHINE
AST_BUILD_OS
AST_BUILD_USER
AST_VERSION

2) adds a new dialplan function AST_BUILD() to retrieve the above variables in the dialplan
Comments:By: Leif Madsen (lmadsen) 2009-06-16 15:36:27

Assigned this to 1.6.3.0 in the hopes we can maybe get this in for 1.6.3. Thanks!

By: Tilghman Lesher (tilghman) 2009-09-16 19:16:27

Upon review, my suggestion is to make those variables available to all child processes and to protect them from users overwriting them in the parent process.

By: jmls (jmls) 2010-02-01 07:05:58.000-0600

erm, was I supposed to do this ? :)

By: Leif Madsen (lmadsen) 2010-02-01 13:03:59.000-0600

I'll go ahead and say.... yes?! :)

By: Leif Madsen (lmadsen) 2010-03-23 10:43:04

Hey! Just pinging this issue again :)

By: Digium Subversion (svnbot) 2010-05-28 17:50:06

Repository: asterisk
Revision: 266385

U   trunk/UPGRADE.txt
U   trunk/funcs/func_env.c
U   trunk/main/asterisk.c

------------------------------------------------------------------------
r266385 | tilghman | 2010-05-28 17:50:05 -0500 (Fri, 28 May 2010) | 8 lines

Setup environment variables for the benefit of child processes and disallow changing them.

(closes issue ASTERISK-13956)
Reported by: jmls
Patches:
      20090916__issue14899.diff.txt uploaded by tilghman (license 14)
Tested by: jmls

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=266385