sipStack.sipEventInterceptor.beforeMessage(messagesForCallID.peek());
}
try {
semaphore.acquire();
} catch (InterruptedException e) {
stackLogger.logError("Semaphore acquisition for callId " + callId + " interrupted", e);
}
// once acquired we get the first message to process
SIPMessage message = messagesForCallID.poll();
if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
stackLogger.logDebug("semaphore acquired for message " + message);