summaryrefslogtreecommitdiffstats
path: root/template-processdialplanxml-xml.lsp
blob: 547d8b4b81be51d70f1af70a47689c7172197551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 %>