Hi All,

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
appreciated.

our bad config looks something like this:

> [default]
> brokenlinehere
> 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.

many Thanks!
BR
Jöran

-- 

Jöran Vinzens

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
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to