The next day, learn about SIP (FreeSWITCH add recording function) (2)

Source: Internet
Author: User
Tags freeswitch

Learn some of the FreeSWITCH core commands, and then learn more about FS in detail.

To see if it was not previously suspected, two times when programming changes the configuration file, or Java injects some parameters into the configuration file, learn more about the following configuration file.

This should be difficult, not clear.

Ask Mr. Baidu.

Learn a new knowledge of how FS adds recording functions to configure

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.

Learn to complete the recording successfully again folder Recordings/archive, the following is the recording

This function is good, so that I can hear the following people's recordings, to find out their problems, the words of this piece .... OK, I believe it is easier to listen to a recording via a web-side call.

The next day, learn about SIP (FreeSWITCH add recording function) (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.