com.gs.phone.api.call

BaseCallApi

ClassName:BaseCallApi
All call apis

Supported Products:

All


Detail

Method

method description
public static boolean addStatusListener(String pkgForDebug, ICallStatusListener callback, int events, boolean notifyNow); Register call status listener and specify which event to observe.

Params:

pkgForDebug
The caller's pkg name/class name,be used for judging if repeat
callback
call status listener
events
which event {@link com.gs.phone.context.PhoneContext.ListenType}
notifyNow
When register success,immediately callback?

Return:

boolean true:register success false:register fail

Supported Products:

All

public static boolean removeStatusListener(ICallStatusListener callback); remove call listener

Params:

callback
The call listener which has been registered.

Return:

boolean true: remove ok;false: remove fail

Supported Products:

All

public static boolean isCallStatusBusy(); check if the call exist

Return:

boolean :true or false

Supported Products:

All

public static DialResults makeCalls(java.util.List dialingInfos); Make calls according to a list of DialingInfo.

Params:

dialingInfos
A list of DialingInfo

Return:

DialResults The result of making calls.

Supported Products:

All

public static boolean acceptCall(int lineId, boolean isVideo, boolean isInConf); Accept a specified call

Params:

lineId
Which line
isVideo
Accept it as a video call or not
isInConf
If add it to conf or not

Return:

boolean true or false

Supported Products:

All

public static boolean rejectCall(int lineId); Reject a specified call

Params:

lineId
Which line

Return:

boolean true or false

Supported Products:

All

public static boolean endCall(int lineId); End a specified call

Params:

lineId
Which line

Return:

boolean true or false

Supported Products:

All

public static boolean endAllCall(); End all calls

Return:

boolean true or false

Supported Products:

All

public static boolean redialLine(int lineId); Dial the special line again.

Params:

lineId
Which line

Return:

boolean true or false

Supported Products:

All

public static boolean redialLastCallLog(); Dial last call according to the call log

Return:

boolean true or false

Supported Products:

All

public static boolean holdUnholdLine(int lineId); Do unhold action when the specified line is on hold status. And do hold action when the specified line is on unhold status.

Params:

lineId
Which line

Return:

boolean true or false

Supported Products:

All

public static boolean muteUnmuteLocal(int lineId); Do unmute action when the specified line's local is on mute status. And do mute action when the specified line's local is on unmute status.

Params:

lineId
Which line

Return:

boolean true or false

Supported Products:

All

public static boolean muteUnmuteRemote(int lineId); Do unmute action when the specified line's remote is on mute status. And do mute action when the specified line's remote is on unmute status.

Params:

lineId
Which line

Return:

boolean true or false

Supported Products:

All

public static boolean blockUnblockRemote(int lineId); Do unblock speaker action when the specified line's remote is on block status. And do block action when the specified line's remote is on unblock status.

Params:

lineId
Which line

Return:

boolean true or false

Supported Products:

All

public static boolean transferBlind(int lineId, String number); Function:blind transfer to 3rd party and end current line directly.

Params:

lineId
current line id which assigned internal,0~MAX_LINE-1
number
3rd party's phone number
public static boolean transferAttended(int lineId, String number); Function:transfer current line to the 3rd party,will wait for 3rd party to accept the call.

Params:

lineId
current line id which assigned internal,0~MAX_LINE-1
number
3rd party's phone number
public static boolean transferAttendedCancel(int lineId); Function:cancel attended transfer when the 3rd party is not answering.

Params:

lineId
line id which assigned internal,0~MAX_LINE-1
public static boolean transferAttendedEnd(int lineId); Function:end attended transfer when the 3rd party answered the call.

Params:

lineId
line id which assigned internal,0~MAX_LINE-1
public static boolean transferSplit(); Function:spilt the two lines line when the 3rd party answered during attend transfer.
public static boolean sendDtmfManual(String key, boolean isDown); Function:send dtmf key down or up event,play dtmf tone.

Params:

key
dtmf key
isDown
key event,true:down;false:up

Return:

true:success; false:fail

Supported Products:

All

public static boolean sendDtmfAuto(String dtmf); Function:send dtmf string automatically with fixed time interval and duration.

Params:

dtmf
dtmf strings to be send,like '12,3,456'

Return:

true:success; false:fail

Supported Products:

All


Member & Constant

Member description
public static final String API The tag name of BaseCallApi,which can used in {@link com.gs.common.client.ApiClient.Builder#addApi(String)}

Supported Products:

All