Closed lucasassisrosa closed 4 years ago
Reopening this due to:
The wrong call control ID is being used after creating a new call and bridging the call.
SDK v1.10.0
I'm placing calls using the CC methods in the node SDK. the CC flow is as follows:
initiated (A) -> answer (A) -> dial (B) -> answer (B) -> bridge (A +B)
The first time around, the call completes. The second time around, I get "Call has already ended." When I check the request ID in graylog, it is the wrong call control ID.
Steps to Reproduce
This should work in theory:
telnyx.calls.create
to a transfer destination.
Description:
when we initialize the SDK and create a new resource through the constructor, we see the new object created with the id updated and the first flow works fine. Subsequent uses of the same constructor do not. The state is not being cleared and the action is being taken against the previous object.
This can be exemplified with a webhook flow (see examples folder):
The SDK is outputting the following error:
Target Version: 1.7.0 Resource: Calls