From Anthony Cosgrove, 4 Years ago, written in XML.
- view diff
Embed
  1. Taken from https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+record_session#mod_dptools:record_session-Dialplan and altered (added lines 13 - 14)
  2.  
  3. <extension name="record greeting">
  4.   <condition field="destination_number" expression="^700$">
  5.     <action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
  6.     <action application="set" data="RECORD_COPYRIGHT=(c) 1980 Factory Records, Inc."/>
  7.     <action application="set" data="RECORD_SOFTWARE=FreeSWITCH"/>
  8.     <action application="set" data="RECORD_ARTIST=Ian Curtis"/>
  9.     <action application="set" data="RECORD_COMMENT=Love will tear us apart"/>
  10.     <action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
  11.     <action application="set" data="RECORD_STEREO=true"/>
  12.     <action application="record_session" data="$${recordings_dir}/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
  13.     <action application="answer"/>
  14.     <action application="park"/>
  15.   </condition>
  16. </extension>