[asterisk-users] Reload dialplan from bash in strict mode
vinzens at sipgate.de
Mon Apr 27 08:23:33 CDT 2020
I hope someone can give me a hint.
We try to reload the asterisk dialplan config using ansible command module.
Using this we just trigger asterisk -rx "dialplan reload"
Now we want ansibe to fail if there is something wrong in the dialplan.
If we put a bad config in extensions.conf dialplan reload prints some
warning in Asterisk console but the command "asterisk -rx" is
successful and prints out "Dialplan reloaded".
So Asterisk try to merge the bad config with the actual one and succeeds
with it. If there would be a strict mode which would fail if there is a bad
line in the config would help us to parse the output.
Unfortunately we haven't found anything in documentation.
If you have any Idea how to do this or any other way to ensure the dialplan
reload is successful and there are no error in config would be much
our bad config looks something like this:
> exten = _X.1,Noop(foo)
> same = n,SomethingElse()
after reloading it prints out "Line 2 contains no '='" and the reload is
successful, but it shouldn't.
sipgate GmbH - Gladbacher Str. 74 - 40219 Düsseldorf
HRB Düsseldorf 39841 - Geschäftsführer: Thilo Salmon, Tim Mois
Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391
www.sipgate.de - www.sipgate.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users