08-28-2017 07:48 PM
I already followed the instructions in the guide (Cisco Remote Expert Mobile Version 11.5(1) Advanced CSDK Developer’s Guide).
But it didn't work, can you provide an example of how to make a call? just like the remort assist sdk.
I already downloaded the sample project but i dont really grasp how to make a call there.
Thx in advance
Solved! Go to Solution.
09-12-2017 06:46 PM
Hi Rach,
The call ends but the onstatuschanged method doesn't get called, I put my code to remove the call layout inside onstatuschanged, but it doesn't get called so the layout remains there.
Cheers,
Edwin
09-13-2017 07:44 AM
Thanks Edwin.
So to confirm you have already implimented the call listener as per the documentation?
---------------------
To detect that the remote party has ended the call, the client application must implement the CallListener interface in order to receive onStatusChanged notifications
---------------------
In that case could you share over that bit of code so we can take a look? Can you also confirm if it is nested inside of anything?
Cheers,
Rach
09-13-2017 07:16 PM
Hi Rach,
I already implement CallListener interface and the onStatusChanged method isn't nested inside of anything.
@Override
public void onStatusChanged(final Call call, final CallStatus status) {
switch (status) {
case ENDED:
terminate(call);
break;
case ERROR:
terminate(call);
break;
case BUSY:
terminate(call);
break;
case MEDIA_PENDING:
terminate(call);
break;
case NOT_FOUND:
terminate(call);
break;
case TIMED_OUT:
terminate(call);
break;
}
}
@Override
public void onStatusChanged(Call call, CallStatusInfo callStatusInfo) {
onStatusChanged(call, callStatusInfo.getCallStatus());
}
public void terminate(Call call)
{
call.removeListener(MainActivity.this);
call.setVideoView(null);
mVideoContainer.setVisibility(View.GONE);
mVideoContainer.removeAllViews();
callLayout.setVisibility(View.GONE);
}
Cheers,
Edwin
09-14-2017 08:28 AM
Thanks Edwin,
I noticed for your TIME_OUT value you are slightly differed from our documentation which may be the piece of the puzzle you are missing:
case TIMED_OUT:
updateUIForEndedCall(); break;
default:
break;
Could you try adding this to see if it makes a difference?
This info can be found on the 'Advanced_Developer_Guide' under heading:
Cheers,
Rach D
09-14-2017 07:17 PM
Hi Rach,
I think that's not the problem, because the case TIMED_OUT itself doesnt get called when the call ended from agent side.
Cheers,
Edwin
09-15-2017 06:03 AM
Thanks Edwin,
I'm just going to confirm with our Dev Team and will get back to you.
Rach
09-18-2017 02:13 AM
Hi Rach,
Thx for that
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: