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

Functions

Int32 PortSIP.SIPCallbackEvents.onRegisterSuccess (Int32 callbackIndex, Int32 callbackObject, String statusText, Int32 statusCode, StringBuilder sipMessage)
 
Int32 PortSIP.SIPCallbackEvents.onRegisterFailure (Int32 callbackIndex, Int32 callbackObject, String statusText, Int32 statusCode, StringBuilder sipMessage)
 

Detailed Description

Register events

Function Documentation

◆ onRegisterSuccess()

Int32 PortSIP.SIPCallbackEvents.onRegisterSuccess ( Int32  callbackIndex,
Int32  callbackObject,
String  statusText,
Int32  statusCode,
StringBuilder  sipMessage 
)

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

Parameters
callbackIndexThis is a callback index passed in when creating the SDK library.
callbackObjectThis is a callback object passed in when creating the SDK library.
statusTextThe status text.
statusCodeThe status code.
sipMessageThe SIP message received.

◆ onRegisterFailure()

Int32 PortSIP.SIPCallbackEvents.onRegisterFailure ( Int32  callbackIndex,
Int32  callbackObject,
String  statusText,
Int32  statusCode,
StringBuilder  sipMessage 
)

If registration to SIP server fails, this event will be triggered.

Parameters
statusTextThe status text.
statusCodeThe status code.
sipMessageThe SIP message received.