Skip to content

Commit

Permalink
Use the incoming endpointServiceId
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Mar 13, 2021
1 parent 40fe8d3 commit a7d809a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/io/antmedia/rest/RestServiceBase.java
Expand Up @@ -631,8 +631,12 @@ public Result addEndpoint(String id, Endpoint endpoint) {
String message = null;

endpoint.setType(ENDPOINT_GENERIC);
//generate custom endpoint invidual ID
String endpointServiceId = "custom"+RandomStringUtils.randomAlphabetic(6);

String endpointServiceId = endpoint.getEndpointServiceId();
if (endpointServiceId == null || endpointServiceId.isEmpty()) {
//generate custom endpoint invidual ID
endpointServiceId = "custom"+RandomStringUtils.randomAlphabetic(6);
}
endpoint.setEndpointServiceId(endpointServiceId);


Expand Down

0 comments on commit a7d809a

Please sign in to comment.