From 33e1cb0b4f8976bcdd1f667b996e97135627ca82 Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Fri, 1 Sep 2017 12:06:38 -0700 Subject: [PATCH] - indicate thru the userId that a user is calling through the phone. --- .../freeswitch/voice/freeswitch/ESLEventListener.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/akka-bbb-fsesl/src/main/java/org/bigbluebutton/freeswitch/voice/freeswitch/ESLEventListener.java b/akka-bbb-fsesl/src/main/java/org/bigbluebutton/freeswitch/voice/freeswitch/ESLEventListener.java index cc2685db5a..b3ef985beb 100755 --- a/akka-bbb-fsesl/src/main/java/org/bigbluebutton/freeswitch/voice/freeswitch/ESLEventListener.java +++ b/akka-bbb-fsesl/src/main/java/org/bigbluebutton/freeswitch/voice/freeswitch/ESLEventListener.java @@ -74,9 +74,13 @@ public class ESLEventListener implements IEslEventListener { if (matcher.matches()) { voiceUserId = matcher.group(1).trim(); callerIdName = matcher.group(2).trim(); + } else { + // This is a caller using phone. Let's create a userId that will allow + // us to identify the user as such in other parts of the system. + // (ralam - sept 1, 2017) + voiceUserId = "v_" + memberId.toString(); } - VoiceUserJoinedEvent pj = new VoiceUserJoinedEvent(voiceUserId, memberId.toString(), confName, callerId, callerIdName, muted, speaking, "none"); conferenceEventListener.handleConferenceEvent(pj); }