| | |
| | | import org.springframework.boot.CommandLineRunner;
|
| | | import org.springframework.core.annotation.Order;
|
| | | import org.springframework.stereotype.Component;
|
| | | import org.springframework.util.ObjectUtils;
|
| | |
|
| | | import javax.sip.*;
|
| | | import java.util.*;
|
| | |
| | | }
|
| | |
|
| | | public SipProviderImpl getUdpSipProvider(String ip) {
|
| | | if (ObjectUtils.isEmpty(ip)) {
|
| | | return null;
|
| | | }
|
| | | return udpSipProviderMap.get(ip);
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | public SipProviderImpl getTcpSipProvider(String ip) {
|
| | | if (ObjectUtils.isEmpty(ip)) {
|
| | | return null;
|
| | | }
|
| | | return tcpSipProviderMap.get(ip);
|
| | | }
|
| | | }
|