Class SipSender
java.lang.Object
io.github.lunasaw.sip.common.transmit.SipSender
发送SIP消息
- Author:
- lin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
doAckRequest
(FromDevice fromDevice, ToDevice toDevice) static String
doAckRequest
(FromDevice fromDevice, ToDevice toDevice, String callId) static String
doAckRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String callId) static String
doAckRequest
(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse) static String
doByeRequest
(FromDevice fromDevice, ToDevice toDevice) static String
doInfoRequest
(FromDevice fromDevice, ToDevice toDevice, String contend) static String
doInfoRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String callId) static String
doInfoRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String callId, Event errorEvent, Event okEvent) static String
doInviteRequest
(FromDevice fromDevice, ToDevice toDevice, String contend, String subject) static String
doInviteRequest
(FromDevice fromDevice, ToDevice toDevice, String contend, String subject, Event errorEvent, Event okEvent) static String
doMessageRequest
(FromDevice fromDevice, ToDevice toDevice, String contend) static String
doMessageRequest
(FromDevice fromDevice, ToDevice toDevice, String contend, Event errorEvent, Event okEvent) static String
doNotifyRequest
(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo) static String
doNotifyRequest
(FromDevice fromDevice, ToDevice toDevice, String contend, SubscribeInfo subscribeInfo, Event errorEvent, Event okEvent) static String
doRegisterRequest
(FromDevice fromDevice, ToDevice toDevice, Integer expires) static String
doRegisterRequest
(FromDevice fromDevice, ToDevice toDevice, Integer expires, Event event) static String
doRegisterRequest
(FromDevice fromDevice, ToDevice toDevice, Integer expires, String callId, Event errorEvent, Event okEvent) static String
doSubscribeRequest
(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo) static String
doSubscribeRequest
(FromDevice fromDevice, ToDevice toDevice, String contend, SubscribeInfo subscribeInfo, Event errorEvent, Event okEvent) static javax.sip.ServerTransaction
getServerTransaction
(javax.sip.message.Request request) static javax.sip.ServerTransaction
getServerTransaction
(javax.sip.message.Request request, String ip) 根据 RequestEvent 获取 ServerTransactionstatic void
transmitRequest
(String ip, javax.sip.message.Message message) static void
transmitRequest
(String ip, javax.sip.message.Message message, Event errorEvent) static void
transmitRequest
(String ip, javax.sip.message.Message message, Event errorEvent, Event okEvent) static void
transmitRequestSuccess
(String ip, javax.sip.message.Message message, Event okEvent)
-
Constructor Details
-
SipSender
public SipSender()
-
-
Method Details
-
doSubscribeRequest
public static String doSubscribeRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo) -
doMessageRequest
-
doNotifyRequest
public static String doNotifyRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo) -
doInviteRequest
public static String doInviteRequest(FromDevice fromDevice, ToDevice toDevice, String contend, String subject) -
doInfoRequest
-
doInviteRequest
-
doSubscribeRequest
public static String doSubscribeRequest(FromDevice fromDevice, ToDevice toDevice, String contend, SubscribeInfo subscribeInfo, Event errorEvent, Event okEvent) -
doNotifyRequest
public static String doNotifyRequest(FromDevice fromDevice, ToDevice toDevice, String contend, SubscribeInfo subscribeInfo, Event errorEvent, Event okEvent) -
doMessageRequest
-
doByeRequest
-
doAckRequest
-
doAckRequest
public static String doAckRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) -
doRegisterRequest
-
doRegisterRequest
public static String doRegisterRequest(FromDevice fromDevice, ToDevice toDevice, Integer expires, Event event) -
doRegisterRequest
-
doInfoRequest
public static String doInfoRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) -
doInfoRequest
-
doAckRequest
-
doAckRequest
public static String doAckRequest(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse) -
transmitRequest
-
transmitRequest
-
transmitRequestSuccess
-
transmitRequest
-
getServerTransaction
public static javax.sip.ServerTransaction getServerTransaction(javax.sip.message.Request request) -
getServerTransaction
public static javax.sip.ServerTransaction getServerTransaction(javax.sip.message.Request request, String ip) 根据 RequestEvent 获取 ServerTransaction- Parameters:
request
-- Returns:
-