<div dir="ltr"><div dir="ltr">On Sun, Jan 14, 2024 at 9:10 PM Mark Murawski <<a href="mailto:markm-lists@intellasoft.net">markm-lists@intellasoft.net</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"><u></u>
<div>
Howdy -dev,<br>
<br>
Looking for a starting point to investigate this issue:<br>
<br>
Using the following AEL (and Running straight-dialplan results in
the same issue)<br>
<br>
<pre style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;white-space:pre-wrap">context services {
2802 => {
Answer();
Set(GLOBAL(foo)=${CHANNEL});
ConfBridge(Agent-PJSIP/2802);
}
9000 => {
Answer();
ChanSpy(${foo},qoSE);
}
}
PJSIP/2802-00003b18 -> ConfBridge("Agent-PJSIP/2802")
<CBAnn/Agent-PJSIP/2802-00000075;2> joined 'softmix' base-bridge <56974564-b175-4b6a-93fc-fe4753082213>
<PJSIP/2802-00003b18> joined 'softmix' base-bridge <56974564-b175-4b6a-93fc-fe4753082213>
PJSIP/trunk-bob-00003b19 -> ChanSpy("PJSIP/2802-00003b18,qoSE")
Spying on channel PJSIP/2802-00003b18
Attaching spy channel PJSIP/trunk-bob-00003b19 to PJSIP/2802-00003b18
Issue:
No audio is flowing from Spied-on PJSIP/2802-00003b18 to the spy-er PJSIP/trunk-bob-00003b19
If for example, you change 2802 to the following:
2802 => {
Answer();
Set(GLOBAL(foo)=${CHANNEL});
Dial(PJSIP/2803);
}
Wait for the call to connect/answer
PJSIP/2802-00003b20 -> PJSIP/2803-00003b5d (callee answered)
And then run the same ChanSpy with options qoSE, resulting in:
PJSIP/trunk-bob-00003b97 -> ChanSpy("PJSIP/2802-00003b20,qoSE")
Attaching spy channel PJSIP/trunk-bob-00003b97 to PJSIP/2802-00003b20
Result:
Audio IS flowing from spied-on PJSIP/2802-00003b20 to the spy-er on PJSIP/trunk-bob-00003b97
One might say: Well, ChanSpy/ConfBridge don't mix... but then if you do the following... this DOES work:
context services {
2802 => {
Answer();
Set(GLOBAL(foo)=${CHANNEL});
ConfBridge(Agent-PJSIP/2802);
}
9000 => {
Answer();
ChanSpy(${foo},qwSE);
}
}
Changing the option from 'o' to 'w', allows you to whisper to PJSIP/2802
----
Goal:
Extract out an individual speaker's audio that's going into a ConfBridge
(Cannot join the bridge as a member, because then you're getting all participants audio)
Summary:
1) You can whisper to a channel that joined a ConfBridge
2) You cannot listen to the audio from a channel that joined a ConfBridge
Also:
I tried ChanSpy()'ing into both CBAnn/...;1 and CBAnn/...;2 and I could not get audio from here either
Is this a bug or a limitation/missing-feature?
What would be a good place to look into for resolving #2 ?<br></pre></div></blockquote><div><br></div><div>So what is the actual state of the channel and ConfBridge at that point in time? You haven't really clarified that in this email at all. Is it listening to music on hold? Is there no other channel present? Have you looked at the core debug to see what the audiohooks API is saying? Ultimately that's what is capturing the audio and making it available for ChanSpy and it has no idea of ConfBridge or Dial or etc, so narrow down the issue to either the ChanSpy module itself or audiohooks, and then go from there. In a general sense from the available information I would say it is a bug, though I am aware that this has worked for other people without problem.</div></div><div><br></div><span class="gmail_signature_prefix">-- </span><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"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Director of Engineering | Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><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><br></div></div></div></div></div></div></div></div></div></div></div>