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
Register events

Functions

void com.portsip.OnPortSIPEvent.onRegisterSuccess (String reason, int code, String sipMessage)
 
void com.portsip.OnPortSIPEvent.onRegisterFailure (String reason, int code, String sipMessage)
 

Detailed Description

Register events

Function Documentation

◆ onRegisterSuccess()

void com.portsip.OnPortSIPEvent.onRegisterSuccess ( String  reason,
int  code,
String  sipMessage 
)

When successfully registered to server, this event will be triggered.

Parameters
reasonThe status text.
codeThe status code.
sipMessageThe SIP message received.

◆ onRegisterFailure()

void com.portsip.OnPortSIPEvent.onRegisterFailure ( String  reason,
int  code,
String  sipMessage 
)

If failed to register to SIP server, this event will be triggered.

Parameters
reasonThe status text.
codeThe status code.
sipMessageThe SIP message received.