[ opensips-Patches-2105366 ] a patch that reads an environment variable to an avp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ opensips-Patches-2105366 ] a patch that reads an environment variable to an avp

SourceForge.net
Patches item #2105366, was opened at 2008-09-11 12:56
Message generated for change (Comment added) made by dror_wald
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2105366&group_id=232389

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).


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

>Comment By: Dror Wald (dror_wald)
Date: 2008-11-06 17:15

Message:
File Added: README.diff

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

Comment By: Dror Wald (dror_wald)
Date: 2008-11-06 17:14

Message:
File Added: exec_mod.c.diff

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

Comment By: Dror Wald (dror_wald)
Date: 2008-11-06 17:11

Message:
File Added: exec.c.diff

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

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2008-11-03 15:56

Message:
Hi there,

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).



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

Comment By: Dror Wald (dror_wald)
Date: 2008-09-11 12:59

Message:
File Added: exec_mod.c.diff

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

Comment By: Dror Wald (dror_wald)
Date: 2008-09-11 12:57

Message:
File Added: exec.c.diff

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2105366&group_id=232389

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel