Skip to content

get duration fails at first time.  #5

@duyseo

Description

@duyseo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions