After including a part of main config to included file -- I got a several errors like:


 0(1582) ERROR: <core> [cfg.y:3393]: cfg. parser: failed to find command is_method
 0(1582) : <core> [cfg.y:3532]: parse error in config file /opt/kamailio/etc/kamailio/debug.cfg, line 4, column 55: unknown command, missing loadmodule?

 0(1582) ERROR: <core> [cfg.y:3393]: cfg. parser: failed to find command xlog
 0(1582) : <core> [cfg.y:3532]: parse error in config file /opt/kamailio/etc/kamailio/debug.cfg, line 9, column 101: unknown command, missing loadmodule?

...

A part of included file  /opt/kamailio/etc/kamailio/debug.cfg:
----------------------------------

route[DEBUG]
{
    if (is_method("PUBLISH|SUBSCRIBE|REGISTER|OPTIONS"))
    {
        return;
    }

    xlog("L_INFO", "*** UNHANDLED *** SIP Request: method [$rm], status [$rs] from [$fu] to [$tu]\n");
}

route[DEBUG_FROM]
{
    xlog("L_NOTICE", "[$mi] Received SIP Message (method [$rm]) ($ml[$cl] bytes) from $Ri:$Rp ($si:$sp):\n$mb\n");
}


...


Do I have to duplicate the section of modules to that included file or I'm wrong ?



2012/5/9 Konstantin M. <evilzluk@gmail.com>
Hi Andrew,

I have missed that. Thank you very much!


2012/5/9 Andrew Pogrebennyk <apogrebennyk@sipwise.com>
Hello,
It is already there, see
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x

On 05/09/2012 06:04 PM, Konstantin M. wrote:
> Hi,
>
> I would like (and a many people here I believe) to have a functional of
> including a multiple config files like (foe example asterisk's
> #include "path/to/some/config.conf").
> Is it possible to implement a such feature ?
>
> Thanks!