updated to FS git HEAD 5e3a6fc5e6f40be5d68c8b3cfbbfa3227fe06c2f

git-svn-id: svn://svn.openwrt.org/openwrt/packages@35036 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mazilo
2013-01-07 14:25:52 +00:00
parent 6f2abb509e
commit fb2956f426
74 changed files with 3011 additions and 1630 deletions

View File

@ -1,6 +1,4 @@
<?xml version="1.0" encoding="Windows-1252"?>
<include><!--This line will be ignored it's here to validate the xml and is optional -->
<include>
<macro name="demo_ivr_count">
<input pattern="^(\d+)$">
@ -69,7 +67,7 @@
<!-- The following macro is the same as demo_ivr_main_menu except it is the "short" version -->
<!-- The short version has all the options but not the initial greeting -->
<macro name="demo_ivr_main_menu_short" pause="100">
<macro name="demo_ivr_main_menu_short" pause="100">
<input pattern="(.*)">
<match>
<!-- Menu option 1: Call FreeSWITCH conference-->
@ -132,7 +130,7 @@
<!-- The following macro is the same as demo_ivr_sub_menu except it is the "short" version -->
<!-- The short version has all the options but not the initial greeting -->
<macro name="demo_ivr_sub_menu_short">
<macro name="demo_ivr_sub_menu_short">
<input pattern="(.*)">
<match>
<!-- Menu option *: Return to top menu -->
@ -140,9 +138,19 @@
<action function="play-file" data="ivr/ivr-please.wav"/>
<action function="play-file" data="voicemail/vm-press.wav"/>
<action function="play-file" data="digits/star.wav"/>
</match>
</input>
</macro>
</include><!--This line will be ignored it's here to validate the xml and is optional -->
</include>
<!--
For Emacs:
Local Variables:
mode:xml
indent-tabs-mode:nil
tab-width:2
c-basic-offset:2
End:
For VIM:
vim:set softtabstop=2 shiftwidth=2 tabstop=2 expandtab:
-->

View File

@ -1,71 +1,82 @@
<include><!--This line will be ignored it's here to validate the xml and is optional -->
<macro name="msgcount">
<input pattern="(.*)">
<match>
<action function="execute" data="sleep(1000)"/>
<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-messages.wav"/>
<!-- or -->
<!--<action function="speak-text" data="you have $1 messages"/>-->
</match>
</input>
</macro>
<macro name="saydate">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="current_date_time"/>
</match>
</input>
</macro>
<macro name="timespec">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="time_measurement"/>
</match>
</input>
</macro>
<macro name="ip-addr">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="iterated" type="ip_address"/>
<action function="say" data="$1" method="pronounced" type="ip_address"/>
</match>
</input>
</macro>
<macro name="spell">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="name_spelled"/>
</match>
</input>
</macro>
<macro name="spell-phonetic">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="name_phonetic"/>
</match>
</input>
</macro>
<macro name="tts-timeleft">
<!-- The parser will visit each <input> tag and execute the actions in <match> or <nomatch> depending on the pattern param -->
<!-- If the function "break" is encountered all parsing will cease -->
<input pattern="(\d+):(\d+)">
<match>
<action function="speak-text" data="You have $1 minutes, $2 seconds remaining $strftime(%Y-%m-%d)"/>
<action function="break"/>
</match>
<nomatch>
<action function="speak-text" data="That input was invalid."/>
</nomatch>
</input>
<input pattern="(\d+) min (\d+) sec">
<match>
<action function="speak-text" data="You have $1 minutes, $2 seconds remaining $strftime(%Y-%m-%d)"/>
</match>
<nomatch>
<action function="speak-text" data="That input was invalid."/>
</nomatch>
</input>
</macro>
</include><!--This line will be ignored it's here to validate the xml and is optional -->
<include>
<macro name="msgcount">
<input pattern="(.*)">
<match>
<action function="execute" data="sleep(1000)"/>
<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-messages.wav"/>
<!-- or -->
<!--<action function="speak-text" data="you have $1 messages"/>-->
</match>
</input>
</macro>
<macro name="saydate">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="current_date_time"/>
</match>
</input>
</macro>
<macro name="timespec">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="time_measurement"/>
</match>
</input>
</macro>
<macro name="ip-addr">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="iterated" type="ip_address"/>
<action function="say" data="$1" method="pronounced" type="ip_address"/>
</match>
</input>
</macro>
<macro name="spell">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="name_spelled"/>
</match>
</input>
</macro>
<macro name="spell-phonetic">
<input pattern="(.*)">
<match>
<action function="say" data="$1" method="pronounced" type="name_phonetic"/>
</match>
</input>
</macro>
<macro name="tts-timeleft">
<!-- The parser will visit each <input> tag and execute the actions in <match> or <nomatch> depending on the pattern param -->
<!-- If the function "break" is encountered all parsing will cease -->
<input pattern="(\d+):(\d+)">
<match>
<action function="speak-text" data="You have $1 minutes, $2 seconds remaining $strftime(%Y-%m-%d)"/>
<action function="break"/>
</match>
<nomatch>
<action function="speak-text" data="That input was invalid."/>
</nomatch>
</input>
<input pattern="(\d+) min (\d+) sec">
<match>
<action function="speak-text" data="You have $1 minutes, $2 seconds remaining $strftime(%Y-%m-%d)"/>
</match>
<nomatch>
<action function="speak-text" data="That input was invalid."/>
</nomatch>
</input>
</macro>
</include>
<!--
For Emacs:
Local Variables:
mode:xml
indent-tabs-mode:nil
tab-width:2
c-basic-offset:2
End:
For VIM:
vim:set softtabstop=2 shiftwidth=2 tabstop=2 expandtab:
-->

View File

@ -0,0 +1,35 @@
<include>
<macro name="funny_prompts" pause="750">
<input pattern="(.*)">
<match>
<action function="play-file" data="ivr/ivr-wakey_wakey_sunshine.wav"/>
<action function="play-file" data="ivr/ivr-no_no_no.wav"/>
<action function="play-file" data="ivr/ivr-did_you_mean_to_press_key.wav"/>
<action function="play-file" data="ivr/ivr-seriously_mean_to_press_key.wav"/>
<action function="play-file" data="ivr/ivr-oh_whatever.wav"/>
<action function="play-file" data="ivr/ivr-one_more_mistake.wav"/>
<action function="play-file" data="ivr/ivr-congratulations_you_pressed_star.wav"/>
<action function="play-file" data="ivr/ivr-engineers_busy_assisting_other_sales.wav"/>
<action function="play-file" data="ivr/ivr-message_self_destruct.wav"/>
<action function="play-file" data="ivr/ivr-all_your_call_are_belong_to_us.wav"/>
<action function="play-file" data="ivr/ivr-love_those_touch_tones.wav"/>
<action function="play-file" data="ivr/ivr-yes_we_have_no_bananas.wav"/>
<action function="play-file" data="ivr/ivr-dude_you_suck.wav"/>
<action function="play-file" data="ivr/ivr-on_hold_indefinitely.wav"/>
<action function="play-file" data="ivr/ivr-youre_doing_it_wrong.wav"/>
<action function="play-file" data="ivr/ivr-were_asterisk_free.wav"/>
<action function="play-file" data="ivr/ivr-douche_telecom.wav"/>
<action function="play-file" data="ivr/ivr-asterisk_like_syphilis.wav"/>
<action function="play-file" data="ivr/ivr-freeguipy.wav"/>
<action function="play-file" data="ivr/ivr-terribly_wrong_awkward.wav"/>
<action function="play-file" data="ivr/ivr-it_was_that_bug.wav"/>
<action function="play-file" data="ivr/ivr-concentrate.wav"/>
<action function="play-file" data="ivr/ivr-founder_of_freesource.wav"/>
<action function="play-file" data="ivr/ivr-cold_foolish.wav"/>
<action function="play-file" data="ivr/ivr-trollover_minutes.wav"/>
<action function="play-file" data="ivr/ivr-yuno_silent_drill.wav"/>
<action function="play-file" data="ivr/ivr-beacuase.wav"/>
</match>
</input>
</macro>
</include>