I also think it would be a great addition to have a simple build-in text pre-processing. For more advance features people can continue to use m4 as desired.<div><br></div><div>Regards,</div><div>Ali</div><div><br><div><br>
<div class="gmail_quote">On Tue, Apr 10, 2012 at 12:05 PM, Nick Altmann <span dir="ltr"><<a href="mailto:nick.altmann@gmail.com">nick.altmann@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Against for M4:<br>
Configuration file may not be generated properly from m4 file(s)<br>
sometimes (because missed errors in m4), then server cannot start in<br>
some cases. It's when m4 in init.d script. When cfg-file built from m4<br>
manually, it's uncomfortable.<br>
<br>
In my opinion, opensips is the most powerful sip server, so it should<br>
have both options. And users should make decision which to better use<br>
in each case.<br>
<br>
--<br>
Nick<br>
<br>
<br>
2012/4/10 Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>:<br>
<div><div class="h5">> Hi,<br>
><br>
> I'm bringing here a discussion started on devel list, as I would like to get<br>
> more opinions on the matter.<br>
><br>
> The discussion started around the decision if makes sense to have MACRO<br>
> substitution (as text pre-processing) directly in OpenSIPS, considering that<br>
> right now M4 is heavenly used for this (as additional tool to opensips).<br>
><br>
> So, the debate was : have built-in text pre-processing versus using M4 as<br>
> text processor<br>
><br>
> Pros for M4:<br>
> - no effort to develop extra stuff - just install M4<br>
> - can do really complex things (more than only macros, ifdef, include,<br>
> etc)<br>
> - you can use it or not<br>
> - easy to integrate with start / stop scripts<br>
> Against for M4:<br>
> - need to be installed and integrated<br>
> - you may have a mismatch for the line number (if errors reported in<br>
> cfg) between the .m4 file and .cfg file<br>
><br>
> Pros for buit-in:<br>
> - you do no need to install M4 at all (everything comes packet)<br>
> - you may get accurate reporting on errors (for line in cfg)<br>
> Against for M4:<br>
> - more devel work to re-implement macros, ifdef, etc<br>
><br>
><br>
> Now, I would like to get your opinions on that (you as opensips users), to<br>
> see if we stick to using M4 for cfg pre-processing or there is a real need<br>
> to have this functionality as built-in.<br>
><br>
> Thanks and regards,<br>
> Bogdan<br>
><br>
> --<br>
> Bogdan-Andrei Iancu<br>
> OpenSIPS Founder and Developer<br>
> <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>