| | |
| | | ListeningPoint udpListeningPoint = sipStack.createListeningPoint(sipConfig.getSipIp(), sipConfig.getSipPort(), "UDP");
|
| | | SipProvider udpSipProvider = sipStack.createSipProvider(udpListeningPoint);
|
| | | udpSipProvider.addSipListener(this);
|
| | | logger.info("Sip Server TCP 启动成功 port {" + sipConfig.getSipPort() + "}");
|
| | | logger.info("Sip Server UDP 启动成功 port {" + sipConfig.getSipPort() + "}");
|
| | | return udpSipProvider;
|
| | | }
|
| | |
|
| | |
| | | public void processResponse(ResponseEvent evt) {
|
| | | Response response = evt.getResponse();
|
| | | int status = response.getStatusCode();
|
| | | if ((status >= 200) && (status < 300)) { // Success!
|
| | | if (((status >= 200) && (status < 300)) || status == 401) { // Success!
|
| | | ISIPResponseProcessor processor = processorFactory.createResponseProcessor(evt);
|
| | | try {
|
| | | processor.process(evt, this, sipConfig);
|