Re: [asterisk-users] [asterisk-app-dev] how to use snoopChannel

2018-07-24 Thread Joshua Colp
On Tue, Jul 24, 2018, at 10:41 AM, Phil Mickelson wrote:
> Ramesh,
> 
> I'm also using ARI and Nodejs.  I use the snoopChannelWithId command.  I
> always specify both directions so that the snooper can whisper to one of
> the listeners and then just silence the snooper if I don't want anyone to
> know they're listening.  This is all done through the buffer that connects
> the original parties.
> 
> It's actually really simple and works very well.  It's been in use in an
> answering service for several years.

I'm glad you've found it simple! It was a challenge to strike the right balance 
between the interface and giving full power over what you can do but I've found 
once it finally clicks people generally go "that makes sense".

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

___
asterisk-app-dev mailing list
asterisk-app-...@lists.digium.com
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] [asterisk-app-dev] how to use snoopChannel

2018-07-24 Thread Joshua Colp
On Tue, Jul 24, 2018, at 10:20 AM, Ramesh C wrote:
> Hello ,
> 
> I want to use spy and whisper using snoopChannel , but i do not understand
> how to use this snoopChannel() method.
> 
> Actually my need is that, one user on a channel wants to whisper/spy a talk
> running between two caller(means both caller's channels are in a bridge),
> so how i use this method please give me example code here.
> and also give me possible value of arguments 'spy' and 'whisper'

Who do you want to whisper to? Both channels?

The way it works though is snoop channel creates a channel that you can treat 
like any other (add to a bridge, record, etc) - audio coming from it is a copy 
of the audio from the channel you are snooping on, audio going to it is 
whispered to the channel you are snooping on. To do spy/whisper you would 
snoop, create a bridge, and add the snoop channel and the channel doing the 
snooping into it.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

___
asterisk-app-dev mailing list
asterisk-app-...@lists.digium.com
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users