| | |
| | | |
| | | @Override |
| | | public void process(RequestEvent evt) { |
| | | try { |
| | | taskQueue.offer(new HandlerCatchData(evt, null, null)); |
| | | ServerTransaction serverTransaction = getServerTransaction(evt); |
| | | try { |
| | | responseAck(serverTransaction, Response.OK); |
| | | }catch (SipException | InvalidArgumentException | ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | taskQueue.offer(new HandlerCatchData(evt, null, null)); |
| | | if (!taskQueueHandlerRun) { |
| | | taskQueueHandlerRun = true; |
| | | taskExecutor.execute(()-> { |
| | |
| | | } |
| | | taskQueueHandlerRun = false; |
| | | }); |
| | | } |
| | | } catch (SipException | InvalidArgumentException | ParseException e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | taskQueueHandlerRun = false; |
| | | } |
| | | } |
| | | |