Change the filename reference to file and the caller id number to the call uuid.

This commit is contained in:
Mark Crane 2015-06-23 22:19:46 +00:00
parent 63705169bb
commit 6091bd005f
1 changed files with 2 additions and 2 deletions

View File

@ -2,13 +2,13 @@
<extension name="call_screen" number="[ext]" continue="true" app_uuid="b26a08a5-a062-42ca-b90f-d47f905dd876">
<condition field="${call_screen_enabled}" expression="^true$"/>
<condition field="${call_direction}" expression="^inbound$">
<action application="set" data="call_screen_file=/tmp/${caller_id_number}-name.wav"/>
<action application="set" data="call_screen_file=/tmp/call_screen-${uuid}.wav"/>
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="phrase" data="voicemail_record_name"/>
<action application="playback" data="tone_stream://%(500, 0, 640)"/>
<action application="set" data="playback_terminators=#*0123456789"/>
<action application="record" data="${call_screen_filename} 7 200 2"/>
<action application="record" data="${call_screen_file} 7 200 2"/>
<action application="set" data="group_confirm_key=1"/>
<action application="set" data="fail_on_single_reject=true"/>
<action application="set" data="group_confirm_file=phrase:screen_confirm:${call_screen_file}"/>