[OpenSIPS-Devel] environment and command line arguments in script

Victor Gamov vit at euro-comm.net
Thu Dec 17 07:35:37 CET 2009


Hi All

Is it possible to access to environment and/or command line arguments 
from script?

If no then it may be feature request. Fro example all OPENSIPS_* 
environmet variables may be accessible as $env[]. All arguments passes 
as, for example, -o "arg1=var1 arg2=val2" ay be accessible as 
$argv[arg1] and $argv[arg2]

It may be useful for example to pass IP-address of upstream provider to 
set $du or at other situations without using M4.

-- 
CU,
Victor Gamov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vit.vcf
Type: text/x-vcard
Size: 162 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/devel/attachments/20091217/5404dd52/attachment.vcf 


More information about the Devel mailing list