Record tag

Definition

This tag creates a recording, either as input to a prompt, or as a recording of the entire phone call.

Value

This is an empty self-closing tag.

Attributes

Attribute Required ValuesDescription
name N any text a unique name for the tag
varname Y any text This will store the full path to the recording into a variable
background N "true" "true" records the entire phone call
timeout N number of milliseconds This will limit the recording to a certain length in number of milliseconds

Examples

Play a file and then record a message after the beep. The recording will be saved when the user hangs up or when they press the pound key (#).
<play type="tts" 
      voice="male1">
      At the tone, please state your name clearly. 
      When you are finished, please press Pound.
</play>        
<record varname="ClientName" />

Record an entire call in the background. The recording will stop when the call finishes on its own.

<dialplan name="RecordExample">
     <record background="true" />
     <play type="callfireid">12345</play>
     <!-- Other nodes to be executed would go here -->
</dialplan>

Record a sound file and play it back to the user.

<dialplan name="RecordExample">
     <play type="tts" voice="female2">Please record a message.</play>
     <record varname="myrecording" />
     <play type="tts" voice="female2">You recorded,</play>
     <play type="url">${myrecording}</play>
     <!-- Other nodes to be executed would go here -->
</dialplan>

Also See

Further Reading

Coming soon.