Merge pull request #4357 from ritzalam/identify-phone-caller

- indicate thru the userId that a user is calling through the phone.
This commit is contained in:
Richard Alam 2017-09-03 20:43:19 -04:00 committed by GitHub
commit 9fb26b5694

View File

@ -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);
}