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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Dec 17 15:02:48 CET 2009


Hi Victor,

I guess this is simply doable by adding some new variables to access the 
command line args and the env vars.....maybe in the cfgutils module.

Regards,
Bogdan

Victor Gamov wrote:
> 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.
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Devel mailing list