Class SipProcessorObserver

java.lang.Object
io.github.lunasaw.sip.common.transmit.SipProcessorObserver
All Implemented Interfaces:
EventListener, javax.sip.SipListener

@Component public class SipProcessorObserver extends Object implements javax.sip.SipListener
SIP信令处理类观察者
Author:
luna
  • Constructor Details

    • SipProcessorObserver

      public SipProcessorObserver()
  • Method Details

    • addRequestProcessor

      public static void addRequestProcessor(String method, SipRequestProcessor processor)
      添加 request订阅
      Parameters:
      method - 方法名
      processor - 处理程序
    • addResponseProcessor

      public static void addResponseProcessor(String method, SipResponseProcessor processor)
      添加 response订阅
      Parameters:
      method - 方法名
      processor - 处理程序
    • addTimeoutProcessor

      public static void addTimeoutProcessor(String method, ITimeoutProcessor processor)
      添加 超时事件订阅
      Parameters:
      processor - 处理程序
    • processRequest

      public void processRequest(javax.sip.RequestEvent requestEvent)
      分发RequestEvent事件
      Specified by:
      processRequest in interface javax.sip.SipListener
      Parameters:
      requestEvent - RequestEvent事件
    • processResponse

      public void processResponse(javax.sip.ResponseEvent responseEvent)
      分发ResponseEvent事件
      Specified by:
      processResponse in interface javax.sip.SipListener
      Parameters:
      responseEvent - responseEvent事件
    • processTimeout

      public void processTimeout(javax.sip.TimeoutEvent timeoutEvent)
      向超时订阅发送消息
      Specified by:
      processTimeout in interface javax.sip.SipListener
      Parameters:
      timeoutEvent - timeoutEvent事件
    • processIOException

      public void processIOException(javax.sip.IOExceptionEvent exceptionEvent)
      Specified by:
      processIOException in interface javax.sip.SipListener
    • processTransactionTerminated

      public void processTransactionTerminated(javax.sip.TransactionTerminatedEvent timeoutEvent)
      事物结束
      Specified by:
      processTransactionTerminated in interface javax.sip.SipListener
      Parameters:
      timeoutEvent - -- an event that indicates that the transaction has transitioned into the terminated state.
    • processDialogTerminated

      public void processDialogTerminated(javax.sip.DialogTerminatedEvent dialogTerminatedEvent)
      会话结束
      Specified by:
      processDialogTerminated in interface javax.sip.SipListener
      Parameters:
      dialogTerminatedEvent - -- an event that indicates that the dialog has transitioned into the terminated state.