Recordcall appending empty recording
Posted: Mon Sep 09, 2019 5:19 pm
My application (among other things) connects the caller to a third party via <transfer>. At the AppRoot level, I have the recordcall property turned on, as the entire IVR portion of the call is recorded. However, for some transfers, we want to turn off recording. The transfer is essentially the end of the call, so we expect that the recording ends at the point right before the transfer begins. Here is a simplified version of this part of my code:
The line of code I added recently was the <property> in the "Hangup" form. Without that line, the recording played all the before transfer stuff, then immediately played "Goodbye." However, our business users didn't like how that sounded, so we wanted to turn off recording of the "Goodbye" part, hence me adding that line. However, when I add that line, the recording actually continues recording silence for the duration of the call and the goodbye. Meaning there may be 20+ minutes of blank recording for a call. (Let's assume I want to keep my <form>s the way they are, i.e. without consolidating everything to 2 forms.)
Is there a way I can get the recording to not record empty space when that property is turned off?
Code: Select all
<vxml version="2.1" application="../AppRoot.xml">
<form id="Start">
<block>
<prompt bargein="false">
<audio src=".">This is a prompt that plays and is recorded.</audio>
</prompt>
<goto next="#TransferMessage" />
</block>
</form>
<form id="TransferMessage">
<block>
<prompt>
<audio src=".">Please wait while we connect you.</audio>
</prompt>
<goto next="#Transfer" />
</block>
</form>
<form id="Transfer">
<property name="recordcall" value="false" />
<transfer name="callTransfer" destexpr="TransferNumber" connecttimeout="120s" transferaudio="https://holdmusic.wav">
<filled>
<goto next="#Hangup" />
</filled>
</transfer>
</form>
<form id="Hangup">
<property name="recordcall" value="false" />
<block>
<audio src=".">Goodbye.</audio>
<disconnect />
</block>
</form>
</vxml>
Is there a way I can get the recording to not record empty space when that property is turned off?