[asterisk-users] Preflight check / lint

Atis Lezdins atis at iq-labs.net
Wed Oct 17 14:41:17 CDT 2007


On Wednesday 17 October 2007 22:23:23 Andy Davidson wrote:
> Hi,
>
> Am writing scripts to manage configuration management and Asterisk.
>
> I would like to be able to point the asterisk binary at config
> directory with an asterisk.conf in it, and for asterisk to run a pre-
> flight check.  A bit like a pint check in php, 'apachectl configtest'
> and lots of other tools.
>
> asterisk will then exit with 0 on a safe config, and 1 on a bad
> config.  I can reject bad config and stop my config management script
> in the event of an error.
>
> Looking at the man page, it looks like this feature is missing.
>
> Anyone got another tool which can do this instead ?

I know only of aelparse for extensions.ael (utils dir if i'm not mistaken)

For the rest - you can get trough with simple regexps (config file formats are 
nearly identical). extensions.conf is generally the same format as other 
config files, however you should check syntax of applications, and priority 
ordering (if you are using it at all).

Regards,
Atis


-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835



More information about the asterisk-users mailing list