[Home]

Summary:ASTERISK-29760: app_chanspy: Barge not supported when channel in a ConfBridge
Reporter:Dennis Haney (CineCine)Labels:webrtc
Date Opened:2021-11-19 00:11:44.000-0600Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:Applications/app_chanspy Applications/app_confbridge
Versions:18.7.1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Linux asteriskcloudpjsip 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux Attachments:( 0) full_2.zip
Description:We are using chanspy to listen in on a channel connected to a confbridge.
Spy and Whisper mode works just fine, but we have been unable to get other participants to hear the spy after pressing 6.

[overhear]
exten => s,1,UserEvent(Overhearing,OverhearedChannel: ${OverhearedChannel})
exten => s,n,ChanSpy(${OverhearedChannel},Eqdv(4)x(9))

confbridge.conf:
[general]
; --- ConfBridge User Profile Options ---

[default_user]
type=user

[A]
type=user
quiet=yes
marked=yes
music_on_hold_when_empty=yes
music_on_hold_class=default
dtmf_passthrough=yes
announce_only_user=no
dsp_drop_silence=yes
jitterbuffer=yes
denoise=yes
announce_user_count=no

[B]
type=user
quiet=yes
end_marked=yes
music_on_hold_when_empty=no
dtmf_passthrough=no
announce_only_user=no
dsp_drop_silence=yes
jitterbuffer=yes
denoise=yes
announce_user_count=no

; --- ConfBridge Bridge Profile Options ---
[default_bridge]
type=bridge
mixing_interval=10


pjsip.conf for A endpoint
disallow=all
webrtc=yes
allow=opus,alaw,ulaw
rtp_keepalive=2
rtp_timeout=10
allow_transfer=no

Running asterisk at high debugging level shows tons of these messages while chanspy'ing:
[Nov 17 11:02:29] DEBUG[38229] audiohook.c: Read factory 0x7f0ca800b648 and write factory 0x7f0ca800c088 both fail to provide 160 samples
[Nov 17 11:02:29] DEBUG[38229] audiohook.c: Failed to get 160 samples from read factory 0x7f0ca800b648
[Nov 17 11:02:29] DEBUG[38229] audiohook.c: Read factory 0x7f0ca800b648 and write factory 0x7f0ca800c088 both fail to provide 160 samples
[Nov 17 11:02:29] DEBUG[38379][C-00000005] translate.c: Sample size different 960 vs 160

But can hear things just fine, so doesn't seem like a real problem.

There are no log entries at any level of debugging that shows anything about barge mode (or any of the other modes) being engaged.
Comments:By: Asterisk Team (asteriskteam) 2021-11-19 00:11:45.846-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Joshua C. Colp (jcolp) 2021-11-19 04:26:16.023-0600

We require additional debug to continue with triage of your issue. Please follow the instructions on the wiki [1] for how to collect debugging information from Asterisk. For expediency, where possible, attach the debug with a '.txt' file extension so that the debug will be usable for further analysis.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information



By: Asterisk Team (asteriskteam) 2021-12-03 12:00:01.030-0600

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines

By: Dennis Haney (CineCine) 2021-12-07 01:12:17.022-0600

Sorry, this took a while.
Is this enough information for you?

By: Asterisk Team (asteriskteam) 2021-12-07 01:12:17.451-0600

This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable.

By: Dennis Haney (CineCine) 2021-12-07 01:15:31.191-0600

Additionally, users in the field are reporting that sometimes they are able to hear when they are being overheard, with the sound of the overhearer coming through at very low volume even in the default mode. I.E. it has a very low volume whisper mode going on, even in the mode it should have whisper/barge at all.

By: Joshua C. Colp (jcolp) 2021-12-07 04:08:36.524-0600

You're going to need to elaborate on the last comment. If spying, then no audio is injected at all.

By: Joshua C. Colp (jcolp) 2021-12-07 04:13:35.872-0600

As well, looking at the way barging works it is not supported when a channel is in a ConfBridge. It is currently only available when a channel is talking to another single channel in a normal fashion.

By: Dennis Haney (CineCine) 2021-12-07 23:12:08.559-0600

> As well, looking at the way barging works it is not supported when a channel is in a ConfBridge.
That is really weird, since it occasionally work.
Also really weird, is that using Chanspy to inject audio into precisely what a lot of posts mention when googling for Chanspy and confbridge.

> If spying, then no audio is injected at all.
Found that problem. Turned out colleague had accidentally added the B flag on the Chanspy to production, since we had it in test after trying to get barge mode to work :(


By: Joshua C. Colp (jcolp) 2021-12-08 04:41:38.511-0600

If you're doing it to a Local channel in the following scenario:

PJSIP/alice <-> Local/1;1, Local/1;2 <-> ConfBridge

Where barge is occurring on Local/1;1 or PJSIP/alice then it would work. But if it was activated on Local/1;2 it would not work.