Page 1 of 2
ConfBridge Beta support!
Posted:
Mon Aug 29, 2022 2:28 pm
by mflorell
We've recently added patches and documentation for ConfBridge support for VICIdial in Asterisk 16 and higher.
To test this, you will need to read the ConfBridge documentation, and upgrade your system to svn/trunk revision 3628 or higher,
https://www.vicidial.org/docs/ConfBridg ... tation.txtActivation of ConfBridge requires multiple manual steps, including patching existing VICIdial files, so it should be done by someone familiar with Linux command-line.
Please test it out if you are able to and post your results here!
Re: ConfBridge Beta support!
Posted:
Mon Aug 29, 2022 9:13 pm
by carpenox
I was able to get this working rather easily with matts notes. If anyone wants to test it out, go to
http://demo.dialer.one and login as an agent, the user i 0000 and the pass is demo
call yourself from the dialer.....no more bloop.
I will be creating an article for this sometime this week but if u have any questions, feel free to message me or stop by our skype live support channel which now has nearly 200 visitors and clients just chilling and helping each other out n shit, great vibes.
Chris
Re: ConfBridge Beta support!
Posted:
Sat Sep 03, 2022 9:43 pm
by carpenox
Here is the article I wrote for all of you guys to be able to get this done easily:
https://dialer.one/how-to-switch-vicidi ... onfbridge/Chris
Re: ConfBridge Beta support!
Posted:
Tue Sep 06, 2022 8:43 am
by mcargile
Please keep in mind that this is all still changing. As an example it was pointed out that I missed the RINGALL code. As the agent entering the conference for a RINGALL is neither a regular agent nor an admin user it makes sense to create a ConfBridge user profile and an extension for that entry as well. Please pay careful attention to the SVN commits and re-read through the documentation every time something is added to the ConfBridge section.
Re: ConfBridge Beta support!
Posted:
Thu Sep 15, 2022 4:54 am
by jamiemurray
I've been using this extensively and have discovered a few bugs all of which have been posted on the issue tracker most of them with fixes.
It seems there's been little movement this week, the guys must be busy so if you're using SVN 3638 you may be experiencing issues with some of the steps
Here's a list of pending issues as of 3638, with the suggested fixes.
1. Various stats don't reset with end of day process (eg. Agent call count on the realtime report).
Caused by typo on ADMIN_keepalive_ALL.pl patch - fix explained.
http://www.vicidial.org/VICIDIALmantis/view.php?id=13802. Agent API audio_playback broken.
Caused by typo on ADMIN_keepalive_ALL.pl patch - Updated Patch Provided
http://www.vicidial.org/VICIDIALmantis/view.php?id=13793. Blind monitor by manager causes entry/exit tones to play in conference.
Caused by the blind monitor profile having quiet=no set. Fix explained.
http://www.vicidial.org/VICIDIALmantis/view.php?id=13774. If in System Settings a custom login sound file is selected, the agent's phone doesn't ring on login.
Caused by vicidial.php switching to a context that was never set up for ConfBridge - No fix per say, but conf bridge allows you to change the only participant message relatively easily.
http://www.vicidial.org/VICIDIALmantis/view.php?id=1376
Re: ConfBridge Beta support!
Posted:
Thu Sep 15, 2022 5:32 am
by jamiemurray
Another one to add:
http://www.vicidial.org/VICIDIALmantis/view.php?id=1381The AST_conf_update_screen.pl script fails to authenticate with AMI due to a username mismatch.
Fixed with changing line 218 to:
- Code: Select all
$telnet_login = "$ASTmgrUSERNAME";
Re: ConfBridge Beta support!
Posted:
Fri Sep 16, 2022 8:13 am
by mflorell
I think we've fixed all of these issues(and a couple more we found this week) in the ConfBridge code and doc in svn/trunk revision 3640. Please update and test if possible.
Thank you very much for your work on this jamiemurray!
Re: ConfBridge Beta support!
Posted:
Fri Sep 16, 2022 9:40 am
by jamiemurray
You're more than welcome Matt.
I tested the fixes on a client who hasn't started yet, it all seems fine, the only one I didn't check yet is the Custom Login Sound due to time constraints before agents start logging in.
Re: ConfBridge Beta support!
Posted:
Mon Sep 19, 2022 6:09 am
by jamiemurray
Custom Login Sound is definately fixed too.
Re: ConfBridge Beta support!
Posted:
Mon Sep 19, 2022 7:51 am
by jamiemurray
Matt, is there anything else you are waiting on feedback for before including this in the standard code? I am happy to try out any remaining items to be checked to speed this process up.
Re: ConfBridge Beta support!
Posted:
Mon Sep 19, 2022 4:43 pm
by mflorell
I think we are pretty good on feature testing, but we would like to get as much data on capacity/load as possible. We also would like more feedback on anyone running ConfBridge with VICIdial on any kind of Virtual-Machine platform.
So, any details on what kind of per-dialer load you are running at(agents/calls/concurrent-calls/etc...) as well as what kind of hardware or VM platform you are using would be great!
Re: ConfBridge Beta support!
Posted:
Fri Sep 23, 2022 12:22 pm
by jamiemurray
Short lived for me so far. I've reverted to MeetMe after discovering a major audio issue with ConfBridge that I haven't quite managed to get pinned down.
We started getting random complaints about audio, those complaints when checked all had one thing in common, the customers were saying "you're breaking up", "every other word is cutting out" but on the recordings the agents (and customers) sound 100% fine with no audio issues apparent what so ever.
On our softswitch, MOS scores were all 4-4.5 for the calls reported, no/little packet loss and low latency/jitter.
After checking all carriers etc (examples provided also showed all carriers were affected), I tried doing a echo test via an external number via a phone on the system, that's fine. Then I tried it from a ConfBridge session (via dial override on the agent interface) and bingo, the audio on the other side when played back was terrible. I repeated the test with MeetMe and the issue isn't there.
I've read a few reports about bad audio on ConfBridge and it seems to be something to do with the mixing as far as I can see.
Agents are pretty much all on ulaw for their call to the ConfBridge.
Carriers mostly only connecting on alaw, with a handful of ulaw
Using chan_sip
No more than 15 agents per telephony server.
Load is always under 30%
I'm going to try a few experiments with codecs and different mixing and sampling settings to see if I can address it but just wondering if anyone got any ideas on where I should focus my efforts.
Asterisk 16.27.0-vici
SVN 3643
Original Install via ViciBox v.10.0.0 210901
Re: ConfBridge Beta support!
Posted:
Sat Sep 24, 2022 8:01 am
by mflorell
Thank you very much for the feedback!
I wonder if Asterisk 18, and/or using PJSIP instead of chan_sip would have any affect on this?
We have PJSIP support in Asterisk 16, and we've been testing Asterisk 18 compatibility, so it might be something else to try.
Re: ConfBridge Beta support!
Posted:
Sat Sep 24, 2022 8:18 am
by mcargile
@jamiemurray few questions:
What is the specific hardware are you running this on?
Is it virtualized?
Do you have physical DAHDI timers?
What does dahdi_test show when the audio is getting choppy?
To the best of my knowledge ConfBridge does not need a DAHDI timer, but the system over all benefits from having one. Basically it is pulling its timing from the underlying Asterisk timing system which will use the best timing source that is available. I do plan on getting clarification on this during AsteriskDev Con this year.
Re: ConfBridge Beta support!
Posted:
Wed Sep 28, 2022 7:41 am
by jamiemurray
mflorell wrote:Thank you very much for the feedback!
I wonder if Asterisk 18, and/or using PJSIP instead of chan_sip would have any affect on this?
We have PJSIP support in Asterisk 16, and we've been testing Asterisk 18 compatibility, so it might be something else to try.
I'll try PJSIP, also Asterisk 18 if that doesn't work. I do like the fact though asterisk is managed by zypper, it allows the automatic update script I have on the servers which automatically checks for updates to asterisk from your official repo and automatically performs svn updates overnight as well as applies any patches I've wrote to address specific setup requirements or bugs which haven't been resolved on official SVN version yet. Has the ast 18 you've been working with been made available on a zypper repo yet?
mcargile wrote:@jamiemurray few questions:
What is the specific hardware are you running this on?
Is it virtualized?
Do you have physical DAHDI timers?
What does dahdi_test show when the audio is getting choppy?
To the best of my knowledge ConfBridge does not need a DAHDI timer, but the system over all benefits from having one. Basically it is pulling its timing from the underlying Asterisk timing system which will use the best timing source that is available. I do plan on getting clarification on this during AsteriskDev Con this year.
This specific system is entirely virtual and has been working without incident on MeetMe with at times up to 20 agents per server although usually only around 15 per sever.
The 4 tel servers on this cluster all have the following resources:
AMD EPYC 2nd Gen. 8 cores.
16GB ECC RAM.
260GB NVMe SSD storage (no archiving done, recordings remain on the server for the required length of time the client is required by law to keep the calls).
QEMU based virtualization.
Bandwidth definately isn't an issue, there's around 3-4Gbps available up and down to each server, they also communicate internally via private vlan and are physically located in the same room but not the same host.
dahdi_test shows 99.9-100% during the calls where the customer leg is breaking up.
Some of the other things I saw around when googling, was playing around with mixing_interval depending on the codecs sometimes resolved the issue, so I'm going to attempt with 20 rather than 40 to see if that makes a difference.
Others have reported issues with dsp_drop_silence causing issues too.
It's strange how it's just on the carrier leg the audio from the conference is bad, if it's a internal phone or channel (such as recording), the audio is perfect.
Re: ConfBridge Beta support!
Posted:
Fri Sep 30, 2022 11:55 am
by carpenox
Re: ConfBridge Beta support!
Posted:
Thu Oct 13, 2022 9:03 am
by mcargile
Asterisk 18 is in very early testing. I have it compiled on my dev system and have had it place a few million simulated autodialed outbound calls to make sure it does not crash. That is it. I have not tested the AMI or AGI scripts to make sure they are working properly. I have not tested the agent interface. I have not tested manual dials, transfers, recordings, or a dozen other features. I dont even know if those autodialed calls have routed to where they are supposed to go. In other words I cannot promise that anything about Vicidial besides that it will place the calls to the customer is working properly.
I am attending AsteriskDevCon this year on October 24th and would like to be able to report to them about our ConfBridge experience. So if you could continue testing ConfBridge it would be greatly appreciated.
Re: ConfBridge Beta support!
Posted:
Sun Oct 16, 2022 9:52 am
by jamiemurray
I'm using it successfully on a few very small single server installations without issue but these machines are overkill for the load of the system if I'm being honest.
The ones I stopped using it on were clusters of 50 agents or more because of the issue I described above with the audio on the carrier leg.
I may try with just one server in a busy cluster, that way if the issue becomes too much and we can't get to the cause quickly, I can disable it as an agent server as a quick solution.
Re: ConfBridge Beta support!
Posted:
Sat Oct 22, 2022 6:36 am
by mcargile
So looking a bit further into the differences between ConfBridge and MeetMe I did find this post by Matt Jordon:
https://asteriskfaqs.org/2016/11/10/ast ... audio.htmlIt does look like ConfBridge uses the underlying timing interface provided by Asterisk to mix everything. Or at least it did in 2016. The priority of the timing interfaces in Asterisk are:
1. res_timing_timerfd.so
2. res_timing_kqueue.so (FreeBSD only)
3. res_timing_dahdi.so
4. res_timing_pthread.so
according to
https://wiki.asterisk.org/wiki/display/ ... Interfaces. What is interesting is that page says, "The only functionality that requires internal timing is IAX2 trunking." which kind of implies that ConfBridge doesn't use timing.
@jamiemurray can you please try adding:
noload => res_timing_timerfd.so
noload => res_timing_kqueue.so
noload => res_timing_pthread.so
to /etc/asterisk/modules.conf and see if ConfBridge behaves better? That should force Asterisk to only use the DAHDI timing interface which is what MeetMe is using for mixing the audio.
EDIT: I forgot the => in the modules.conf noloads.
Re: ConfBridge Beta support!
Posted:
Mon Oct 24, 2022 12:06 pm
by mcargile
So I have some bad news for ConfBridge on Virtualization. MeetMe does its audio mixing within the DAHDI driver. This means it gets done in kernel space. ConfBridge does its audio mixing in the Asterisk Bridge mechanism which is done is user space. As such on a Virtual Machine MeetMe is operating just one step above the hypervisor where as ConfBridge is operating two steps above the hypervisor. This means the ConfBridge is going to be considerably more impacted by performance on VMs than MeetMe.
EDIT: The Digium developers did say that the underlying Bridge mechanism in Asterisk used by things like ConfBridge and ARI Bridging is "pluggable" meaning the audio mixing COULD be offloaded to the DAHDI Driver like MeetMe, but it currently does not do that.
Re: ConfBridge Beta support!
Posted:
Tue Oct 25, 2022 10:52 am
by mcargile
@jamiemurray
The Asterisk developers recommended changing the ConfBridge mixing_interval to 20 from 40 and recommended switching over to res_timing_dahdi.so for the system timing.
With the mixing_interval set to 40ms, ConfBridge will send out two 20ms RTP packets at the same time every 40ms. This has been known to confuse some SIP endpoints and media gateways they are not buffering the audio properly. Especially if packets are arriving out of order. With the interval set to 20ms it is sending out one 20ms RTP packet every 20ms. This spaces them out which makes it less likely that the packets will arrive at the destination out of order.
res_timing_timerfd.so which is the default Asterisk timing interface can fail to trigger when Asterisk forks off a new thread. AGI scripts which Vicidial uses heavily forks off a new thread every time they get executed. res_timing_dahdi.so should not do that.
These two changes SHOULD make ConfBridge more consistent on physical servers that are not overloaded. One Virtual Machines or overloaded physical servers there is still a good chance that ConfBridge will have audio issues. As I said in my previous post MeetMe does its audio mixing inside the DAHDI kernel driver. This means the audio mixing is done in Kernel space and as such is done at a higher priority. ConfBridge does its mixing in user space. This means that it is less likely to work consistently when overloaded or when other VMs on the same hypervisor need execution time.
We are currently waiting to hear back from Sangoma about what it would cost to get the Asterisk Bridging mechanism used by ConfBridge and the ARI bridging system to use DAHDI for mixing.
Re: ConfBridge Beta support!
Posted:
Wed Oct 26, 2022 8:57 am
by jamiemurray
Trying this out today on the client that had the most issues with it. I'm sure I'll find out within 30 minutes of them dialing if it's successful or not. They start around 11am eastern, will post updates as soon as I know for sure.
Re: ConfBridge Beta support!
Posted:
Wed Oct 26, 2022 10:49 am
by jamiemurray
So far so good with 40 agents, another 15 agents start at 1pm eastern so will see if it continues then.
Re: ConfBridge Beta support!
Posted:
Wed Oct 26, 2022 11:16 am
by mcargile
How many agents per tel server?
Re: ConfBridge Beta support!
Posted:
Wed Oct 26, 2022 12:44 pm
by jamiemurray
3 tel servers, 19 on one, 18 on each of the other 2. All still going well so far.
Re: ConfBridge Beta support!
Posted:
Thu Oct 27, 2022 3:49 am
by jamiemurray
The day completed without any complaints about audio quality. test calls throughout the day were all fine too, so looking like those few changes have resolved the issue for me!
Re: ConfBridge Beta support!
Posted:
Wed Nov 02, 2022 11:21 am
by mcargile
Still working well?
Re: ConfBridge Beta support!
Posted:
Wed Nov 02, 2022 2:17 pm
by jamiemurray
Yes, it's been in production on all my clients' systems since then and no complaints about audio except for today on a new setup.
I discovered though fail2ban was causing high usage on one server and eventually started causing packet loss, stopping f2b for now has resolved it.
Re: ConfBridge Beta support!
Posted:
Thu Nov 03, 2022 1:14 am
by okli
jamiemurray wrote:Yes, it's been in production on all my clients' systems since then and no complaints about audio except for today on a new setup.
Thanks for sharing your experience!
Is this in virtual servers with same specs you posted earlier or physical servers?
Re: ConfBridge Beta support!
Posted:
Thu Nov 03, 2022 2:37 pm
by jamiemurray
Working well on both physical and virtual, I will say however that virtual varies widely depending on the hardware used and config of the hypervisor. But my busiest entirely virtual cluster has 8 telephony servers with up to 20 agents per server, 100% recording and up to dial level 10, AMD, and I finally switched that one over a few days after I was happy the timing issue had been resolved and never looked back yet.
Re: ConfBridge Beta support!
Posted:
Tue Feb 28, 2023 3:42 am
by martinch
Thanks mcargile and mflorell for the hard work on this!
There appears to be a small bug in
extras\ConfBridge\vicidial.php.diff specifically here;
- Code: Select all
+ ##### figure out which table to look for conferences in
+ $stmt="SELECT conf_engine from servers where server_ip = '$rowx[0]';";
+ if ($DB) {echo "|$stmt|\n";}
+ $rslt=mysql_to_mysqli($stmt, $link);
+ $row=mysqli_fetch_row($rslt);
+ $conf_engine = $row[3]; // <-------------------------------------------- shouldn't this be $row[0]?
+ $conf_table = "vicidial_conferences";
+ if ( $conf_engine == "CONFBRIDGE" ) { $conf_table = "vicidial_confbridges"; }
I haven't noticed any issues in my specific setup though but thought I'd flag before it gets published into the trunk.
Thanks all,
Martin.
Re: ConfBridge Beta support!
Posted:
Tue Feb 28, 2023 7:15 am
by mflorell
Thanks for reporting! We'll take a look at that today.
Re: ConfBridge Beta support!
Posted:
Tue Feb 28, 2023 8:37 am
by mflorell
This has been fixed in svn/trunk revision 3691.
Thanks again!
Re: ConfBridge Beta support!
Posted:
Thu Mar 02, 2023 11:27 am
by hbondoc0988
Hey Matt, what the issue on patch when I try to do the patch got failed.. when I try to work on confbridg.. how to apply patch of every file?
Re: ConfBridge Beta support!
Posted:
Thu Mar 02, 2023 11:35 am
by hbondoc0988
patch -p0 < vicidial.php.diff
patching file vicidial.php
Hunk #1 succeeded at 3591 (offset 145 lines).
Hunk #2 succeeded at 3615 (offset 145 lines).
Hunk #3 succeeded at 3799 (offset 146 lines).
Hunk #4 succeeded at 3826 (offset 146 lines).
Hunk #5 succeeded at 3846 (offset 146 lines).
Hunk #6 succeeded at 3963 (offset 146 lines).
Hunk #7 succeeded at 3981 (offset 146 lines).
Hunk #8 succeeded at 4164 (offset 163 lines).
Hunk #9 FAILED at 23106.
1 out of 9 hunks FAILED -- saving rejects to file vicidial.php.rej
Re: ConfBridge Beta support!
Posted:
Fri Mar 03, 2023 7:23 am
by mflorell
Depending on the svn/trunk revision you are patching, the last Hunk of the vicidial.php patch file may or may not be needed, since it is actually something that was fixed in the regular codebase. You can safely ignore that warning.
Re: ConfBridge Beta support!
Posted:
Wed Mar 08, 2023 1:41 pm
by hbondoc0988
Thank you Matt.
I wan tto apply this on cluster to I need to add this to all server
To enable this screen session you need to add a 'C' to the 'VARactive_keepalives' variable in the '/etc/astguiclient.conf' on your dialers, and comment out the following line from your crontab: ??
Re: ConfBridge Beta support!
Posted:
Wed Mar 08, 2023 4:01 pm
by mflorell
You can use ConfBridge on only one dialer in a multi-dialer cluster if you want to.
Re: ConfBridge Beta support!
Posted:
Wed Mar 29, 2023 10:44 am
by martinch
Hey mflorell and mcargile,
I've done some testing using the Beta and it worked well for me personally. My callouts;
- I had problems with
- Code: Select all
mixing_interval=40
but had success with
- Code: Select all
mixing_interval=10
and
- Code: Select all
mixing_interval=20
. I was contemplating a patch into the Asterisk source code that allows mixing_interval to go down to as low as 5ms but Asterisk guys advised me that the benefits would be negligible the lower the value gets.
- I initially tested on a single core virtual machine and the there was noticeable jitter and artefacts.
- I tested on a better box with a quad-core CPU and things were much better. You'll start getting artefacts as you go up in concurrent calls but you'll be fine with 30 or 40 agents.
From the code side, there's no callouts from me apart from the bug in vicidial.php which has now been patched.
Thanks guys,
Martin.
Re: ConfBridge Beta support!
Posted:
Mon Nov 27, 2023 10:48 am
by dreedy
Has anyone noticed an issue with DTMF and confBridge?
I have the setting on the carrier as this.
dtmf=mode=rfc2833 , i have also tried "auto", and "inband"
I see that it sends the digit on the cli but the connecting IVR i am trying to navigate does not receive this digit.