Skip to content

Commit

Permalink
Increase voice conf length
Browse files Browse the repository at this point in the history
 We need to increase the length of the voice conference. If we have lots of meetings running,
 there is a high chance of collision.

 Need corresponding changes to FreeSWITCH dialplan.

 In bbb_echo_test.xml, change to `expression="^echo(\d{5,11})$"`.

 In bbb_conference.xml, change to `expression="^(\d{5,11})$"`.
  • Loading branch information
ritzalam committed Apr 24, 2020
1 parent d678b2a commit 79096d0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void exceptionCaught(ExceptionEvent e) {
private static final Pattern CALLERNAME_PATTERN = Pattern.compile("(.*)-bbbID-(.*)$");
private static final Pattern CALLERNAME_WITH_SESS_INFO_PATTERN = Pattern.compile("^(.*)_(\\d+)-bbbID-(.*)$");
private static final Pattern CALLERNAME_LISTENONLY_PATTERN = Pattern.compile("^(.*)_(\\d+)-bbbID-LISTENONLY-(.*)$");
private static final Pattern ECHO_TEST_DEST_PATTERN = Pattern.compile("^9196(\\d+)$");
private static final Pattern ECHO_TEST_DEST_PATTERN = Pattern.compile("^echo(\\d+)$");

@Override
public void conferenceEventJoin(String uniqueId, String confName, int confSize, EslEvent event) {
Expand Down Expand Up @@ -315,7 +315,7 @@ public void eventReceived(EslEvent event) {
String origCallerDestNumber = eventHeaders.get("Caller-Destination-Number");
String coreuuid = eventHeaders.get("Core-UUID");

//System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is in echo test " + origCallerDestNumber + " vbridge=" + varvBridge);
System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is in echo test " + origCallerDestNumber + " vbridge=" + varvBridge);

String voiceUserId = "";
String callerName = origCallerIdName;
Expand All @@ -334,7 +334,13 @@ public void eventReceived(EslEvent event) {
callerName = callerListenOnly.group(3).trim();
}

VoiceCallStateEvent csEvent = new VoiceCallStateEvent(varvBridge,
String conf = origCallerDestNumber;
Matcher callerDestNumberMatcher = ECHO_TEST_DEST_PATTERN.matcher(origCallerDestNumber);
if (callerDestNumberMatcher.matches()) {
conf = callerDestNumberMatcher.group(1).trim();
}

VoiceCallStateEvent csEvent = new VoiceCallStateEvent(conf,
coreuuid,
clientSession,
voiceUserId,
Expand All @@ -348,7 +354,7 @@ public void eventReceived(EslEvent event) {
String origCallerIdName = eventHeaders.get("Caller-Caller-ID-Name");
String origCallerDestNumber = eventHeaders.get("Caller-Destination-Number");
String coreuuid = eventHeaders.get("Core-UUID");
//System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is in ringing " + origCallerDestNumber + " vbridge=" + varvBridge);
System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is in ringing " + origCallerDestNumber + " vbridge=" + varvBridge);

String voiceUserId = "";
String callerName = origCallerIdName;
Expand All @@ -367,7 +373,13 @@ public void eventReceived(EslEvent event) {
callerName = callerListenOnly.group(3).trim();
}

VoiceCallStateEvent csEvent = new VoiceCallStateEvent(varvBridge,
String conf = origCallerDestNumber;
Matcher callerDestNumberMatcher = ECHO_TEST_DEST_PATTERN.matcher(origCallerDestNumber);
if (callerDestNumberMatcher.matches()) {
conf = callerDestNumberMatcher.group(1).trim();
}

VoiceCallStateEvent csEvent = new VoiceCallStateEvent(conf,
coreuuid,
clientSession,
voiceUserId,
Expand All @@ -386,7 +398,7 @@ public void eventReceived(EslEvent event) {
String origCallerIdName = eventHeaders.get("Caller-Caller-ID-Name");
String origCallerDestNumber = eventHeaders.get("Caller-Destination-Number");
String coreuuid = eventHeaders.get("Core-UUID");
//System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is hanging up " + origCallerDestNumber);
System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is hanging up " + origCallerDestNumber);

String voiceUserId = "";
String callerName = origCallerIdName;
Expand Down Expand Up @@ -426,7 +438,7 @@ public void eventReceived(EslEvent event) {
String origCallerIdName = eventHeaders.get("Caller-Caller-ID-Name");
String origCallerDestNumber = eventHeaders.get("Caller-Destination-Number");
String coreuuid = eventHeaders.get("Core-UUID");
//System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is ringing " + origCallerDestNumber);
System.out.println("******** uuid=" + coreuuid + " " + origCallerIdName + " is ringing " + origCallerDestNumber);

String voiceUserId = "";
String callerName = origCallerIdName;
Expand Down
4 changes: 2 additions & 2 deletions bigbluebutton-html5/private/config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public:
enableNetworkMonitoring: false
packetLostThreshold: 10
kurento:
wsUrl: HOST
wsUrl: wss://ritz-home22.blindside-dev.com/bbb-webrtc-sfu
chromeDefaultExtensionKey: akgoaoikmbmhcopjgakkcepdgdgkjfbc
chromeDefaultExtensionLink: https://chrome.google.com/webstore/detail/bigbluebutton-screenshare/akgoaoikmbmhcopjgakkcepdgdgkjfbc
chromeExtensionKey: KEY
Expand Down Expand Up @@ -174,7 +174,7 @@ public:
callTransferTimeout: 5000
callHangupTimeout: 2000
callHangupMaximumRetries: 10
echoTestNumber: '9196'
echoTestNumber: 'echo'
relayOnlyOnReconnect: false
presentation:
defaultPresentationFile: default.pdf
Expand Down

0 comments on commit 79096d0

Please sign in to comment.