Igor,

 

You need a call leg to perform the eavesdrop. The <channel-uuid> is the channel of an active call that is to be eavesdropped upon.

 

These examples work from the fs_cli command window. You will have to modify the commands with extensions and the correct uuid:

 

Step 1: establish a 2 party call:

 

two party call:

originate sofia/internal/5401@10.47.41.109 &bridge(sofia/internal/5901@10.47.41.109)

 

Step 2: invoke eavesdrop with the desired behavior:

 

whisper/coach:

originate sofia/internal/5902@10.47.41.109 'queue_dtmf:w2@500,eavesdrop:a28739d0-00f0-4a59-8c82-7a5a74ab6861' inline

 

originate sofia/internal/4901@10.47.32.159 'queue_dtmf:w2@500,eavesdrop:35b70871-78d4-4587-a186-5c0457482515' inline

 

silent monitor:

originate sofia/internal/5401@10.47.41.109 'eavesdrop:a28739d0-00f0-4a59-8c82-7a5a74ab6861' inline

originate sofia/internal/5002@10.47.32.159 'queue_dtmf:w0@500,eavesdrop:abefa174-12dc-4ccb-956e-67c51475c414' inline

 

 

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Igor Olhovskiy
Sent: Thursday, July 09, 2015 7:48 AM
To: FreeSWITCH Users Help
Subject: [Freeswitch-users] Eavesdrop a call.

 

Hi!

I'm using Freeswitch 1.4.20 (git b95362f 2015-07-03 16:42:15Z 64bit)) (stable one)

and trying to get eavesdropping. But no luck.

Main scheme:

DID - > extension (210). 210 answers

eavesdropping from extension 110.

While giving a command 

eavesdrop <channel-uuid> 

I've got log full of messages 

2015-07-09 13:29:00.325667 [ERR] switch_core_io.c:1531 Write Buffer 0 bytes Failed!

and silence on 110 extension

 

While giving a command 

userspy 210@${domain_name} or userspy <channel-uuid>

I've got music-on-hold on 110, no errors on log.

 

In both cases used <channel-uuid> of extension 210 (answered one)

 

Is this a bug or I'm doing something wrong?

--

Best regards,

Igor


NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.