global variable

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

global variable

Dani Popa
hi,

there is any way to have a global variable over dialogs and scrips, not depending by dialogs ?

i need to check if a subscriber had calls in last amount of time(1 second, let's say) then don't engage it in next call. Working with databases, looks is not good enough because of very hight call rate. (updating, inserting into databse is show then call rate)


Thanks,
--
Dani Popa

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: global variable

Liviu Chircu

Hi,

There is such a variable, $shv, exported by the cfgutils module [1]. However, for your use case, you might be better off using the local cache (cachedb_local module).

Regards,

[1]: http://www.opensips.org/html/docs/modules/2.4.x/cfgutils.html#idp5791440

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 15.09.2017 10:47, Dani Popa wrote:
hi,

there is any way to have a global variable over dialogs and scrips, not depending by dialogs ?

i need to check if a subscriber had calls in last amount of time(1 second, let's say) then don't engage it in next call. Working with databases, looks is not good enough because of very hight call rate. (updating, inserting into databse is show then call rate)


Thanks,
--
Dani Popa


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users