[asterisk-app-dev] Recording an ARI Bridge to Separate Files

Matthew Jordan mjordan at digium.com
Tue Nov 11 08:06:19 CST 2014


On Tue, Nov 11, 2014 at 2:35 AM, Chris Cantey <chris at wonders.co> wrote:
> I read through some archives from last year and may have found the answer to
> this. It looks like snoop was added to allow this (and more).
>

Yup! That's exactly the intent. ARI is geared towards providing a
toolbox that you can use to build applications, and the more we talked
about the traditional 'Monitor/MixMonitor/ChanSpy' dialplan
applications, the more it felt like they tried to do too much. So
Snoop channels were created to provide the most basic building block
needed for those use cases.

To implement a 'Monitor/MixMonitor' style of functionality, you can
create a Snoop channel and issue a /record operation on the Snoop
channel.

To implement a 'Whisper/ChanSpy' style of functionality, you can
create a Snoop channel and bridge it with the channel that wants to
whiisper/spy.

That's obviously just scratching the surface - you can do a lot of
interesting things with Snoop channels. In particular, since bridges
can hold any number of Snoop channels, you can create some interesting
whisper/monitoring situations. I've never been sure how practically
useful this is, but you can also use them to create some very
ephemeral bridges while the channel being snooped on is another
bridge.

Matt

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org



More information about the asterisk-app-dev mailing list