![]() |
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.PortSIPLib.presenceSubscribe (String to, String subject) |
Send a SUBSCRIBE message for subscribing the contact's presence status. More... | |
Int32 | PortSIP.PortSIPLib.presenceTerminateSubscribe (Int32 subscribeId) |
Terminate the given presence subscription. More... | |
Int32 | PortSIP.PortSIPLib.presenceRejectSubscribe (Int32 subscribeId) |
Reject a presence SUBSCRIBE request which is received from contact. More... | |
Int32 | PortSIP.PortSIPLib.presenceAcceptSubscribe (Int32 subscribeId) |
Accept the presence SUBSCRIBE request which is received from contact. More... | |
Int32 | PortSIP.PortSIPLib.setPresenceStatus (Int32 subscribeId, String stateText) |
Set the presence status. More... | |
Int32 PortSIP.PortSIPLib.presenceSubscribe | ( | String | to, |
String | subject | ||
) |
Send a SUBSCRIBE message for subscribing the contact's presence status.
to | The target contact. It must be like sip:conta. ct00 1@sip .por tsip. com |
subject | This subject text will be inserted into the SUBSCRIBE message. For example: "Hello, I'm Jason". The subject maybe in UTF-8 format. You should use UTF-8 to decode it. |
Int32 PortSIP.PortSIPLib.presenceTerminateSubscribe | ( | Int32 | subscribeId | ) |
Terminate the given presence subscription.
subscribeId | The ID of the subscription. |
Int32 PortSIP.PortSIPLib.presenceRejectSubscribe | ( | Int32 | subscribeId | ) |
Reject a presence SUBSCRIBE request which is received from contact.
subscribeId | Subscription ID. When receiving a SUBSCRIBE request from contact, the event onPresenceRecvSubscribe will be triggered. The event includes the subscription ID. |
Int32 PortSIP.PortSIPLib.presenceAcceptSubscribe | ( | Int32 | subscribeId | ) |
Accept the presence SUBSCRIBE request which is received from contact.
subscribeId | Subscription ID. When receiving a SUBSCRIBE request from contact, the event onPresenceRecvSubscribe will be triggered. The event will include the subscription ID. |
Int32 PortSIP.PortSIPLib.setPresenceStatus | ( | Int32 | subscribeId, |
String | stateText | ||
) |
Set the presence status.
subscribeId | Subscription ID. |
stateText | The state text of presence online. For example: "I'm here". If you want to appear as offline to others, please pass the "Offline" to "statusText" parameter. |
With presence agent mode, this function will cause the SDK to send a PUBLISH message to update your presence status, and you must pass 0 to the "subscribeId" parameter.