diff options
Diffstat (limited to 'template-processdialplanxml-xml.lsp')
-rw-r--r-- | template-processdialplanxml-xml.lsp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/template-processdialplanxml-xml.lsp b/template-processdialplanxml-xml.lsp new file mode 100644 index 0000000..547d8b4 --- /dev/null +++ b/template-processdialplanxml-xml.lsp @@ -0,0 +1,18 @@ +<% local viewtable, viewlibrary, pageinfo, session = ... %> +<% if viewtable and not viewtable.errtxt then %> +Content-Type: Content Type: text/xml + +<document type="freeswitch/xml"> + <section name="dialplan"> + <context name="default"> + <extension name="Voicemail"> + <condition expression="(.*)" field="destination_number"> + <action application="answer" /> + <action application="sleep" data="1000" /> + <action application="voicemail" data="default <%= viewtable.value.domain.value %> $1" /> + </condition> + </extension> + </context> + </section> +</document> +<% end %> |