aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/dialplan.default.xml
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeswitch/dialplan.default.xml')
-rw-r--r--config/freeswitch/dialplan.default.xml13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/freeswitch/dialplan.default.xml b/config/freeswitch/dialplan.default.xml
index fae1ae2c..93ecff16 100644
--- a/config/freeswitch/dialplan.default.xml
+++ b/config/freeswitch/dialplan.default.xml
@@ -242,10 +242,19 @@
<!-- voicemail main extension -->
<extension name="vmain">
- <condition field="destination_number" expression="^vmain|\*4000|\*98$">
+ <condition field="destination_number" expression="^vmain|\*98$">
<action application="answer"/>
<action application="sleep" data="1000"/>
- <action application="voicemail" data="check default ${domain_name}"/>
+ <action application="voicemail" data="check default ${domain_name} ${sip_from_user}"/>
+ </condition>
+ </extension>
+
+ <!-- voicemail main2 extension -->
+ <extension name="vmain2">
+ <condition field="destination_number" expression="^vmain2|\*4000">
+ <action application="answer"/>
+ <action application="sleep" data="1000"/>
+ <action application="voicemail" data="check default ${domain_name}"/>
</condition>
</extension>