[OpenSIPS-Users] opensipsctl interaction
Anton Zagorskiy
a.zagorskiy at oyster-telecom.ru
Wed Nov 24 17:08:50 CET 2010
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 reload data from DB.
3. When I need to reload data I use a command 'opensipsctl fifo shv_set blah
int 2'.
The main inconvenience is that I need to call (or to send any valid SIP
request) to someone to reload data.
>
> 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 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 812 601-0593
> > a.zagorskiy at oyster-telecom.ru
> > www.oyster-telecom.ru
> >
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Bootcamp
> 15 - 19 November 2010, Edison, New Jersey, USA
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list