<div dir="ltr"><div dir="ltr">On Thu, Oct 27, 2022 at 4:29 AM Fridrich Maximilian <<a href="mailto:M.Fridrich@commend.com">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 class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Now we want to play an audio file to the incoming PJSIP channel while still<br>
receiving audio from that PJSIP channel. Calling the /play endpoint on the<br>
channel stopped the incoming audio and calling /play on the bridge would play<br>
the audio to the externalMedia channel as well, so this is not an option.<br>
<br>
We tried creating a snoop channel on the incoming PJSIP channel and then calling<br>
the /play endpoint on the snoop channel, but no outgoing audio was transmitted<br>
to the PJSIP channel.<br>
<br>
Are we doing something wrong? Surely there has to be a way to play an audio file<br>
to a channel without blocking its incoming audio (and without having to stream<br>
the media).<br>
<br>
Thanks,<br>
Max<br>
<br>
_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
</blockquote></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>