SIP User's Manual 452 Document #: LTRT-83310
Mediant 600 & Mediant 1000
20.1.3.4.1 Record
As the device doesn't provide the ability to record ‘on-board’, it is necessary to record a
caller’s speech by streaming the audio to either an external NFS server. There are two
additional attributes for the VXML <record> element that can be used to specify the off-
board file name as well as the streaming mechanism for recording speech.
“dest” attribute for <record>, which refers to a fully specified URL. An example of this
is the following script:
<?xml version="1.0"?>
<vxml version="2.0" xmlns=\"http://www.w3.org/2001/vxml\">
<form id="form1">
<record name="msg" finalsilence="3000ms" maxtime="60s"
dtmfterm="true"
dest="http://192.168.1.2/recordings/greetings/callersspeech.wav">
<audio src= "http://192.168.1.2/prompts/recordprompt.wav"/>
<filled>
<audio src = “http://192.168.1.2/prompts/confirm.wav”/>
<audio src= "http://192.168.1.2/
greetings/callersspeech.wav"/>
<exit/>
</filled>
<noinput>
<audio src=
"http://192.168.1.2/prompts/recordprompt2.wav "/>
<reprompt/>
</noinput>
</record>
</form>
In this example, the “dest” attribute of the <record> element specifies that the caller’s
speech must be streamed with HTTP to the system with IP address 192.168.1.2, and
stored in a file called “callersspeech.wav” on that system.
The “destexpr” attribute provides an alternative to the "dest" attribute. The “destexpr”
attribute is evaluated during runtime to determine where to store the caller’s speech.
The following is an example script illustrating its usage:
<?xml version="1.0"?>
<vxml version="2.0" xmlns=\"http://www.w3.org/2001/vxml\">
<var name=”recordpath” expr =
“’http://192.168.1.2/recordings/greetings/’”/>
<form id="form1">
<record name="msg" finalsilence="3000ms" maxtime="60s"
dtmfterm="true" destexpr="recordpath + ‘callersspeech.wav’">
<audio src= "http://192.168.1.2/prompts/recordprompt.wav"/>
<filled>
<audio src = “http://192.168.1.2/prompts/confirm.wav”/>
<audio expr= " recordpath + ‘callersspeech.wav’"/>
<exit/>
</filled>
<noinput>
<audio src=
"http://192.168.1.2/prompts/recordprompt2.wav"/>
<reprompt/>
</noinput>
</record>
</form>