Closed furkanerkl closed 1 year ago
Hello @furkanerkl The id of call it's sessionId You can get sessionId from received CALL event.
await QB.webrtc.subscribeRTCEvent(QBRTCEventTypes.CALL, (data) {
Map<dynamic, dynamic> payloadMap = Map<dynamic, dynamic>.from(data["payload"]);
Map<dynamic, dynamic> sessionMap = Map<dynamic, dynamic>.from(payloadMap["session"]);
String sessionId = sessionMap["id"];
}
Link to github code
@furkanerkl Closed due to no feedback
I plan to get the ids of the active calls and close the first call with the hangup function, but I can't figure out how to get the id of the first call. Do you have any suggestions on this?