Re: [OpenSIPS-Users] opensipsctl interaction

2010-12-03 Thread Anton Zagorskiy
Hello. > Hi Anton, > > So the reload is done at script level (from DB -> memcache) > > Do make the reload triggering independent of SIP traffic, use a > timer_route, so each 2 sec (for example) you can check the shvar and do > the reload. I've tried to do like this: route[check_parameters] {

Re: [OpenSIPS-Users] opensipsctl interaction

2010-11-25 Thread Bogdan-Andrei Iancu
Hi Anton, So the reload is done at script level (from DB -> memcache) Do make the reload triggering independent of SIP traffic, use a timer_route, so each 2 sec (for example) you can check the shvar and do the reload. Regards, Bogdan Anton Zagorskiy wrote: Hello. I'm loading them in the st

Re: [OpenSIPS-Users] opensipsctl interaction

2010-11-24 Thread Anton Zagorskiy
Hello. I'm loading them in the startup_route and store them using cache_store. Now I'm using the following scheme: 1. I defined a variable in the cfgutils module using modparam("cfgutils", "shvset", "blah") 2. In the main route block I check does blah's value equal 2 (for example). If it is, I rel

Re: [OpenSIPS-Users] opensipsctl interaction

2010-11-24 Thread Bogdan-Andrei Iancu
Hi Anton, how do you load these params at startup and where do you store them (what kind of variables)? Regards, Bogdan Anton Zagorskiy wrote: Hello. I have some parameters that are stored in a DB. I'm loading it once time when opensips starts. After when they are changed in the DB I want t

[OpenSIPS-Users] opensipsctl interaction

2010-11-15 Thread Anton Zagorskiy
Hello. I have some parameters that are stored in a DB. I'm loading it once time when opensips starts. After when they are changed in the DB I want to re-read it. How can I do this without restarting opensips? WBR, Anton Zagorskiy VoIP Developer, Oyster Telecom Phone.: +7 812 601-0666 Fax: +7