Interface SipRequestStrategy

All Known Implementing Classes:
AbstractSipRequestStrategy, AckRequestStrategy, ByeRequestStrategy, InfoRequestStrategy, InviteRequestStrategy, MessageRequestStrategy, NotifyRequestStrategy, RegisterRequestStrategy, SubscribeRequestStrategy

public interface SipRequestStrategy
SIP请求发送策略接口 定义通用的请求发送模式,支持不同的请求类型
Author:
lin
  • Method Details

    • sendRequest

      String sendRequest(FromDevice fromDevice, ToDevice toDevice, String content, Event errorEvent, Event okEvent)
      发送请求
      Parameters:
      fromDevice - 发送方设备
      toDevice - 接收方设备
      content - 请求内容
      errorEvent - 错误事件处理器
      okEvent - 成功事件处理器
      Returns:
      呼叫ID
    • sendRequest

      String sendRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId, Event errorEvent, Event okEvent)
      发送请求
      Parameters:
      fromDevice - 发送方设备
      toDevice - 接收方设备
      content - 请求内容
      callId - 呼叫ID
      errorEvent - 错误事件处理器
      okEvent - 成功事件处理器
      Returns:
      呼叫ID
    • sendRequestWithSubscribe

      String sendRequestWithSubscribe(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId, Event errorEvent, Event okEvent)
      发送带订阅信息的请求
      Parameters:
      fromDevice - 发送方设备
      toDevice - 接收方设备
      content - 请求内容
      subscribeInfo - 订阅信息
      callId - 呼叫ID
      errorEvent - 错误事件处理器
      okEvent - 成功事件处理器
      Returns:
      呼叫ID
    • sendRequestWithSubject

      default String sendRequestWithSubject(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId, Event errorEvent, Event okEvent)
      发送带主题的请求
      Parameters:
      fromDevice - 发送方设备
      toDevice - 接收方设备
      content - 请求内容
      subject - 主题
      callId - 呼叫ID
      errorEvent - 错误事件处理器
      okEvent - 成功事件处理器
      Returns:
      呼叫ID