View Single Post
Unread 09-03-2008, 03:47 AM   #2
emoci
 
Join Date: Jul 2007
Location: Toronto, Canada
Posts: 1,422
Thanks: 123
Thanked 369 Times in 282 Posts
emoci is a name known to allemoci is a name known to allemoci is a name known to allemoci is a name known to all
Default

Quote:
Originally Posted by shkaff View Post
Hi there

Is there any approach to store some info in a static variable?
I mean a kind of variable, which keeps their value durring different calls, i.e. doesn't lost the value after execution of the ruby script.

It might be useful to arrange counters for statistic, etc
Counters might be used for call management, for example

Any idea would be appreciated,
Alexey
You're asking this in the wrong forum....

You want the MySipSwitch Forums....

In any case as far as MSS is concerned:

1. Any hardcoded value (eg. number = 14162223333) will maintain that value with each run of the cycle, because it will be reassigned everytime

2. Any value assigned during the cycle will usually be lost (eg. cid = req.Header.From.FromURI.User )

Go to MySipSwitch https://www.mysipswitch.com/forum/index.php clarify what you're trying to achieve, and I'm sure someone will help....
emoci is offline