<p dir="ltr"><br>
On 1 Nov 2013 11:36, "Joshua Colp" <<a href="mailto:jcolp@digium.com">jcolp@digium.com</a>> wrote:<br>
><br>
> So, as Matt mentioned I do think the descriptions for these tasks in JIRA is going to change and here's why! Dun dun dun.<br>
><br>
> As I'm looking at implementing the functionality I'm unhappy with the thought of simply making Chanspy available over ARI. This is going down the same road as the /dial operation was. I've taken a step back and actually looked at what I mentioned awhile ago and how feasible it is... and I'd like to go further down that road!<br>
><br>
> I'd like to expose a /snoop operation (although I'm open to changing the name... I just wanted something to encompass both spy and whisper) on channels. This operation would accept a direction for spying and a direction for whispering. Of course "none" would be an option for both in case you don't want to do them. This operation would internally create a Snoop channel which snoops on another channel (oddly enough). Anything written to it is whispered to the other channel (if a direction is specified) and anything read from it is the spied audio (if a direction is specified). The operation would also accept the name of a Stasis application and optionally some arguments. The Snoop channel would be placed into this app. The operation would return a snapshot of this Snoop channel.<br>
><br>
> Why this way?<br>
><br>
> ULTIMATE POWER! By ultimate power I mean since this is a channel in your Stasis application you can do anything to it that can be done with a channel. Monitoring becomes creating a snoop channel and calling record on it. Whispering or live monitoring becomes creating a snoop channel, creating a bridge, and putting another channel in the bridge. Whispering media becomes creating a snoop channel and calling playback on it.<br>
><br>
> Thoughts?<br>
><br>
><br>
> -- <br>
> Joshua Colp<br>
> Digium, Inc. | Senior Software Developer<br>
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
> Check us out at: <a href="http://www.digium.com">www.digium.com</a> & <a href="http://www.asterisk.org">www.asterisk.org</a><br>
><br>
><br>
> _______________________________________________<br>
> asterisk-app-dev mailing list<br>
> <a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.com</a><br>
> <a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a></p>
<p dir="ltr">Sounds good to me, would you be able to change direction, or being able to whisper etc etc part way through the channel's lifetime?</p>
<p dir="ltr">Still interested to see if you'd then be able to snoop and return an audio stream via http but that's another issue<br>
</p>