Two methods for freeswitch to implement monitoring and three-way calls

The first is to use the monitoring and three-way calling functions that come with freeswitch.

Module: mod_dptools: eavesdrop

      mod_dptools: three_way

The method of use is to send a command or configure a dial plan for the UUID of one of the two parties that have established a call, for example:

The UUIDs of both parties that have been on the call are:

9d385df2-e8ce-4c06-a8d9-ab04477a5d27、91b54a88-5f40-4ded-a82a-9b6e7be36ac1

Monitor: expand originate operator contact&eavesdrop(9d385df2-e8ce-4c06-a8d9-ab04477a5d27)

The operator is newly called, and some parameters of the normal call can be added before calling the contact .

Parameters that can be added by the listener

<actionapplication="set"data="eavesdrop_require_group=<groupID>"/>

<actionapplication="set" data="eavesdrop_indicate_failed=/sounds/failed.wav"/>         <!-- used in 'eavesdrop all' case-->

<actionapplication="set"data="eavesdrop_indicate_new=/sounds/new_chan_announce.wav"/><!-- used in 'eavesdrop all' case -->

<actionapplication="set"data="eavesdrop_indicate_idle=/sounds/idle.wav"/>             <!-- used in 'eavesdrop all'case -->

<actionapplication="set" data="eavesdrop_enable_dtmf=true"/><!-- false means no commands during eavesdrop -->

<actionapplication="set" data="eavesdrop_bridge_aleg=true"/><!-- enables listen to aleg -->

<actionapplication="set" data="eavesdrop_bridge_bleg=true"/><!-- enables listen to bleg -->

<actionapplication="set" data="eavesdrop_whisper_aleg=true"/><!-- enables whisper mode in aleg -->

<actionapplication="set" data="eavesdrop_whisper_bleg=true"/><!-- enables whisper mode in bleg -->

Three-way call: expand originate  operator contact & three_way(9d385df2-e8ce-4c06-a8d9-ab04477a5d27)

Another method is to use the multi-person conference function to achieve monitoring and three-way calls
The specific commands will not be posted. The idea is that there are already ordinary two parties on the call. The operator initiates monitoring. First, the operator calls himself, pulls himself into the conference, uses conference to enter the conference, and then sets himself to be mute. After the operation is successful, the two parties in the original call are pulled into the conference separately. In fact, it is a three-person conference, but the initiating listener is silenced, so that the original two parties cannot hear the voice of the initiating listener. When making a three-way call, you only need to not mute the initiator, and the others are the same.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325192596&siteId=291194637