Closed francoisl closed 2 years ago
Hi @francoisl, this is expected behavior in the 2.x
versions of the SDK (changed from 1.x
) such that device.activeCall
is no longer part of the device.calls
array member. Please see the updated documentation: https://www.twilio.com/docs/voice/sdks/javascript/twiliodevice#devicecalls
@mhuynh5757 I am not following. The link you sent says that 'calls' is a list of calls the device instance is maintaining. If a call is in progress it seems that would be in the calls array - as it is maintaining it.
What else would be in the calls array?
Code to reproduce the issue:
The issue is also reproducible when using await:
Expected behavior: As stated in the documentation,
device.calls
should contain an instance of aCall
, representing the outgoing callActual behavior:
device.calls
is always an empty array.It appears that the
connect
function never adds the newactiveCall
to its internalthis._calls
list.Software versions: