<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    just to let you know about some recent additions regarding the
    config file preprocessor, hopefully they will help you keep the
    config cleaner and easy to maintain.<br>
    <br>
    - you can use either #! or !! as the start marker of preprocessor
    directive (to make happy those complaining about not able to
    distinguish quickly from comments)<br>
    - subsdef was added some time ago to allow defining a token that
    will replace ID tokens as well as update inside string values. It
    has the same format as #!subst. For example:<code class="c syntaxhl"><span
        class="CodeRay"><span class="pp"><br>
          <br>
          #</span>!substdef <span class="s"><span class="dl">"</span><span
            class="k">!ABC!XYZ!g</span><span class="dl">"</span></span></span></code><br>
    <br>
    is pretty much same as:<br>
    <br>
    #!define ABC XYZ<br>
    #!subs "/ABC/XYZ/"<br>
    <br>
    - substdefs, like substdef byt the defined value will be added
    enclosed in double quotes:<br>
    <br>
    <code class="c syntaxhl"><span class="CodeRay"><span class="pp">#</span>!substdef
        <span class="s"><span class="dl">"</span><span class="k">!ABC!XYZ!g</span><span
            class="dl">"</span></span></span></code><br>
    <br>
    is pretty much same as:<br>
    <br>
    #!define ABC "XYZ"<br>
    #!subs "/ABC/XYZ/"<br>
    <br>
    - trydef - similar to define, but if the ID is defined already,
    ignore this time<br>
    - redef - similar to define, but if the ID is defined, redefine its
    value (note that define itself throws error if the ID is already
    defined)<br>
    <br>
    Regarding the inclusion of files, a new option is available,
    'import_file'. It is similar to 'include_file', but if the file is
    not found, it does not throw error. Bot include_file and import_file
    can be started as well with #! or !!. You can still use them without
    #! or !!, whatever you like more. <br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>