[SR-Users] Config include

Konstantin M. evilzluk at gmail.com
Wed May 9 18:48:20 CEST 2012


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 at gmail.com>

> Hi Andrew,
>
> I have missed that. Thank you very much!
>
>
> 2012/5/9 Andrew Pogrebennyk <apogrebennyk at 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!
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120509/d30a4037/attachment.htm>


More information about the sr-users mailing list