FreeSWITCH generated audio file

Modify the DIP program
Edit ../freeswitch/conf/dialplan/default.xml
Find Local_Extension node, the content will look to supplement it, is completed, you can execute relaodxml.
<action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c) 2011"/>
<action application="set" data="RECORD_SOFTWARE=FreeSWITCH"/><action application="set" data="RECORD_ARTIST=FreeSWITCH"/>
<action application="set" data="RECORD_COMMENT=FreeSWITCH"/>
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/><action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
 
Second, let the record to support other formats
  If you want to generate recording mp3 format files, you need to install mod_shout module. This module rely on the following libraries:
    yum install libshout-devel
    yum install lame-devel
    yum install libmpg123-devel
  When compiling FreeSWITCH, modules.conf file in the source directory modification, the front line 120 of # formats / mod_shout # removed

Guess you like

Origin www.cnblogs.com/myfk5741/p/11320600.html