[Asterisk-Users] Pre-Parse Extensions.conf?

Matthew Boehm mboehm at cytelcom.com
Sun May 1 17:00:58 MST 2005


> Matthew Boehm wrote:
>> Is there a way to pre-parse your extensions.conf so you can check for errors
>> before making it live?
> 
> No, there is not. And any pre-parser that existed today would be
> incomplete anyway, because most of the dialplan is not actually parsed
> until the applications are called (i.e. it's not parsed a load time, but
> at run time).
> 
> There have been discussions about improving the dialplan/application
> interfaces in a way that would allow for load-time parsing, but there
> hasn't been any movement in that direction yet. If that does happen,
> you'd at least be able to load your dialplan in a separate "testing"
> instance of Asterisk to see if it parses properly.

I think I said it wrong. I'm not looking to "pre-compile" the dialplan;

Looking for more of a syntax checker than anything. Something like that
isn't possible?

It happens when you call "extensions reload" so I figured the function(s)
that read and parse the extensions.conf could accept an extra variable to
where when the final function that actually loads it into memory is skipped.

Sorta like "extensions reload [check]" or "extensions check|reload"

-Matthew





More information about the asterisk-users mailing list