com.gs.phone.listener

CallStatusListener

Through this class, can listen to the status of the line/conf/audio route/xxx. you must override callback methods related

Supported Products:

All


Detail

Method

method description
public CallStatusListener(); Constructs a new CallStatusListener. Init message handler and init inner ICallStatusListener.

Supported Products:

All

public void onLineIdChanged(int oldLineId, int newLineId); Callback invoked when line id changed.
need listen LINE_ID

Params:

oldLineId
lineId assigned by GsService
newLineId
lineId assigned by gs_phone

Supported Products:

All

public void onLineStatusChanged(int notifyType, BaseLine line, java.util.List lines); Callback invoked when line status changed.
need listen LINE_STATUS

Params:

notifyType
which part of line is changed,define in {@link com.gs.phone.context.PhoneContext.NotifyType}
line
current changed line {@linkplain BaseLine}
lines
all active lines {@linkplain BaseLine}

Supported Products:

All

public void onHookEventChanged(int device, boolean isOffHook);

Callback invoked when hook event status changed.

need listen HOOK_EVENT_STATUS

Params:

device
Which device
isOffHook
if put off hook

Supported Products:

GXV3350, GXV3370, GXV3380

public void destroy();

Destroy callback instance and release related memory

Call this method,when you no longer to use this callStatusListener object again.


Supported Products:

All


Member & Constant

Member description
public ICallStatusListener callback Inner call status listener

Supported Products:

All