[OpenSIPS-Users] RFC: text pre-processing in OpenSIPS cfg file
Nick Altmann
nick.altmann at gmail.com
Tue Apr 10 18:05:56 CEST 2012
Against for M4:
Configuration file may not be generated properly from m4 file(s)
sometimes (because missed errors in m4), then server cannot start in
some cases. It's when m4 in init.d script. When cfg-file built from m4
manually, it's uncomfortable.
In my opinion, opensips is the most powerful sip server, so it should
have both options. And users should make decision which to better use
in each case.
--
Nick
2012/4/10 Bogdan-Andrei Iancu <bogdan at opensips.org>:
> Hi,
>
> I'm bringing here a discussion started on devel list, as I would like to get
> more opinions on the matter.
>
> The discussion started around the decision if makes sense to have MACRO
> substitution (as text pre-processing) directly in OpenSIPS, considering that
> right now M4 is heavenly used for this (as additional tool to opensips).
>
> So, the debate was : have built-in text pre-processing versus using M4 as
> text processor
>
> Pros for M4:
> - no effort to develop extra stuff - just install M4
> - can do really complex things (more than only macros, ifdef, include,
> etc)
> - you can use it or not
> - easy to integrate with start / stop scripts
> Against for M4:
> - need to be installed and integrated
> - you may have a mismatch for the line number (if errors reported in
> cfg) between the .m4 file and .cfg file
>
> Pros for buit-in:
> - you do no need to install M4 at all (everything comes packet)
> - you may get accurate reporting on errors (for line in cfg)
> Against for M4:
> - more devel work to re-implement macros, ifdef, etc
>
>
> Now, I would like to get your opinions on that (you as opensips users), to
> see if we stick to using M4 for cfg pre-processing or there is a real need
> to have this functionality as built-in.
>
> Thanks and regards,
> Bogdan
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list