After including a part of main config to included file -- I got a several errors like:<br><br><br> 0(1582) ERROR: <core> [cfg.y:3393]: cfg. parser: failed to find command is_method<br> 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?<br>
<br> 0(1582) ERROR: <core> [cfg.y:3393]: cfg. parser: failed to find command xlog<br> 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?<br>
<br>...<br><br>A part of included file /opt/kamailio/etc/kamailio/debug.cfg:<br>----------------------------------<br><br>route[DEBUG]<br>{<br> if (is_method("PUBLISH|SUBSCRIBE|REGISTER|OPTIONS"))<br> {<br>
return;<br> }<br><br> xlog("L_INFO", "*** UNHANDLED *** SIP Request: method [$rm], status [$rs] from [$fu] to [$tu]\n");<br>}<br><br>route[DEBUG_FROM]<br>{<br> xlog("L_NOTICE", "[$mi] Received SIP Message (method [$rm]) ($ml[$cl] bytes) from $Ri:$Rp ($si:$sp):\n$mb\n");<br>
}<br><br><br>...<br><br><br>Do I have to duplicate the section of modules to that included file or I'm wrong ?<br><br><br><br><div class="gmail_quote">2012/5/9 Konstantin M. <span dir="ltr"><<a href="mailto:evilzluk@gmail.com" target="_blank">evilzluk@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Andrew,<br><br>I have missed that. Thank you very much!<div class="HOEnZb"><div class="h5"><br><br>
<div class="gmail_quote">2012/5/9 Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
It is already there, see<br>
<a href="http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x" target="_blank">http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x</a><br>
<div><div><br>
On 05/09/2012 06:04 PM, Konstantin M. wrote:<br>
> Hi,<br>
><br>
> I would like (and a many people here I believe) to have a functional of<br>
> including a multiple config files like (foe example asterisk's<br>
> #include "path/to/some/config.conf").<br>
> Is it possible to implement a such feature ?<br>
><br>
> Thanks!<br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>