Page 1 of 1

Recordcall in wav

Posted: Tue Feb 02, 2010 10:14 am
by w2gi
Hi,
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>

IVR property: recordcall

Posted: Tue Feb 02, 2010 11:33 am
by support
Hi,

Sorry, but when using the IVR property, "recordcall", the "callrecording" is set up as "audio/basic", which generates a headerless voice file with 8 bit mu-law coding at a sample rate of 8000 Hz and cannot be changed. So, you would have to go through this conversion process.

Also, based on what we're seeing in your IVR code, you would not be able to use the IVR tag, <record> in place of using the "recordcall" property. The <record> tag would not allow you to record the transfer call.

Regards,
Plum Support

Posted: Tue Feb 02, 2010 12:42 pm
by w2gi
Thank you