I am recording a call transfer through "recordcall" property. The recorded file is in. ul format. Is there a way to save the file in .wav format. I know it could be done through sox converter. Is there a way to not go through conversion process.
Also, Would I be able to use "record" tag in my code instead of "recordcall" property? Then it would be easier for me to save the recording in .wav format.
Code: Select all
<form id="transferout">
<var name="filename" />
<block>
<prompt bargein="false">Please wait while we transfer your call</prompt>
</block>
<!-- This script is to get the session ID and get rid of semicolons. Thus, use this for audio file name. -->
<script>
filename = session.id.replace(";", "");
filename = filename.replace(";", "");
</script>
<property name="recordcall" value="true" />
<transfer name="callTransfer" destexpr="'+' + document.locations[document.chosen-1].PHONE" bridge="true" connecttimeout="20s">
<filled>
<if cond="callTransfer == 'noanswer'">
<prompt bargein="false">
<audio src="12.wav"></audio>
</prompt>
<disconnect namelist="callTransfer" />
<elseif cond="callTransfer == 'busy'"/>
<prompt bargein="false">
<audio src="12.wav"></audio>
</prompt>
<disconnect namelist="callTransfer" />
<elseif cond="callTransfer == 'near_end_disconnect'"/>
<throw event="nearend" />
<elseif cond="callTransfer == 'far_end_disconnect'"/>
<throw event="farend" />
</if>
</filled>
</transfer>
<catch event="connection.disconnect.hangup">
<if cond="callTransfer$.duration != null && callTransfer$.duration > 0">
<submit next="upload.cgi" namelist="callrecording appkey filename" method="post" enctype="multipart/form-data" fetchtimeout="180s" />
</if>
</catch>
<catch event="farend nearend">
<submit next="upload.cgi" namelist="callrecording filename" method="post" enctype="multipart/form-data" fetchtimeout="180s" />
</catch>