Click Here To Visit SIP Broker  

Go Back   Voxalot / SIP Broker Support Forums > Voxalot Forums > Voxalot Support

Voxalot Support Support for the Voxalot service.

 
 
Closed Thread
Thread Tools Display Modes
Unread 09-02-2008, 01:01 PM   #1
shkaff
Junior Member
 
shkaff's Avatar
 
Join Date: Mar 2008
Posts: 9
Thanks: 2
Thanked 1 Times in 1 Posts
shkaff is on a distinguished road
Question Static variable in Ruby?

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
shkaff is offline  
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  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
intermittent loud static noise glenneaux Voxalot Support 7 01-27-2008 11:17 AM
Static route in Freepbx kieranmullen e164.org Support 0 12-08-2007 01:00 AM


All times are GMT. The time now is 10:47 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.