<div dir="ltr"><div dir="ltr">On Thu, Oct 27, 2022 at 5:47 AM Joshua C. Colp <<a href="mailto:jcolp@digium.com">jcolp@digium.com</a>> wrote:<br></div><div class="gmail_quote"><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"><div dir="ltr">On Thu, Oct 27, 2022 at 4:29 AM Fridrich Maximilian <<a href="mailto:M.Fridrich@commend.com" target="_blank">M.Fridrich@commend.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>> It is not expected, and I do believe there are people doing this. You'd need<br>
>> to show the precise things you are doing and what events occur. Underneath<br>
>> it's using the same stuff as ChanSpy, so if that works then Snoop should<br>
>> work.<br>
><br>
> Oh, there IS an inherent limitation in the underlying API that all this uses<br>
> - it requires media flowing to the channel in order to whisper into it. If<br>
> that's not happening, then it won't occur.<br>
<br>
So far I've had no luck with the snoop channel. I have tried all combinations of<br>
the spy=in&whisper=out parameters when creating the snoop channel via ARI and<br>
the logs and events we receive all look correct - no errors/warnings or<br>
anything.<br>
<br>
Here's what we are doing in our scenario:<br>
<br>
1. An incoming PJSIP channel enters the Stasis Application.<br>
2. We create an externalMedia channel and a bridge.<br>
3. We add the externalMedia and PJSIP channel to the bridge.<br>
<br>
There is always audio flowing from the incoming PJSIP channel to the<br>
externalMedia channel.<br></blockquote><div><br></div><div>Is media flowing TO the incoming PJSIP channel?</div></div></div></blockquote><div><br></div><div>To finish my early morning thought. The answer is likely no, which is why whispering doesn't work. Whispering requires a constant stream of media TO the channel[1]. This is because such core functionality predates any timing or ability to provide its own frames out. Swapping things could work. That is: Feed a snoop channel into external media, and then call /play directly on the channel.</div><div><br></div><div>[1] <a href="https://issues.asterisk.org/jira/browse/ASTERISK-24397">https://issues.asterisk.org/jira/browse/ASTERISK-24397</a> </div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><div><font color="#073763">Joshua C. Colp</font></div><div><font color="#073763">Asterisk Project Lead</font></div><div><font color="#073763">Sangoma Technologies</font></div><div><font color="#073763">Check us out at <a href="http://www.sangoma.com/" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org/" target="_blank">www.asterisk.org</a></font></div></div></div></div></div></div></div></div></div></div></div></div>