Class SipRequestProvider

java.lang.Object
io.github.lunasaw.sip.common.transmit.request.SipRequestProvider

public class SipRequestProvider extends Object
Sip命令request创造器
  • Constructor Details

    • SipRequestProvider

      public SipRequestProvider()
  • Method Details

    • createSipRequest

      public static javax.sip.message.Request createSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage, SubscribeInfo subscribeInfo)
      带订阅创建SIP请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      sipMessage - 内容
      subscribeInfo - 订阅消息
      Returns:
    • createSipRequest

      public static javax.sip.message.Request createSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage)
      创建SIP请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      sipMessage - 内容
      Returns:
      Request
    • createSipRequest

      public static javax.sip.message.Request createSipRequest(javax.sip.address.SipURI requestUri, SipMessage sipMessage, gov.nist.javax.sip.message.SIPResponse sipResponse)
    • createMessageRequest

      public static javax.sip.message.Request createMessageRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId)
      创建Message请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      content - 内容
      callId - callId
      Returns:
      Request
    • createInviteRequest

      public static javax.sip.message.Request createInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId)
      创建Invite请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      content - 内容
      callId - callId
      Returns:
      Request
    • createPlaybackInviteRequest

      public javax.sip.message.Request createPlaybackInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId)
    • createByeRequest

      public static javax.sip.message.Request createByeRequest(FromDevice fromDevice, ToDevice toDevice, String callId)
      创建Bye请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      callId - callId
      Returns:
      Request
    • createRegisterRequest

      public static javax.sip.message.Request createRegisterRequest(FromDevice fromDevice, ToDevice toDevice, Integer expires, String callId)
      创建Register请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      callId - callId
      Returns:
      Request
    • createRegisterRequestWithAuth

      public static javax.sip.message.Request createRegisterRequestWithAuth(FromDevice fromDevice, ToDevice toDevice, String callId, Integer expires, javax.sip.header.WWWAuthenticateHeader www)
      带签名的注册构造器
      Parameters:
      www - 认证头
      Returns:
      Request
    • createSubscribeRequest

      public static javax.sip.message.Request createSubscribeRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId)
      创建Subscribe请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      content - 内容
      callId - callId
      Returns:
      Request
    • createInfoRequest

      public static javax.sip.message.Request createInfoRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId)
      创建INFO 请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      content - 内容
      callId - callId
      Returns:
      Request
    • createAckRequest

      public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, ToDevice toDevice, String callId)
      创建ACK请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      callId - callId
      Returns:
      Request
    • createAckRequest

      public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId)
    • createAckRequest

      public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse)
    • createAckRequest

      public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, javax.sip.address.SipURI sipURI, String content, gov.nist.javax.sip.message.SIPResponse sipResponse)
    • createNotifyRequest

      public static javax.sip.message.Request createNotifyRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId)
      创建Notify请求
      Parameters:
      fromDevice - 发送设备
      toDevice - 发送目的设备
      callId - callId
      Returns:
      Request