修改撥碼計劃
打開文件../freeswitch/conf/dialplan/default.xml
找到Local_Extension節點
<extension name="Local_Extension">
<condition field="destination_number" expression="^(10[01][0-8])$">
在其下,添加:
<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"/>
完成后,進入FS_CLI中運行 reloadxml
以上../freeswitch/conf/dialplan/default.xml,如果有其它的部分撥號方案需要錄音,找到對應的撥號方案配置文件加入上述內容即可。