Merge branch 'refs/heads/master' into dev/abl支持

dev/abl支持
panlinlin 2024-06-14 00:04:04 +08:00
commit b034faad62
1 changed files with 6 additions and 0 deletions

View File

@ -142,6 +142,9 @@ public class SipLayer implements CommandLineRunner {
if (ObjectUtils.isEmpty(ip)) {
return null;
}
if (udpSipProviderMap.size() == 1) {
return udpSipProviderMap.values().stream().findFirst().get();
}
return udpSipProviderMap.get(ip);
}
@ -163,6 +166,9 @@ public class SipLayer implements CommandLineRunner {
if (ObjectUtils.isEmpty(ip)) {
return null;
}
if (tcpSipProviderMap.size() == 1) {
return tcpSipProviderMap.values().stream().findFirst().get();
}
return tcpSipProviderMap.get(ip);
}