PortSIP VoIP SDK Manual for Android  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
INFO/OPTIONS message events

Functions

void com.portsip.OnPortSIPEvent.onRecvOptions (String optionsMessage)
 
void com.portsip.OnPortSIPEvent.onRecvInfo (String infoMessage)
 
void com.portsip.OnPortSIPEvent.onRecvNotifyOfSubscription (long subscribeId, String notifyMessage, byte[] messageData, int messageDataLength)
 

Detailed Description

Function Documentation

◆ onRecvOptions()

void com.portsip.OnPortSIPEvent.onRecvOptions ( String  optionsMessage)

This event will be triggered when receiving the OPTIONS message.

Parameters
optionsMessageThe received whole OPTIONS message in text format.

◆ onRecvInfo()

void com.portsip.OnPortSIPEvent.onRecvInfo ( String  infoMessage)

This event will be triggered when receiving the INFO message.

Parameters
infoMessageThe whole INFO message received in text format.

◆ onRecvNotifyOfSubscription()

void com.portsip.OnPortSIPEvent.onRecvNotifyOfSubscription ( long  subscribeId,
String  notifyMessage,
byte []  messageData,
int  messageDataLength 
)

This event will be triggered when receiving a NOTIFY message of the subscription.

Parameters
subscribeIdThe ID of SUBSCRIBE request.
notifyMessageThe received INFO message in text format.
messageDataThe received message body. It's can be either text or binary data.
messageDataLengthThe length of "messageData".