This commit is contained in:
simplecoder732 2025-03-30 19:10:44 +11:00 committed by GitHub
commit 66625745ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 2 deletions

View File

@ -123,6 +123,25 @@
</input> </input>
</macro> </macro>
<macro name="voicemail_deleted_message_count">
<input pattern="^(1):(.*)$" break_on_match="true">
<match>
<action function="play-file" data="voicemail/vm-you_have.wav"/>
<action function="say" data="$1" method="pronounced" type="items"/>
<action function="play-file" data="voicemail/vm-$2.wav"/>
<action function="play-file" data="voicemail/vm-message.wav"/>
</match>
</input>
<input pattern="^(\d+):(.*)$">
<match>
<action function="play-file" data="voicemail/vm-you_have.wav"/>
<action function="say" data="$1" method="pronounced" type="items"/>
<action function="play-file" data="voicemail/vm-$2.wav"/>
<action function="play-file" data="voicemail/vm-messages.wav"/>
</match>
</input>
</macro>
<macro name="voicemail_menu"> <macro name="voicemail_menu">
<input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$"> <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
<match> <match>

View File

@ -79,13 +79,13 @@
if (debug["info"]) then if (debug["info"]) then
freeswitch.consoleLog("notice", "[voicemail][deleted] message: " .. uuid .. "\n"); freeswitch.consoleLog("notice", "[voicemail][deleted] message: " .. uuid .. "\n");
end end
message_number = message_number + 1;
end end
--clear the variable --clear the variable
db_voicemail_uuid = ''; db_voicemail_uuid = '';
messages_to_delete = {}; messages_to_delete = {};
--flush dtmf digits from the input buffer --flush dtmf digits from the input buffer
session:flushDigits(); session:flushDigits();