修复未配置sipdomain时出现异常
This commit is contained in:
parent
b3d21c7452
commit
3d68b56bb5
@ -38,7 +38,8 @@ public class SSRCFactory {
|
||||
|
||||
|
||||
public void initMediaServerSSRC(String mediaServerId, Set<String> usedSet) {
|
||||
String ssrcPrefix = sipConfig.getDomain().substring(3, 8);
|
||||
String sipDomain = sipConfig.getDomain();
|
||||
String ssrcPrefix = sipDomain.length() >= 8 ? sipDomain.substring(3, 8) : sipDomain;
|
||||
String redisKey = SSRC_INFO_KEY + userSetting.getServerId() + "_" + mediaServerId;
|
||||
List<String> ssrcList = new ArrayList<>();
|
||||
for (int i = 1; i < MAX_STREAM_COUNT; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user