cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4798
Views
0
Helpful
21
Replies

How to use REM advance sdk

edwin.ramana
Level 4
Level 4

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

21 Replies 21

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

rdavies1
Level 1
Level 1

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

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

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:

Monitoring the State of a Call

Cheers,

Rach D

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

Thanks Edwin,

I'm just going to confirm with our Dev Team and will get back to you.

Rach

Hi Rach,

Thx for that

Getting Started

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: