[prev in list] [next in list] [prev in thread] [next in thread]
List: asterisk-dev
Subject: Re: [asterisk-dev] ARI Snoop
From: Phil Mickelson <phil () cbasoftware ! com>
Date: 2015-07-19 21:45:37
Message-ID: CAHVWxNAv5rFnvFYHAPeTiwb32wJZkZKY_xYjn-Sk8i_xWD8yCw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Matthew,
I really, really appreciate the effort! I will try your suggestion and see
if it works.
The operator (the channel being snooped) is active. However, there's no
other voice connection other than snoop.
I just saw the response from Joshua so that bodes well. I'll let you guys
know if this works.
Thank you again.
Phil Mickelson
On Sun, Jul 19, 2015 at 5:40 PM, Matthew Jordan <mjordan@digium.com> wrote:
>
> On Sun, Jul 19, 2015 at 4:01 PM, Phil Mickelson <phil@cbasoftware.com>
> wrote:
>
> > Thank you for your response.
> >
> > Phil Mickelson
> >
> > On Sun, Jul 19, 2015 at 4:56 PM, Joshua Colp <jcolp@digium.com> wrote:
> >
> > > Phil Mickelson wrote:
> > >
> > > > Hello,
> > > >
> > > > I've written a full answering service application with Asterisk at the
> > > > center. All of my interaction with Asterisk is through ARI. Thank you
> > > > so much for this feature! Without it I wouldn't have been able to make
> > > > this work!
> > > >
> > > > I've just implemented a new Snoop feature. Without boring you with the
> > > > details (unless you want them) I am able to Snoop on an operator
> > > > regardless of whether or not they are on an active call. However, the
> > > > only way the Whisper option works is if they are on an actual call. The
> > > > only difference internally is there are two channels connected through a
> > > > central bridge. Otherwise, the operator's channel is the only one in
> > > > that bridge.
> > > >
> > > > Since I can hear the operator regardless of the current call situation
> > > > I'm assuming there must be code in the Snoop option to mute the operator
> > > > if a call is not active?
> > > >
> > >
> > > There is no code to do that. What whispering does require though (for
> > > both Chanspy and Snoop channels) is a constant media stream out to the
> > > channel. It's likely that in the specific scenario there is nothing
> > > generating a stream and thus nothing to whisper into.
> > >
> > > There's an open issue[1] to remove this requirement but I know of noone
> > > currently working on it.
> > >
> > > [1] https://issues.asterisk.org/jira/browse/ASTERISK-24397
> >
> >
> Well nuts. Looks like my theory wasn't right :-)
>
> I wonder - as a workaround until that issue is addressed, you *may* be
> able to force the Whisper by starting Silence on the target channel first:
>
>
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-startSilence
>
> That *should* start silence frames going to the target of the Snoop
> channel, at which point, there's at least something flowing through to
> allow the audiohook to start sending Whispered audio.
>
> (If I'm wrong, Josh will tell me why :-)
>
> --
> Matthew Jordan
> Digium, Inc. | Director of Technology
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at: http://digium.com & http://asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
[Attachment #5 (text/html)]
<div dir="ltr">Matthew,<div><br></div><div>I really, really appreciate the effort! \
I will try your suggestion and see if it works.</div><div><br></div><div>The operator \
(the channel being snooped) is active. However, there's no other voice \
connection other than snoop.</div><div><br></div><div>I just saw the response from \
Joshua so that bodes well. I'll let you guys know if this \
works.</div><div><br></div><div>Thank you again.</div><div><br></div><div>Phil \
Mickelson</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Sun, Jul 19, 2015 at 5:40 PM, Matthew Jordan <span \
dir="ltr"><<a href="mailto:mjordan@digium.com" \
target="_blank">mjordan@digium.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div \
class="gmail_quote"><span class="">On Sun, Jul 19, 2015 at 4:01 PM, Phil Mickelson \
<span dir="ltr"><<a href="mailto:phil@cbasoftware.com" \
target="_blank">phil@cbasoftware.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thank you for your \
response.<span><font color="#888888"><div><br></div><div>Phil \
Mickelson</div></font></span></div><div><div><div class="gmail_extra"><br><div \
class="gmail_quote">On Sun, Jul 19, 2015 at 4:56 PM, Joshua Colp <span \
dir="ltr"><<a href="mailto:jcolp@digium.com" \
target="_blank">jcolp@digium.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span>Phil Mickelson wrote:<br> <blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> Hello,<br>
<br>
I've written a full answering service application with Asterisk at the<br>
center. All of my interaction with Asterisk is through ARI. Thank you<br>
so much for this feature! Without it I wouldn't have been able to make<br>
this work!<br>
<br>
I've just implemented a new Snoop feature. Without boring you with the<br>
details (unless you want them) I am able to Snoop on an operator<br>
regardless of whether or not they are on an active call. However, the<br>
only way the Whisper option works is if they are on an actual call. The<br>
only difference internally is there are two channels connected through a<br>
central bridge. Otherwise, the operator's channel is the only one in<br>
that bridge.<br>
<br>
Since I can hear the operator regardless of the current call situation<br>
I'm assuming there must be code in the Snoop option to mute the operator<br>
if a call is not active?<br>
</blockquote>
<br></span>
There is no code to do that. What whispering does require though (for both Chanspy \
and Snoop channels) is a constant media stream out to the channel. It's likely \
that in the specific scenario there is nothing generating a stream and thus nothing \
to whisper into.<br> <br>
There's an open issue[1] to remove this requirement but I know of noone currently \
working on it.<br> <br>
[1] <a href="https://issues.asterisk.org/jira/browse/ASTERISK-24397" rel="noreferrer" \
target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-24397</a><span><font \
color="#888888"></font></span></blockquote></div></div></div></div></blockquote><div><br></div></span><div>Well \
nuts. Looks like my theory wasn't right :-)<br><br></div><div>I wonder - as a \
workaround until that issue is addressed, you *may* be able to force the Whisper by \
starting Silence on the target channel first:<br><br><a \
href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-startSilence" \
target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-startSilence</a><br><br></div><div>That \
*should* start silence frames going to the target of the Snoop channel, at which \
point, there's at least something flowing through to allow the audiohook to start \
sending Whispered audio. <br></div></div><br></div><div class="gmail_extra">(If \
I'm wrong, Josh will tell me why :-)<br></div><span class=""><div \
class="gmail_extra"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Matthew \
Jordan<br></div><div>Digium, Inc. | Director of Technology<br></div><div>445 Jan \
Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a \
href="http://digium.com" target="_blank">http://digium.com</a> & <a \
href="http://asterisk.org" \
target="_blank">http://asterisk.org</a></div></div></div></div></div> \
</div></span></div> <br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br> <br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic