[OpenSIPS-Users] RFC: text pre-processing in OpenSIPS cfg file

Nick Altmann nick.altmann at gmail.com
Wed Apr 11 20:04:36 CEST 2012


I use now m4 on my opensips servers and I used internal macro
processing of openser before.
I can say that I prefer to have no external tools.
I need only substitutes and includes. No defines and other features.
In my case it's better to use simple internal macro processor than external.

Why not to have both possibilities?

--
Nick


2012/4/11 Pauba, Kevin L <KLPauba at west.com>:
> The GNU M4 Manual gives lots of simple examples.  Reading the two (very short) sections http://www.gnu.org/software/m4/manual/m4.html#Ifdef and http://www.gnu.org/software/m4/manual/m4.html#Include, you can do something like this:
>
> define(`foo',1)
> ifdef(`foo',include(`foo.m4'))
>
> But it's really hard to sway the "don't like" argument -- I don't like beef liver and nothing you say will change my mind.
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Brett Nemeroff
> Sent: Wednesday, April 11, 2012 10:54 AM
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] RFC: text pre-processing in OpenSIPS cfg file
>
> On Wed, Apr 11, 2012 at 10:41 AM, Bogdan-Andrei Iancu
> <bogdan at opensips.org> wrote:
>> Well, it is not only about personal preferences and how is nicer, etc...you
>> should consider also the required work to do - at the end somebody has to
>> implement this. And my questions is: considering that the development
>> resources are limited, does it make sense to invest them in just creating an
>> alternative to something already existing ?
>>
>
> I honestly didn't like using M4. And it's not an opensips thing, it's
> an M4 thing. I just don't like M4. I'm sure it can be attributed to me
> not really knowing it, but I found that I couldn't really do what I
> wanted with it without some sort of hacking. I wanted to do
> conditional includes and such. Maybe all I needed was some good
> examples.
>
> Is there anyway to build m4 into the opensips pre-processor? so
> opensips can just run the m4 file?
> -Brett
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list