<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>the keywords that have already a special meaning for config
      language cannot be used in this kind of var names. You have to
      avoid using them, see: <br>
    </p>
      -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/cookbooks/devel/core#custom_global_parameters">https://www.kamailio.org/wiki/cookbooks/devel/core#custom_global_parameters</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 01.09.17 13:25, Karsten Horsmann
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFArqsb6v7w=mdezCs-68GdUEK5sbsNe1H44oXvHkY4aUeGdnA@mail.gmail.com">
      <div dir="ltr">Hello Sebastian,
        <div>hi List,</div>
        <div><br>
        </div>
        <div>the cfg_rpc module seems to be the right thing.</div>
        <div><br>
        </div>
        <div>But i am confused how to set an key.value in my
          kamailio.cfg. </div>
        <div><br>
        </div>
        <div>For example - this breaks my kamailio.cfg - it won't start:</div>
        <div>mylog.switch = "0" desc "logging"<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>mylog.foo = "0" desc "logging" is allowed and kamailio
          starts.</div>
        <div>
          <div>kamcmd> cfg.get mylog foo<br>
          </div>
          <div>0</div>
        </div>
        <div><br>
        </div>
        <div>Are there hidden, unallowed "keywords" that i didnt can
          use?</div>
        <div>I tried "mylog.enable", "mylog.on" and "mylog.switch" - all
          of them breaks the startup of kamailio:</div>
        <div><br>
        </div>
        <div>
          <div>Not starting : invalid configuration file!</div>
          <div>CRITICAL: <core> [core/cfg.y:3411]: yyerror_at():
            parse error in config file //etc/kamailio/kamailio.cfg, line
            182, column 7-12: syntax error</div>
          <div>CRITICAL: <core> [core/cfg.y:3411]: yyerror_at():
            parse error in config file //etc/kamailio/kamailio.cfg, line
            182, column 7-12:</div>
          <div>ERROR: bad config file (2 errors)</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">2017-08-31 15:59 GMT+02:00 Sebastian
            Damm <span dir="ltr"><<a href="mailto:damm@sipgate.de"
                target="_blank" moz-do-not-send="true">damm@sipgate.de</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
              <br>
              I think you are looking for cfg_rpc:<br>
              <a
                href="http://www.kamailio.net/docs/modules/5.0.x/modules/cfg_rpc.html"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.kamailio.net/docs/<wbr>modules/5.0.x/modules/cfg_rpc.<wbr>html</a><br>
              <br>
              HTH<br>
              Sebastian<br>
              <div>
                <div class="h5"><br>
                </div>
              </div>
            </blockquote>
          </div>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature" data-smartmail="gmail_signature">Kind
            Regards<br>
            *Karsten Horsmann*<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>