去除多余引入

This commit is contained in:
648540858 2022-10-18 14:37:33 +08:00
parent dd986dcbdd
commit d439ab7202
4 changed files with 4 additions and 20 deletions

View File

@ -20,6 +20,10 @@ import javax.sip.message.Request;
import javax.sip.message.Response;
import java.text.ParseException;
/**
* 发送SIP消息
* @author lin
*/
@Component
public class SIPSender {

View File

@ -52,14 +52,6 @@ public class SIPRequestHeaderProvider {
@Autowired
private VideoStreamSessionManager streamSession;
@Autowired
@Qualifier(value="tcpSipProvider")
private SipProviderImpl tcpSipProvider;
@Autowired
@Qualifier(value="udpSipProvider")
private SipProviderImpl udpSipProvider;
public Request createMessageRequest(Device device, String content, String viaTag, String fromTag, String toTag, CallIdHeader callIdHeader) throws ParseException, InvalidArgumentException, PeerUnavailableException {
Request request = null;
// sipuri

View File

@ -41,14 +41,6 @@ public abstract class SIPRequestProcessorParent {
private final static Logger logger = LoggerFactory.getLogger(SIPRequestProcessorParent.class);
@Autowired
@Qualifier(value="tcpSipProvider")
private SipProviderImpl tcpSipProvider;
@Autowired
@Qualifier(value="udpSipProvider")
private SipProviderImpl udpSipProvider;
@Autowired
private SIPSender sipSender;

View File

@ -62,10 +62,6 @@ public class InviteResponseProcessor extends SIPResponseProcessorAbstract {
@Autowired
private SIPRequestHeaderProvider headerProvider;
@Autowired
@Qualifier(value="udpSipProvider")
private SipProviderImpl udpSipProvider;
@Override
public void afterPropertiesSet() throws Exception {