Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
bf80c107
Commit
bf80c107
authored
5 years ago
by
Richard Alam
Browse files
Options
Downloads
Patches
Plain Diff
- parse userid properly
parent
7911d2b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
akka-bbb-fsesl/src/main/java/org/bigbluebutton/freeswitch/voice/freeswitch/actions/GetUsersStatusCommand.java
+9
-0
9 additions, 0 deletions
...witch/voice/freeswitch/actions/GetUsersStatusCommand.java
with
9 additions
and
0 deletions
akka-bbb-fsesl/src/main/java/org/bigbluebutton/freeswitch/voice/freeswitch/actions/GetUsersStatusCommand.java
+
9
−
0
View file @
bf80c107
...
...
@@ -22,6 +22,7 @@ import java.util.regex.Pattern;
public
class
GetUsersStatusCommand
extends
FreeswitchCommand
{
private
static
Logger
log
=
LoggerFactory
.
getLogger
(
GetUsersStatusCommand
.
class
);
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
GLOBAL_AUDION_PATTERN
=
Pattern
.
compile
(
"(GLOBAL_AUDIO)_(.*)$"
);
public
GetUsersStatusCommand
(
String
room
,
String
requesterId
)
{
...
...
@@ -73,11 +74,18 @@ public class GetUsersStatusCommand extends FreeswitchCommand {
String
callerIdName
=
member
.
getCallerIdName
();
String
voiceUserId
=
callerIdName
;
String
uuid
=
member
.
getUUID
();
String
clientSession
=
"0"
;
Matcher
gapMatcher
=
GLOBAL_AUDION_PATTERN
.
matcher
(
callerIdName
);
// Ignore GLOBAL_AUDIO user.
if
(!
gapMatcher
.
matches
())
{
Matcher
matcher
=
CALLERNAME_PATTERN
.
matcher
(
callerIdName
);
Matcher
callWithSess
=
CALLERNAME_WITH_SESS_INFO_PATTERN
.
matcher
(
callerIdName
);
if
(
callWithSess
.
matches
())
{
voiceUserId
=
callWithSess
.
group
(
1
).
trim
();
clientSession
=
callWithSess
.
group
(
2
).
trim
();
callerIdName
=
callWithSess
.
group
(
3
).
trim
();
}
else
if
(
matcher
.
matches
())
{
voiceUserId
=
matcher
.
group
(
1
).
trim
();
callerIdName
=
matcher
.
group
(
2
).
trim
();
...
...
@@ -85,6 +93,7 @@ public class GetUsersStatusCommand extends FreeswitchCommand {
log
.
info
(
"Conf user. uuid="
+
uuid
+
",caller="
+
callerIdName
+
",clientSession="
+
clientSession
+
",callerId="
+
callerId
+
",conf="
+
room
+
",muted="
+
member
.
getMuted
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment