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

Functions

void com.portsip.OnPortSIPEvent.onReceivedRefer (long sessionId, long referId, String to, String from, String referSipMessage)
 
void com.portsip.OnPortSIPEvent.onReferAccepted (long sessionId)
 
void com.portsip.OnPortSIPEvent.onReferRejected (long sessionId, String reason, int code)
 
void com.portsip.OnPortSIPEvent.onTransferTrying (long sessionId)
 
void com.portsip.OnPortSIPEvent.onTransferRinging (long sessionId)
 
void com.portsip.OnPortSIPEvent.onACTVTransferSuccess (long sessionId)
 
void com.portsip.OnPortSIPEvent.onACTVTransferFailure (long sessionId, String reason, int code)
 

Detailed Description

Function Documentation

◆ onReceivedRefer()

void com.portsip.OnPortSIPEvent.onReceivedRefer ( long  sessionId,
long  referId,
String  to,
String  from,
String  referSipMessage 
)

This event will be triggered once received a REFER message.

Parameters
sessionIdThe session ID of the call.
referIdThe ID of the REFER message. Pass it to acceptRefer or rejectRefer
toThe refer target.
fromThe sender of REFER message.
referSipMessageThe SIP message of "REFER". Pass it to "acceptRefer" function.

◆ onReferAccepted()

void com.portsip.OnPortSIPEvent.onReferAccepted ( long  sessionId)

This callback will be triggered once remote side calls "acceptRefer" to accept the REFER

Parameters
sessionIdThe session ID of the call.

◆ onReferRejected()

void com.portsip.OnPortSIPEvent.onReferRejected ( long  sessionId,
String  reason,
int  code 
)

This callback will be triggered once remote side calls "rejectRefer" to reject the REFER

Parameters
sessionIdThe session ID of the call.
reasonReject reason.
codeReject code.

◆ onTransferTrying()

void com.portsip.OnPortSIPEvent.onTransferTrying ( long  sessionId)

When the refer call is being processed, this event will be triggered.

Parameters
sessionIdThe session ID of the call.

◆ onTransferRinging()

void com.portsip.OnPortSIPEvent.onTransferRinging ( long  sessionId)

When the refer call is ringing, this event will be triggered.

Parameters
sessionIdThe session ID of the call.

◆ onACTVTransferSuccess()

void com.portsip.OnPortSIPEvent.onACTVTransferSuccess ( long  sessionId)

When the refer call succeeds, this event will be triggered. The ACTV means Active. For example, A establishes the call with B, A transfers B to C, C accepts the refer call, and A will receive this event.

Parameters
sessionIdThe session ID of the call.

◆ onACTVTransferFailure()

void com.portsip.OnPortSIPEvent.onACTVTransferFailure ( long  sessionId,
String  reason,
int  code 
)

When the refer call fails, this event will be triggered. The ACTV means Active. For example, A establish the call with B, A transfers B to C, C rejects this refer call, and A will receive this event.

Parameters
sessionIdThe session ID of the call.
reasonThe error reason.
codeThe error code.