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
This commit is contained in:
Brian West 2007-11-01 14:59:32 +00:00
parent becb40a2a2
commit c58f3deb3d
1 changed files with 31 additions and 0 deletions

View File

@ -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
>