Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Become aware of eventual syntax changes in Asterisk versions #46

Open
JCCyC opened this issue Dec 30, 2020 · 0 comments
Open

Become aware of eventual syntax changes in Asterisk versions #46

JCCyC opened this issue Dec 30, 2020 · 0 comments

Comments

@JCCyC
Copy link

JCCyC commented Dec 30, 2020

Imagine, if you will, that Asterisk 20 introduces a new, optional syntax to extensions.conf. Now imagine that, by mistake, I put a new-syntax extensions.conf in my Asterisk 18 installation. It is invalid, but asterisklint will flag it as valid. My suggestion is to take an optional argument, saying what Asterisk version we're checking against. This could apply to other subcommands too, not only dialplan-check.

asterisklint dialplan-check -a 18 ~/mystagindir/extensions.conf

Or

asterisklint -a 18 dialplan-check ~/mystagindir/extensions.conf

Could also be an environment variable:

ALINT_ASTVER=18 asterisklint dialplan-check ~/mystagindir/extensions.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant