xmllint --dtdvalid freeswitch_dialplan.dtd /usr/local/freeswitch/conf/default_context.xml >>/dev/null

To validate your dialplan.

Thanks [intra]lanman.

/b



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6132 d0543943-73ff-0310-b7d9-9358b9ac24b2
v1.2.stable
Brian West 15 years ago
parent becb40a2a2
commit c58f3deb3d
  1. 31
      dtd/freeswitch_dialplan.dtd

@ -0,0 +1,31 @@
<!ELEMENT include (context*)>
<!ELEMENT context (extension*)>
<!ATTLIST context
name CDATA #REQUIRED
>
<!ELEMENT extension (condition*)>
<!ATTLIST extension
name CDATA #REQUIRED
continue CDATA #IMPLIED
>
<!ELEMENT condition (action*, anti-action*)>
<!ATTLIST condition
field CDATA #IMPLIED
expression CDATA #IMPLIED
continue CDATA #IMPLIED
>
<!ELEMENT action EMPTY>
<!ATTLIST action
application CDATA #REQUIRED
data CDATA #IMPLIED
>
<!ELEMENT anti-action EMPTY>
<!ATTLIST anti-action
application CDATA #REQUIRED
data CDATA #IMPLIED
>
Loading…
Cancel
Save