Plum DEV Documentation
voicexml:properties:recordcall

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:properties:recordcall [2014/06/02 16:17]
jennifer added meta description
voicexml:properties:recordcall [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​recordcall VoiceXML property | recordcall enables call recording for your script.}} 
-=====recordcall===== 
-** 
-Default Value:** false 
- 
-Enables call recording for your script. Call recordings are stored in the variable session.callrecording and can be uploaded using the <​submit>,​ <​subdialog>​ or <​data>​ tags. 
- 
-====Example==== 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<vxml version="​2.0">​ 
-  <form id="​form1">​ 
-    <​block>​ 
-      <prompt bargein="​false">​ 
-        You will not hear this message in your recording. 
-      </​prompt>​ 
-      <goto next="#​form2"/>​ 
-    </​block>​ 
-  </​form>​ 
- 
-  <form id="​form2">​ 
-    <​property name="​recordcall"​ value="​true"/>​ 
-    <​block>​ 
-      <​prompt>​ 
-        You will hear this message in your recording. 
-      </​prompt>​ 
-      <submit next="​callrecord.php"​ namelist="​callrecording"​ 
-        method="​post"/>​ 
-    </​block>​ 
-  </​form>​ 
-</​vxml>​ 
-</​code>​ 
- 
-====Explanation==== 
- 
-From this example, "​recordcall"​ is set to true, which enables call recording. The only part of the call that would be recorded is the prompt in form2 since the "​recordcall"​ property is set within that scope and the bargein property of the first prompt in form1 is set to false. Also, note that the "​callrecording"​ property must be used for the "​namelist"​ property of <​submit>​ since it is predefined to work with "​recordcall"​. Make sure that you reference “callrecording” in your server-side script when capturing the posted call recording. 
-====Notes==== 
- 
-None 
-