Webpage real-time audio and video call system, online video conferencing system EasyRTC through freeswitch cascade function configuration sharing

In some projects of EasyRTC, the customer hopes to enable the video cascade function, that is, push the video of server A to server B. At present, we have carried out research on this function, and realized the cascading function of EasyRTC based on freeswitch. Below, we will share with you our implementation method.

106.png

The basic usage is as follows:
a user----A server (192.168.99.162)------B server (192.168.99.147)-----b user

User a visits server A, server A forwards the video to server B, user b visits the room of server B, and can see the video of a.

First, add the following parameters to the configuration file conf/dialplan/default.xml of the A server (192.168.99.162). It is best to put them in front of the file to prevent them from being overwritten, as follows:

<extension name="meeting">
        <condition field="destination_number" expression="^(.*)$">
             <action application="bridge" data="sofia/external/sip:[email protected]:15080" />
        </condition>
    </extension>

expression represents all meeting rooms, ^1(.*)$ is the meeting room starting with 1.

%1 in the data represents the name of the conference room. Forward all data to 192.168.99.147.
Modify public_extensions to the following content in the configuration file conf/displan/public.xml of B server (192.168.99.147), which means to receive all conference rooms.

<extension name="public_extensions">
      <condition field="destination_number" expression="^(.*)$">
        <action application="transfer" data="$1 XML default"/>
      </condition>
    </extension>

Enter the conference room in a, the video of a will be forwarded to server B, and the captured packet will be displayed as follows:

68.png

The above packet data represents that 192.168.99.162 forwards the video of A to the server of 192.168.99.147 through the sip+rtp protocol.

In the 147 service, you can see the video of the 162 server, so far this function has been completed.

69.png

At present, EasyRTC can be used in many projects, including online education, corporate office, online medical care, etc. If you are more interested in the products we have developed, please pay attention to us to learn more.

Guess you like

Origin blog.csdn.net/TsingSee/article/details/114998485