Brett,
You're absolutely right. 10.000 lines of config sounds unreadable. My code is around 1000-2000 lines per config. And then there are a few different configs for different systems. All in all around 10.000 lines. In the future I'll try to boil these down to ONE config (fits all). My code is working quite fine (good enough) actually. Sure I could do some shortcuts here and there. Basically I was handed a few systems using SER_0.9.0 and SER_1.0. They wanted to move on up into OpenSIPS_1.4, and I forced them to 1.5. And it has been a good few months learning about OpenSIPS. Before I've only handled Asterisk. OpenSIPS was a happy surprise in my life. Sure, I've been moaning about the syntax sometimes. All the different types of variables. No way of debugging except tons and tons of xlog's. Others example configs... But now, I quite like and enjoy it! Thanks to all who made (and documented) OpenSIPS. Hopefully this summer I will have some free time when I could write all my notes "New to OpenSIPS" into actual readable text, with examples. So that other newbies have something to work from. Thanks again, Matti Zemack, Stockholm, Sweden From: Brett Nemeroff [mailto:[email protected]] Sent: den 17 juni 2009 09:35 To: Matti Zemack Cc: [email protected] Subject: Re: [OpenSIPS-Users] Sily question: Auto-Indentation I said this in an earlier message and I think it's worth saying again.. If your code REALLY IS 10,000 lines long. You are probably doing something wrong or at least, the hard way.. Maybe we can help you out there. -Brett On Wed, Jun 17, 2009 at 2:18 AM, Matti Zemack <[email protected]> wrote: Hi, Thanks. Will find the vim syntax file at vimscripts website. And, yes, my wife also recognizes config files by now. But you're right she's not a tool. All my changes to the config files have been great! (thanks to all help from you list people.) It's just that my boss wants the code to be a bit tidier... /Matti 2009/6/16 I?aki Baz Castillo <[email protected]>: > What do you mean with a "tool that recognizes the configs"? > There is noly one: OpenSIPS itself :) > > BTW, when I edit my config files, I use "Bash" syntax. It works great > (except when using "switch/case" stament). >I sometimes just enable autoindent and smartindent from C syntax in >vim - that works. There's also openser syntax file available on >vimscripts website. >And, how do you know if changes in the config file are good or not? _______________________________________________ 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
