[SR-Users] Change on the fly logging verbosity - Kamailio v5.0.2

Karsten Horsmann khorsmann at gmail.com
Fri Sep 1 13:25:26 CEST 2017


Hello Sebastian,
hi List,

the cfg_rpc module seems to be the right thing.

But i am confused how to set an key.value in my kamailio.cfg.

For example - this breaks my kamailio.cfg - it won't start:
mylog.switch = "0" desc "logging"


mylog.foo = "0" desc "logging" is allowed and kamailio starts.
kamcmd> cfg.get mylog foo
0

Are there hidden, unallowed "keywords" that i didnt can use?
I tried "mylog.enable", "mylog.on" and "mylog.switch" - all of them breaks
the startup of kamailio:

Not starting : invalid configuration file!
CRITICAL: <core> [core/cfg.y:3411]: yyerror_at(): parse error in config
file //etc/kamailio/kamailio.cfg, line 182, column 7-12: syntax error
CRITICAL: <core> [core/cfg.y:3411]: yyerror_at(): parse error in config
file //etc/kamailio/kamailio.cfg, line 182, column 7-12:
ERROR: bad config file (2 errors)



2017-08-31 15:59 GMT+02:00 Sebastian Damm <damm at sipgate.de>:

> Hi,
>
> I think you are looking for cfg_rpc:
> http://www.kamailio.net/docs/modules/5.0.x/modules/cfg_rpc.html
>
> HTH
> Sebastian
>
>

-- 
Kind Regards
*Karsten Horsmann*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170901/1f87a9cf/attachment.html>


More information about the sr-users mailing list