Re: ChanSpy / ConfBridge limitation
"Joshua C. Colp" <[email protected]> Mon, 15 Jan 2024 05:42:42 -0400
| Newsgroups | gmane.comp.telephony.pbx.asterisk.devel |
|---|---|
| Message-ID | <CAM0A2Z2g7DFRp+_cQns6qyBkfhBJHOhv6hUNpdpfSz38vgJrYQ@mail.gmail.com> |
--===============7602795199525495086==
Content-Type: multipart/alternative; boundary="0000000000007dd136060ef8d651"
--0000000000007dd136060ef8d651
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, Jan 14, 2024 at 9:10=E2=80=AFPM Mark Murawski <markm-lists@intellas=
oft.net>
wrote:
> Howdy -dev,
>
> Looking for a starting point to investigate this issue:
>
> Using the following AEL (and Running straight-dialplan results in the sam=
e
> issue)
>
> context services {
> 2802 =3D> {
> Answer();
> Set(GLOBAL(foo)=3D${CHANNEL});
> ConfBridge(Agent-PJSIP/2802);
> }
>
> 9000 =3D> {
> Answer();
> ChanSpy(${foo},qoSE);
> }
> }
>
> PJSIP/2802-00003b18 -> ConfBridge("Agent-PJSIP/2802")
> <CBAnn/Agent-PJSIP/2802-00000075;2> joined 'softmix' base-bridge <5697456=
4-b175-4b6a-93fc-fe4753082213>
> <PJSIP/2802-00003b18> joined 'softmix' base-bridge <56974564-b175-4b6a-93=
fc-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 PJS=
IP/trunk-bob-00003b19
>
>
> If for example, you change 2802 to the following:
>
> 2802 =3D> {
> Answer();
> Set(GLOBAL(foo)=3D${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 PJS=
IP/trunk-bob-00003b97
>
>
>
> One might say: Well, ChanSpy/ConfBridge don't mix... but then if you do t=
he following... this DOES work:
>
> context services {
> 2802 =3D> {
> Answer();
> Set(GLOBAL(foo)=3D${CHANNEL});
> ConfBridge(Agent-PJSIP/2802);
> }
>
> 9000 =3D> {
> 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 ConfBridg=
e
> (Cannot join the bridge as a member, because then you're getting all pa=
rticipants 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 ConfBrid=
ge
>
>
> Also:
> I tried ChanSpy()'ing into both CBAnn/...;1 and CBAnn/...;2 and I coul=
d 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 ?
>
>
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.
--=20
Joshua C. Colp
Director of Engineering | Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
--0000000000007dd136060ef8d651
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr">On Sun, Jan 14, 2024 at 9:10=E2=80=AFPM M=
ark Murawski <<a href=3D"mailto:[email protected]">markm-lists=
@intellasoft.net</a>> wrote:<br></div><div class=3D"gmail_quote"><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex"><u></u>
=20
=20
=20
<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=3D"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-deco=
ration-style:initial;text-decoration-color:initial;white-space:pre-wrap">co=
ntext services {
2802 =3D> {
Answer();
Set(GLOBAL(foo)=3D${CHANNEL});
ConfBridge(Agent-PJSIP/2802);
}
9000 =3D> {
Answer();
ChanSpy(${foo},qoSE);
}
}
PJSIP/2802-00003b18 -> ConfBridge("Agent-PJSIP/2802")
<CBAnn/Agent-PJSIP/2802-00000075;2> joined 'softmix' base-bri=
dge <56974564-b175-4b6a-93fc-fe4753082213>
<PJSIP/2802-00003b18> joined 'softmix' base-bridge <569745=
64-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 =3D> {
Answer();
Set(GLOBAL(foo)=3D${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&quo=
t;)
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:
=20
context services {
2802 =3D> {
Answer();
Set(GLOBAL(foo)=3D${CHANNEL});
ConfBridge(Agent-PJSIP/2802);
}
9000 =3D> {
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 Con=
fBridge
(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 co=
uld 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 audiohoo=
ks API is saying? Ultimately that's what is capturing the audio and mak=
ing it available for ChanSpy and it has no idea of ConfBridge or Dial or et=
c, so narrow down the issue to either the ChanSpy module itself or audiohoo=
ks, and then go from there. In a general sense from the available informati=
on I would say it is a bug, though I am aware that this has worked for othe=
r people without problem.</div></div><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"=
><div dir=3D"ltr"><div dir=3D"ltr"><div style=3D"font-family:tahoma,sans-se=
rif"><font color=3D"#073763">Joshua C. Colp</font></div><div style=3D"font-=
family:tahoma,sans-serif"><font color=3D"#073763">Director of Engineering |=
Asterisk Project Lead</font></div><div style=3D"font-family:tahoma,sans-se=
rif"><font color=3D"#073763">Sangoma Technologies</font></div><div style=3D=
"font-family:tahoma,sans-serif"><font color=3D"#073763">Check us out at <a =
href=3D"http://www.sangoma.com" target=3D"_blank">www.sangoma.com</a> and <=
a href=3D"http://www.asterisk.org" target=3D"_blank">www.asterisk.org</a></=
font><br></div></div></div></div></div></div></div></div></div></div></div>
--0000000000007dd136060ef8d651--
--===============7602795199525495086==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
LS0gCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwotLSBCYW5kd2lkdGggYW5kIENvbG9jYXRpb24gUHJvdmlkZWQgYnkg
aHR0cDovL3d3dy5hcGktZGlnaXRhbC5jb20gLS0KCmFzdGVyaXNrLWRldiBtYWlsaW5nIGxpc3QK
VG8gVU5TVUJTQ1JJQkUgb3IgdXBkYXRlIG9wdGlvbnMgdmlzaXQ6CiAgIGh0dHA6Ly9saXN0cy5k
aWdpdW0uY29tL21haWxtYW4vbGlzdGluZm8vYXN0ZXJpc2stZGV2
--===============7602795199525495086==--