The general telephone system can record voice calls in the system, and voice recording can be recorded in the FreeSwitch system.
Demand:
Record all calls in the system.
Realize:
(1) Create a folder freeswitch/recordings/archive/, used to store audio files;
(2) Modify the dial plan to open \conf\dialplan\default.xml
Locate the following statement:
<extension name= "Local_extension" >
<condition field= "Destination_number" expression= "^ (10[01][0-8]) $" >
Under it, add the following:
<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)"/>
<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 "/>
(3) in FS_CLI. EXE to run Reloadxml or press F6 to take effect.
Query the audio file format supported by FreeSwitch, and you can run the show file command in Fs_cli.exe.