Download PortSIP VoIP SDK Manual for Android

Transcript
Call functions
Functions










long com.portsip.PortSipSdk.call (String callee, boolean sendSdp, boolean videoCall)
int com.portsip.PortSipSdk.rejectCall (long sessionId, int code)
int com.portsip.PortSipSdk.hangUp (long sessionId)
int com.portsip.PortSipSdk.answerCall (long sessionId, boolean videoCall)
int com.portsip.PortSipSdk.updateCall (long sessionId, boolean enableAudio, boolean enableVideo)
int com.portsip.PortSipSdk.hold (long sessionId)
int com.portsip.PortSipSdk.unHold (long sessionId)
int com.portsip.PortSipSdk.muteSession (long sessionId, boolean muteIncomingAudio, boolean
muteOutgoingAudio, boolean muteIncomingVideo, boolean muteOutgoingVideo)
int com.portsip.PortSipSdk.forwardCall (long sessionId, String forwardTo)
int com.portsip.PortSipSdk.sendDtmf (long sessionId, int enum_dtmfMethod, int code, int
dtmfDuration, boolean playDtmfTone)
Detailed Description
Function Documentation
long com.portsip.PortSipSdk.call (String callee, boolean sendSdp, boolean videoCall)
Make a call
Parameters:
callee
sendSdp
videoCall
The callee, it can be name only or full SIP URI, for example: user001 or
sip:[email protected] or sip:[email protected]:5068
If set to false then the outgoing call doesn't include the SDP in INVITE
message.
If set the true and at least one video codec was added, then the outgoing call
include the video codec into SDP.
Otherwise no video codec to be added into outgoing SDP.
Returns:
If the function succeeds, the return value is the session ID of the call greater than 0. If the function
fails,
the return value is a specific error code. Note: the function success just means the outgoing call is
processing,
you need to detect the call final state in onInviteTrying, onInviteRinging, onInviteFailure
callback events.
int com.portsip.PortSipSdk.rejectCall (long sessionId, int code)
rejectCall Reject the incoming call.
Parameters:
sessionId
code
The sessionId of the call.
Reject code, for example, 486, 480 etc.
24