Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get duration fails at first time. #5

Open
duyseo opened this issue May 31, 2020 · 0 comments
Open

get duration fails at first time. #5

duyseo opened this issue May 31, 2020 · 0 comments

Comments

@duyseo
Copy link

duyseo commented May 31, 2020

Hi,plugin was wrong at the first time we start the "startPhoneCall".
I couldn't get duration at the first time.
It always shows "completed" immediately, then duration was not correct.
I found this code :
"
switch (event.type) {
case RawEventType.inbound:
// Nothing
break;
case RawEventType.outbound:
_changeStatus(matching, PhoneCallStatus.connecting);
break;
case RawEventType.connected:
_changeStatus(matching, PhoneCallStatus.connected);
break;
case RawEventType.disconnected:

      /// We ended the call--- makes sure it's not some ridiculously long call
    _changeStatus(matching, PhoneCallStatus.disconnected);

      break;
  }

"
The first time we start the call, status is "disconnected" and that the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant