<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">+1 on <span style="font-size: small;">Alekzander  statement</span><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF301165" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> sr-dev [sr-dev-bounces@lists.sip-router.org] on behalf of Alekzander Spiridonov [alekz@li.ru]<br>
<b>Sent:</b> Thursday, March 19, 2015 3:33 AM<br>
<b>To:</b> Kamailio (SER) - Development Mailing List<br>
<b>Subject:</b> Re: [sr-dev] Simplify the Configuration<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>=D I believe you've learned too many applications. <br>
<br>
</div>
Current syntax looks pretty fine for me and (as you've already mentioned) any separation could be achieved with include's.<br>
<br>
</div>
Anyway I'm strongly against idea of any compile-time paths.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-03-19 10:13 GMT+03:00 Brian LaVallee <span dir="ltr">
<<a href="mailto:brian.lavallee@invite-comm.jp" target="_blank">brian.lavallee@invite-comm.jp</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div bgcolor="#FFFFFF">Hi,<br>
<br>
I would like to propose [and manage] an effort with the primary Kamailio developers to simplify the configuration syntax.  I'm not a developer, but used lot's of different applications and I'm familiar with various configuration formats.<br>
<br>
Based on what I've seen, there are five (5) types of configuration directives used with Kamailio. 
<br>
<br>
- C-Style Control Directives<br>
- Apache-Like Name/Value Pairs<br>
- Normal Name/Value Pairs<br>
- Modify Parameter Procedures<br>
- Routing Logic Scripting<br>
<br>
I do understand some of this may be the result of merging multiple projects.  But this mixture of syntax slows adoption, drastically increases the learning curve for the user base.  By implementing a consistent standard to the configuration syntax, it will
 make using the application less complicated.<br>
<br>
--<br>
<br>
My first recommendation, would be to separate the routing logic from the primary configuration file.  This can easily be done with import/include.  However, I feel that a fixed path should be added during compile. 
<br>
<br>
‘<samp>--with-routing=/etc/kamailio/routing/</samp>’<br>
<br>
Then it would possible to modify the configuration parser to read all the files in that directory.  Allowing the separation of the route logic into individual files.  relay.cfg, reqinit.cfg, ... xmlrpc.cfg, tovoicemail.cfg, etc...  Making individual logic changes
 a bit easier.<br>
<br>
To reach a fixed path solution, and keep some backwards compatibility, the first step should be... Use import/include and move all the route logic into /etc/kamailio/routing/basic.cfg<br>
<br>
We can discuss on the mailing list or feel free to contact me directly.<br>
<br>
<br>
Sincerely,<br>
Brian LaVallee </div>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature">
<div>
<div>Best regards,<br>
Alekzander Spiridonov</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>