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.
Regards, Ali On Tue, Apr 10, 2012 at 12:05 PM, Nick Altmann <[email protected]>wrote: > 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 <[email protected]>: > > 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 > > [email protected] > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
