![]() |
PortSIP VoIP SDK Manual for Windows
16.2
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
|
Functions | |
Int32 | PortSIP.SIPCallbackEvents.onPresenceRecvSubscribe (Int32 callbackIndex, Int32 callbackObject, Int32 subscribeId, String fromDisplayName, String from, String subject) |
Int32 | PortSIP.SIPCallbackEvents.onPresenceOnline (Int32 callbackIndex, Int32 callbackObject, String fromDisplayName, String from, String stateText) |
Int32 | PortSIP.SIPCallbackEvents.onPresenceOffline (Int32 callbackIndex, Int32 callbackObject, String fromDisplayName, String from) |
Int32 | PortSIP.SIPCallbackEvents.onRecvMessage (Int32 callbackIndex, Int32 callbackObject, Int32 sessionId, String mimeType, String subMimeType, byte[] messageData, Int32 messageDataLength) |
Int32 | PortSIP.SIPCallbackEvents.onRecvOutOfDialogMessage (Int32 callbackIndex, Int32 callbackObject, String fromDisplayName, String from, String toDisplayName, String to, String mimeType, String subMimeType, byte[] messageData, Int32 messageDataLength) |
Int32 | PortSIP.SIPCallbackEvents.onSendMessageSuccess (Int32 callbackIndex, Int32 callbackObject, Int32 sessionId, Int32 messageId) |
Int32 | PortSIP.SIPCallbackEvents.onSendMessageFailure (Int32 callbackIndex, Int32 callbackObject, Int32 sessionId, Int32 messageId, String reason, Int32 code) |
Int32 | PortSIP.SIPCallbackEvents.onSendOutOfDialogMessageSuccess (Int32 callbackIndex, Int32 callbackObject, Int32 messageId, String fromDisplayName, String from, String toDisplayName, String to) |
Int32 | PortSIP.SIPCallbackEvents.onSendOutOfDialogMessageFailure (Int32 callbackIndex, Int32 callbackObject, Int32 messageId, String fromDisplayName, String from, String toDisplayName, String to, String reason, Int32 code) |
Int32 PortSIP.SIPCallbackEvents.onPresenceRecvSubscribe | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
Int32 | subscribeId, | ||
String | fromDisplayName, | ||
String | from, | ||
String | subject | ||
) |
This event will be triggered when receiving the SUBSCRIBE request from a contact.
subscribeId | The ID of SUBSCRIBE request. |
fromDisplayName | The display name of contact. |
from | The contact who sends the SUBSCRIBE request. |
subject | The subject of the SUBSCRIBE request. |
Int32 PortSIP.SIPCallbackEvents.onPresenceOnline | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
String | fromDisplayName, | ||
String | from, | ||
String | stateText | ||
) |
When the contact is online or changes presence status, this event will be triggered.
fromDisplayName | The display name of contact. |
from | The contact who sends the SUBSCRIBE request. |
stateText | The presence status text. |
Int32 PortSIP.SIPCallbackEvents.onPresenceOffline | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
String | fromDisplayName, | ||
String | from | ||
) |
When the contact goes offline, this event will be triggered.
fromDisplayName | The display name of contact. |
from | The contact who sends the SUBSCRIBE request |
Int32 PortSIP.SIPCallbackEvents.onRecvMessage | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
Int32 | sessionId, | ||
String | mimeType, | ||
String | subMimeType, | ||
byte [] | messageData, | ||
Int32 | messageDataLength | ||
) |
This event will be triggered when receiving a MESSAGE message in dialog.
sessionId | The session ID of the call. |
mimeType | The message mime type. |
subMimeType | The message sub mime type. |
messageData | The received message body. It can be text or binary data. |
messageDataLength | The length of "messageData". |
Int32 PortSIP.SIPCallbackEvents.onRecvOutOfDialogMessage | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
String | fromDisplayName, | ||
String | from, | ||
String | toDisplayName, | ||
String | to, | ||
String | mimeType, | ||
String | subMimeType, | ||
byte [] | messageData, | ||
Int32 | messageDataLength | ||
) |
This event will be triggered when receiving a MESSAGE message out of dialog. For example: pager message.
fromDisplayName | The display name of sender. |
from | The message sender. |
toDisplayName | The display name of recipient. |
to | The recipient. |
mimeType | The message mime type. |
subMimeType | The message sub mime type. |
messageData | The received message body. It can be text or binary data. |
messageDataLength | The length of "messageData". |
Int32 PortSIP.SIPCallbackEvents.onSendMessageSuccess | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
Int32 | sessionId, | ||
Int32 | messageId | ||
) |
If the message is sent successfully in dialog, this event will be triggered.
sessionId | The session ID of the call. |
messageId | The message ID. It's equal to the return value of sendMessage function. |
Int32 PortSIP.SIPCallbackEvents.onSendMessageFailure | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
Int32 | sessionId, | ||
Int32 | messageId, | ||
String | reason, | ||
Int32 | code | ||
) |
If the message fails to be sent out of dialog, this event will be triggered.
sessionId | The session ID of the call. |
messageId | The message ID. It's equal to the return value of sendMessage function. |
reason | The failure reason. |
code | Failure code. |
Int32 PortSIP.SIPCallbackEvents.onSendOutOfDialogMessageSuccess | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
Int32 | messageId, | ||
String | fromDisplayName, | ||
String | from, | ||
String | toDisplayName, | ||
String | to | ||
) |
If the message is sent succeeded out of dialog, this event will be triggered.
messageId | The message ID. It's equal to the return value of SendOutOfDialogMessage function. |
fromDisplayName | The display name of message sender. |
from | The message sender. |
toDisplayName | The display name of message recipient. |
to | The message receiver. |
Int32 PortSIP.SIPCallbackEvents.onSendOutOfDialogMessageFailure | ( | Int32 | callbackIndex, |
Int32 | callbackObject, | ||
Int32 | messageId, | ||
String | fromDisplayName, | ||
String | from, | ||
String | toDisplayName, | ||
String | to, | ||
String | reason, | ||
Int32 | code | ||
) |
If the message was sent failure out of dialog, this event will be triggered.
messageId | The message ID. It's equal to the return value of SendOutOfDialogMessage function. |
fromDisplayName | The display name of message sender |
from | The message sender. |
toDisplayName | The display name of message recipient. |
to | The message recipient. |
reason | The failure reason. |
code | The failure code. |