![]() |
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 | |
int | com.portsip.PortSipSdk.refer (long sessionId, String referTo) |
int | com.portsip.PortSipSdk.attendedRefer (long sessionId, long replaceSessionId, String referTo) |
int | com.portsip.PortSipSdk.attendedRefer2 (long sessionId, long replaceSessionId, String replaceMethod, String target, String referTo) |
int | com.portsip.PortSipSdk.outOfDialogRefer (long replaceSessionId, String replaceMethod, String target, String referTo) |
long | com.portsip.PortSipSdk.acceptRefer (long referId, String referSignaling) |
int | com.portsip.PortSipSdk.rejectRefer (long referId) |
int com.portsip.PortSipSdk.refer | ( | long | sessionId, |
String | referTo | ||
) |
Transfer the current call to another callee.
sessionId | The session ID of the call. |
referTo | Target callee of the transfer. It can be either "sip:number@sipserver.com" or "number". |
int com.portsip.PortSipSdk.attendedRefer | ( | long | sessionId, |
long | replaceSessionId, | ||
String | referTo | ||
) |
Make an attended refer.
sessionId | The session ID of the call. |
replaceSessionId | Session ID of the replace call. |
referTo | Target callee of the refer. It can be either "sip:number@sipserver.com" or "number". |
int com.portsip.PortSipSdk.attendedRefer2 | ( | long | sessionId, |
long | replaceSessionId, | ||
String | replaceMethod, | ||
String | target, | ||
String | referTo | ||
) |
Make an attended refer.
sessionId | The session ID of the call. |
replaceSessionId | The session ID of the session to be replaced. |
replaceMethod | The SIP method name to be added in the "Refer-To" header, usually INVITE or BYE. |
target | The target to which the REFER message will be sent. |
referTo | The URI to be added into the "Refer-To" header. |
int com.portsip.PortSipSdk.outOfDialogRefer | ( | long | replaceSessionId, |
String | replaceMethod, | ||
String | target, | ||
String | referTo | ||
) |
Make an attended refer.
replaceSessionId | The session ID of the session which will be replaced. |
replaceMethod | The SIP method name which will be added in the "Refer-To" header, usually INVITE or BYE. |
target | The target to which the REFER message will be sent. |
referTo | The URI which will be added into the "Refer-To" header. |
long com.portsip.PortSipSdk.acceptRefer | ( | long | referId, |
String | referSignaling | ||
) |
By accepting the REFER request, a new call will be made if this function is called. The function is usually called after onReceivedRefer callback event.
referId | The ID of REFER request that comes from onReceivedRefer callback event. |
referSignaling | The SIP message of REFER request that comes from onReceivedRefer callback event. |
int com.portsip.PortSipSdk.rejectRefer | ( | long | referId | ) |
Reject the REFER request.
referId | The ID of REFER request that comes from onReceivedRefer callback event. |