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)