Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Dror Wald (dror_wald)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: a patch that reads an environment variable to an avp

Initial Comment:
I've made a patch in exec module (based on exec_avp code) that enables to read an environment variable and put its value inside an avp.

For example,

exec_getenv("HOSTNAME",$avp(s:hostname));

Gets the value of environment variable HOSTNAME and put it in $avp(s:hostname).

Thanks for the patch - the functionality looks good and I'm ready to
commit it, but you need to regenerate the patch with the following
changes:
1) make a unified diff
2) include the documentation for the new function.
(modules/exec/doc/exec_admin.xml).