Misc. Dialplan Tools record

From FreeSWITCH Wiki

Jump to: navigation, search


record,Record File,<path> [<time_limit_secs>] [<silence_thresh>] [<silence_hits>]

Dialplan Example:

  <action application="playback" data="/var/sounds/beep.gsm"/>
  <!--default terminator is *. Keyword 'none' disables on-key termination /-->
  <!--following line will set # as recording session terminator /-->
  <action application="set" data="playback_terminators=#"/> 
  <action application="record" data="/tmp/data.mp3 20 200"/>


Record is used for recording messages, like in a voicemail system. This application will record a file to <path>

  • <time_limit_secs> (optional) is the maximum duration of the recording
  • <silence_thresh> (optional) is the energy level
  • <silence_hits> (optional) hits is how many positive hits on being below that thresh you can tolerate to stop

default hits are sample rate * 3 / the number of samples per frame so the default, if missing, is 3.

Record doesn't set any variables in the dialplan and sets no record status.

Related

Record Session

Personal tools