We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Recordcall in wav

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
w2gi
Posts: 46
Joined: Fri Jun 26, 2009 1:35 pm

Recordcall in wav

Post 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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR property: recordcall

Post 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
Last edited by support on Wed Feb 24, 2010 11:18 am, edited 1 time in total.

w2gi
Posts: 46
Joined: Fri Jun 26, 2009 1:35 pm

Post by w2gi »

Thank you

Post Reply