Thanks Kevin!

I've started using m4 as Iñaki showed me yesterday, basically for setting 
parameters on different systems. This I've already implemented and using 
"happily ever after". :-)

Is there a better way of using M4 for bigger pieces of code, than the example 
below:
divert(-1)
define(`ROUTE1',
`route[1] {
     xlog("L_NOTICE", "We are now in route1\n");
}
')
divert(0)dnl


Thanks,
Matti Zemack
Stockholm
Sweden

-----Original Message-----
From: Pauba, Kevin L [mailto:[email protected]] 
Sent: den 22 januari 2009 18:08
Not only the cleverest, I think it's the best!

I maintain the configuration for 12 SIP Proxies (using OpenSER) and I don't 
need 12 different configuration files.  A number of macros transform one m4 
file into one of 12 different configuration files with the stroke of a short 
command line.

I'd be happy to help provide some help to get you started ...

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Bogdan-Andrei Iancu
Sent: Thursday, January 22, 2009 9:15 AM
Hi Matti,

no, there is no other solution - using M4 is the cleverest solution ;)

Regards,
Bogdan

Matti Zemack wrote:
>
> Hi again,
>
> First of all, Thanks for all help I received previously today. 
> Fantastic and very quick response.
>
> So here is my second newbie-question: Is there any way to include 
> files at startup? It would be nice to split a 2000+ lines config file 
> into easier to handle parts.
>
> (After this morning tip from Iñaki, I suppose I could use m4 for this 
> errand... Any other clever suggestions?)
>
> Best Regards,
>
> Matti Zemack
>
> Stockholm
>
> Sweden


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to