[OpenSER-Users] Global variables in scripts.

Robert Dyck rob.dyck at telus.net
Mon Apr 28 18:10:19 CEST 2008


On Monday 28 April 2008, Klaus Darilion wrote:
> Robert Dyck schrieb:
> > I vote for a global variable that is visible any where in the script and
> > that can be initialized at startup without using a preprocessor.
>
> I fI got it right this already is available by using $shv(..) (and you
> even can modify it via MI commands)
Sorry, I cannot find it documented. What is the syntax? I tried it on 1.3.1.

I tried $shv(test)=123 and $shv(test)="123" and got
 "Apr 28 08:52:34 [14769] CRITICAL:core:yyerror: parse error in config file, 
line 20, column 7-17: syntax error
Apr 28 08:52:34 [14769] CRITICAL:core:yyerror: parse error in config file, 
line 20, column 7-17:
Apr 28 08:52:34 [14769] ERROR:core:main: bad config file (2 errors)"




More information about the sr-users mailing list