[Kamailio-Devel] initializing shared variables from database
Jan Janak
jan at ryngle.com
Mon Aug 25 10:39:01 CEST 2008
Juha,
take a look at this:
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/doc/cfg.txt
Maybe some parts of the config framework in SER would be usable for you.
The config framework itself is in sip_router/cfg, the database part is
in sip_router/modules/cfg_db.
Jan.
Juha Heinanen wrote:
> i would like to make kamailio more user friendly by getting rid of many
> things that are currently hard coded in config script. this could be
> accomplished if i could initialize script or shared memory variables
> from database when server is started and also dynamically when server is
> running.
>
> currently i don't know a way how to accomplish this. if such a thing
> does not exit yet, how about introducing a "server_init" route block
> that gets executed when server starts and that could be re-executed on
> the fly by a mi command? any better ideas?
>
> -- juha
>
> ps. while studying this, i noticed that shared memory variables
> ($shv(name)) are not mentioned on pseudovariables wiki page
>
> http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.4.x
>
> but only in CFGUTILS README.
>
> _______________________________________________
> Devel mailing list
> Devel at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
More information about the Devel
mailing list