Voicemail: Add Delete option (7) from endpoint for message/greeting/name recording.
This commit is contained in:
parent
4004a698c4
commit
aafbce9583
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<!-- <action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>-->
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
<!-- similar to voicemail_record_file_check in vm/sounds.xml, but reorganized -->
|
||||||
<macro name="voicemail_record_file_options">
|
<macro name="voicemail_record_file_options">
|
||||||
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
|
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
|
||||||
<match>
|
<match>
|
||||||
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
<action function="play-file" data="voicemail/vm-listen_to_recording.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
|
@ -120,6 +120,18 @@
|
||||||
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
<action function="play-file" data="voicemail/vm-rerecord.wav"/>
|
||||||
<action function="play-file" data="voicemail/vm-press.wav"/>
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
<action function="say" data="$3" method="pronounced" type="name_spelled"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-delete_recording.wav"/>
|
||||||
|
<action function="play-file" data="voicemail/vm-press.wav"/>
|
||||||
|
<action function="say" data="$4" method="pronounced" type="name_spelled"/>
|
||||||
|
</match>
|
||||||
|
</input>
|
||||||
|
</macro>
|
||||||
|
|
||||||
|
<!-- name recording deleted -->
|
||||||
|
<macro name="voicemail_record_file_deleted">
|
||||||
|
<input>
|
||||||
|
<match>
|
||||||
|
<action function="play-file" data="voicemail/vm-deleted.wav"/>
|
||||||
</match>
|
</match>
|
||||||
</input>
|
</input>
|
||||||
</macro>
|
</macro>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2013 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2013-2024 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
-- end
|
-- end
|
||||||
--end
|
--end
|
||||||
|
|
||||||
--option to play, save, and re-record the greeting
|
--option to play, save, re-record or delete the greeting
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
timeouts = 0;
|
timeouts = 0;
|
||||||
record_menu("greeting", voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".tmp.wav", greeting_id, menu);
|
record_menu("greeting", voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".tmp.wav", greeting_id, menu);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2013-2015 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2013-2024 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
--to listen to the recording press 1, to save the recording press 2, to re-record press 3
|
--to listen to the recording press 1, to save the recording press 2, to re-record press 3
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
if (string.len(dtmf_digits) == 0) then
|
if (string.len(dtmf_digits) == 0) then
|
||||||
dtmf_digits = session:playAndGetDigits(0, 1, 1, 3000, "#", "phrase:voicemail_record_file_options:1:2:3", "", "\\d+");
|
dtmf_digits = session:playAndGetDigits(0, 1, 1, 3000, "#", "phrase:voicemail_record_file_options:1:2:3:7", "", "\\d+");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--process the dtmf
|
--process the dtmf
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
session:sleep('1000');
|
session:sleep('1000');
|
||||||
--listen to the recording
|
--listen to the recording
|
||||||
session:streamFile(tmp_file);
|
session:streamFile(tmp_file);
|
||||||
|
session:sleep('1000');
|
||||||
--session:streamFile(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
|
--session:streamFile(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
|
||||||
--record menu (1=listen, 2=save, 3=re-record)
|
--record menu (1=listen, 2=save, 3=re-record)
|
||||||
record_menu(type, tmp_file, greeting_id, menu);
|
record_menu(type, tmp_file, greeting_id, menu);
|
||||||
|
|
@ -166,7 +167,6 @@
|
||||||
if (menu == "tutorial") then
|
if (menu == "tutorial") then
|
||||||
tutorial("change_password")
|
tutorial("change_password")
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
elseif (dtmf_digits == "3") then
|
elseif (dtmf_digits == "3") then
|
||||||
--re-record the message
|
--re-record the message
|
||||||
|
|
@ -185,6 +185,51 @@
|
||||||
if (type == "name") then
|
if (type == "name") then
|
||||||
record_name(menu);
|
record_name(menu);
|
||||||
end
|
end
|
||||||
|
elseif (dtmf_digits == "7") then
|
||||||
|
--delete the message
|
||||||
|
dtmf_digits = '';
|
||||||
|
if (type == "name") then
|
||||||
|
if (file_exists(voicemail_dir.."/"..voicemail_id.."/recorded_name.wav")) then
|
||||||
|
os.remove(voicemail_dir.."/"..voicemail_id.."/recorded_name.wav");
|
||||||
|
end
|
||||||
|
session:sleep('500');
|
||||||
|
session:execute("playback", "phrase:voicemail_record_file_deleted");
|
||||||
|
session:sleep('500');
|
||||||
|
if (menu == "advanced") then
|
||||||
|
advanced();
|
||||||
|
elseif (menu == "tutorial") then
|
||||||
|
tutorial("change_password");
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if (type == "message") then
|
||||||
|
if (storage_path == "http_cache") then
|
||||||
|
if (file_exists(storage_path.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext)) then
|
||||||
|
os.remove(storage_path.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if (file_exists(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext)) then
|
||||||
|
os.remove(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
timeouts = 0;
|
||||||
|
message_length = 0;
|
||||||
|
session:setVariable("voicemail_message_seconds", 0);
|
||||||
|
session:sleep('500');
|
||||||
|
session:execute("playback", "phrase:voicemail_record_file_deleted");
|
||||||
|
session:sleep('500');
|
||||||
|
session:execute("playback", "phrase:voicemail_goodbye");
|
||||||
|
session:hangup();
|
||||||
|
end
|
||||||
|
if (type == 'greeting') then
|
||||||
|
if (file_exists(tmp_file)) then
|
||||||
|
os.remove(tmp_file);
|
||||||
|
end
|
||||||
|
timeouts = 0;
|
||||||
|
session:sleep('500');
|
||||||
|
session:execute("playback", "phrase:voicemail_record_file_deleted");
|
||||||
|
session:sleep('500');
|
||||||
|
advanced();
|
||||||
|
end
|
||||||
elseif (dtmf_digits == "*") then
|
elseif (dtmf_digits == "*") then
|
||||||
if (type == "greeting") then
|
if (type == "greeting") then
|
||||||
--remove temporary greeting file, if any
|
--remove temporary greeting file, if any
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2013-2023 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2013-2024 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
|
|
@ -58,8 +58,8 @@
|
||||||
function record_message()
|
function record_message()
|
||||||
|
|
||||||
--set the variables
|
--set the variables
|
||||||
local db = dbh or Database.new('system')
|
local db = dbh or Database.new('system');
|
||||||
local settings = Settings.new(db, domain_name, domain_uuid)
|
local settings = Settings.new(db, domain_name, domain_uuid);
|
||||||
local message_max_length = settings:get('voicemail', 'message_max_length', 'numeric') or 300;
|
local message_max_length = settings:get('voicemail', 'message_max_length', 'numeric') or 300;
|
||||||
local message_silence_threshold = settings:get('voicemail', 'message_silence_threshold', 'numeric') or 200;
|
local message_silence_threshold = settings:get('voicemail', 'message_silence_threshold', 'numeric') or 200;
|
||||||
local message_silence_seconds = settings:get('voicemail', 'message_silence_seconds', 'numeric') or 3;
|
local message_silence_seconds = settings:get('voicemail', 'message_silence_seconds', 'numeric') or 3;
|
||||||
|
|
@ -77,11 +77,14 @@
|
||||||
|
|
||||||
--check voicemail recording instructions setting
|
--check voicemail recording instructions setting
|
||||||
if (skip_instructions == nil) then
|
if (skip_instructions == nil) then
|
||||||
if (voicemail_recording_instructions == 'true') then
|
if (voicemail_recording_instructions == 'false') then
|
||||||
skip_instructions = 'false';
|
|
||||||
elseif (voicemail_recording_instructions == 'false') then
|
|
||||||
skip_instructions = 'true';
|
skip_instructions = 'true';
|
||||||
|
else
|
||||||
|
skip_instructions = 'false';
|
||||||
end
|
end
|
||||||
|
channel_variable_skip_instructions_exists = 'false';
|
||||||
|
else
|
||||||
|
channel_variable_skip_instructions_exists = 'true';
|
||||||
end
|
end
|
||||||
|
|
||||||
--record your message at the tone press any key or stop talking to end the recording
|
--record your message at the tone press any key or stop talking to end the recording
|
||||||
|
|
@ -277,20 +280,22 @@
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--check voicemail recording options setting
|
--check voicemail recording options setting (let channel variable take priority over options setting in database)
|
||||||
if (skip_instructions == nil) then
|
if (channel_variable_skip_instructions_exists == 'true') then
|
||||||
if (skip_options == nil) then
|
if (skip_options == nil) then
|
||||||
if (voicemail_recording_options == 'true') then
|
skip_options = skip_instructions;
|
||||||
skip_options = 'false';
|
|
||||||
elseif (voicemail_recording_options == 'false') then
|
|
||||||
skip_options = 'true';
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
skip_options = skip_instructions;
|
if (skip_options == nil) then
|
||||||
|
if (voicemail_recording_options == 'false') then
|
||||||
|
skip_options = 'true';
|
||||||
|
else
|
||||||
|
skip_options = 'false';
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--options press 1 to listen to the recording, press 2 to save the recording, press 3 to re-record
|
--option to play, save, re-record or delete the message
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
if (skip_options == "true") then
|
if (skip_options == "true") then
|
||||||
--save the message
|
--save the message
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2013 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2013-2024 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
--play the name
|
--play the name
|
||||||
--session:streamFile(voicemail_dir.."/"..voicemail_id.."/recorded_name.wav");
|
--session:streamFile(voicemail_dir.."/"..voicemail_id.."/recorded_name.wav");
|
||||||
|
|
||||||
--option to play, save, and re-record the name
|
--option to play, save, re-record or delete the name
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
timeouts = 0;
|
timeouts = 0;
|
||||||
record_menu("name", voicemail_dir.."/"..voicemail_id.."/recorded_name.wav",nil, menu);
|
record_menu("name", voicemail_dir.."/"..voicemail_id.."/recorded_name.wav",nil, menu);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue