2012-01-17 22:33:49 +00:00
<include >
<macros name= "voicemail_ivr" >
2011-12-24 01:01:33 +00:00
<macro name= "press_key" >
<input pattern= "^(.*):(.*)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "$2" />
<action function= "play-file" data= "voicemail/vm-press.wav" />
<action function= "say" data= "$1" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "plurial_msg" >
<input pattern= "^[01]:(.*):(.*)$" break_on_match= "true" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "$1" />
2011-12-24 01:01:33 +00:00
</match>
</input>
<input pattern= "^.*:(.*):(.*)$" break_on_match= "true" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "$2" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "enter_id" >
<input pattern= "(.+)" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-enter_id.wav" />
<action function= "say" data= "$1" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</match>
<nomatch >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-enter_id.wav" />
<action function= "say" data= "${VM-Key-Terminator}" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</nomatch>
2012-01-17 22:33:49 +00:00
</input>
2011-12-24 01:01:33 +00:00
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "enter_pass" >
<input pattern= "(.+)" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-enter_pass.wav" />
<action function= "say" data= "$1" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</match>
<nomatch >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-enter_pass.wav" />
<action function= "say" data= "${VM-Key-Terminator}" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</nomatch>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "fail_auth" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-fail_auth.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "hello" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<!-- <action function="play - file" data="voicemail/vm - hello.wav"/> -->
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "goodbye" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-goodbye.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "abort" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-abort.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "message_count" >
<input field= "${VM-Total-New-Urgent-Messages}" pattern= "^(0)$" >
<nomatch >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-you_have.wav" />
<action function= "say" data= "${VM-Total-New-Urgent-Messages}" method= "pronounced" type= "items" />
<action function= "play-file" data= "voicemail/vm-urgent-new.wav" />
<action function= "phrase" phrase= "plurial_msg@voicemail_ivr" data= "${VM-Total-New-Urgent-Messages}:voicemail/vm-message.wav:voicemail/vm-messages.wav" />
2011-12-24 01:01:33 +00:00
</nomatch>
</input>
<input field= "${VM-Total-New-Messages}" pattern= "^(\d+)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-you_have.wav" />
<action function= "say" data= "${VM-Total-New-Messages}" method= "pronounced" type= "items" />
<action function= "play-file" data= "voicemail/vm-new.wav" />
<action function= "phrase" phrase= "plurial_msg@voicemail_ivr" data= "${VM-Total-New-Messages}:voicemail/vm-message.wav:voicemail/vm-messages.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
<input field= "${VM-Total-Saved-Messages}" pattern= "^(0)$" >
<nomatch >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "currency/and.wav" />
<action function= "say" data= "${VM-Total-Saved-Messages}" method= "pronounced" type= "items" />
<action function= "play-file" data= "voicemail/vm-saved.wav" />
<action function= "phrase" phrase= "plurial_msg@voicemail_ivr" data= "${VM-Total-Saved-Messages}:voicemail/vm-message.wav:voicemail/vm-messages.wav" />
2011-12-24 01:01:33 +00:00
</nomatch>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "menu" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Play-New-Messages}:voicemail/vm-listen_new.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Play-Saved-Messages}:voicemail/vm-listen_saved.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Config-Menu}:voicemail/vm-advanced.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Terminator}:voicemail/vm-to_exit.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "config_menu" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Record-Greeting}:voicemail/vm-to_record_greeting.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Choose-Greeting}:voicemail/vm-choose_greeting.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Record-Name}:voicemail/vm-record_name2.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Change-Password}:voicemail/vm-change_password.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Menu}:voicemail/vm-main_menu.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "record_name" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-record_name1.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
<macro name= "forward_ask_prepend" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Prepend}:voicemail/vm-forward_add_intro.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Forward}:voicemail/vm-send_message_now.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
<macro name= "forward_ask_extension" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-forward_enter_ext.wav" />
<!-- <action function="phrase" phrase="play - file" data="voicemail/vm - followed_by.wav"/> -->
<!-- <action function="say" data="${VM - Key - Terminate}" method="pronounced" type="name_spelled"/> -->
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "record_file_check" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Listen-File}:voicemail/vm-listen_to_recording.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Save-File}:voicemail/vm-save_recording.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Record-File}:voicemail/vm-rerecord.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
<macro name= "record_urgent_check" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Urgent}:voicemail/vm-mark-urgent.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Terminator}:voicemail/vm-continue.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "forward_prepend" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Prepend}:voicemail/vm-forward_add_intro.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Forward}:voicemail/vm-send_message_now.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "forward_message_enter_extension" >
<input pattern= "^([0-9#*])$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-forward_enter_ext.wav" />
<action function= "play-file" data= "voicemail/vm-followed_by.wav" />
<action function= "say" data= "$1" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "invalid_extension" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-that_was_an_invalid_ext.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "listen_file_check" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<!-- <action function="phrase" phrase="press_key@voicemail_ivr" data="${VM - Key - Main - Next - Msg}:voicemail/vm - for_next_msg.wav"/> --> <!-- Not existant in callie recordings -->
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Listen-File}:voicemail/vm-listen_to_recording.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Save-File}:voicemail/vm-save_recording.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Delete-File}:voicemail/vm-delete_recording.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Forward}:voicemail/vm-to_forward.wav" />
</match>
2011-12-24 01:01:33 +00:00
</input>
<input field= "${VM-Message-Email}" pattern= "^$" >
<nomatch >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Email}:voicemail/vm-forward_to_email.wav" />
2011-12-24 01:01:33 +00:00
</nomatch>
</input>
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Callback}:voicemail/vm-return_call.wav" />
<action function= "phrase" phrase= "press_key@voicemail_ivr" data= "${VM-Key-Main-Forward}:voicemail/vm-to_forward.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "choose_greeting" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-choose_greeting_choose.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "choose_greeting_fail" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-choose_greeting_fail.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "record_greeting" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-record_greeting.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "record_message" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-record_message.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "greeting_selected" >
<input pattern= "^(\d+)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-greeting.wav" />
<action function= "say" data= "$1" method= "pronounced" type= "items" />
<action function= "play-file" data= "voicemail/vm-selected.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "play_greeting" >
<input pattern= "^(.*)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-person.wav" />
<action function= "say" data= "$1" method= "pronounced" type= "name_spelled" />
<action function= "play-file" data= "voicemail/vm-not_available.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "say_number" >
<input pattern= "^(\d+)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "say" data= "$1" method= "pronounced" type= "items" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "say_message_number" >
<input >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-${VM-Message-Type}.wav" />
<action function= "play-file" data= "voicemail/vm-message_number.wav" />
<action function= "say" data= "${VM-Message-Number}" method= "pronounced" type= "items" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "say_phone_number" >
<input pattern= "^(.*)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "say" data= "$1" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "say_name" >
<input pattern= "^(.*)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "say" data= "$1" method= "pronounced" type= "name_spelled" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
<!-- Note: Update this to marked - urgent,emailed and saved once new sound files are recorded -->
2012-01-17 22:33:49 +00:00
<macro name= "ack" >
2011-12-24 01:01:33 +00:00
<input pattern= "^(too-small)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-too-small.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
<input pattern= "^(undeleted)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-message.wav" />
<action function= "play-file" data= "voicemail/vm-$1.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
<input pattern= "^(deleted)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-message.wav" />
<action function= "play-file" data= "voicemail/vm-$1.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
<input pattern= "^(saved)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-message.wav" />
<action function= "play-file" data= "voicemail/vm-$1.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
<input pattern= "^(emailed)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-message.wav" />
<action function= "play-file" data= "voicemail/vm-$1.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
<input pattern= "^(marked-urgent)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "play-file" data= "voicemail/vm-message.wav" />
<action function= "play-file" data= "voicemail/vm-$1.wav" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "say_date" >
<input pattern= "^(.*)$" >
<match >
2012-01-17 22:33:49 +00:00
<action function= "say" data= "$1" method= "pronounced" type= "short_date_time" />
2011-12-24 01:01:33 +00:00
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "say_date_event" >
<input >
<match >
<action function= "say" data= "${VM-Message-Received-Epoch}" method= "pronounced" type= "short_date_time" />
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "play_message" >
<input >
<match >
<action function= "play-file" data= "${VM-Message-File-Path}" />
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "play_recording" >
<input >
<match >
<action function= "play-file" data= "${VM-Record-File-Path}" />
</match>
</input>
</macro>
2012-01-17 22:33:49 +00:00
2011-12-24 01:01:33 +00:00
<macro name= "disk_quota_exceeded" >
<input >
2012-01-17 22:33:49 +00:00
<match >
<action function= "play-file" data= "voicemail/vm-mailbox_full.wav" />
</match>
2011-12-24 01:01:33 +00:00
</input>
</macro>
</macros>
2012-01-17 22:33:49 +00:00
</include>