From 5bba9a8974457839751100a9d320d24c1e04d08b Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Wed, 29 Jul 2026 16:25:40 +0300 Subject: [PATCH] call accept done. --- lib/modules/cx_module/chat/calling/audio_call_page.dart | 2 +- lib/modules/cx_module/chat/calling/call_provider.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/cx_module/chat/calling/audio_call_page.dart b/lib/modules/cx_module/chat/calling/audio_call_page.dart index 9fc4b787..afc15325 100644 --- a/lib/modules/cx_module/chat/calling/audio_call_page.dart +++ b/lib/modules/cx_module/chat/calling/audio_call_page.dart @@ -50,7 +50,7 @@ class _AudioCallPageState extends State { return; } callPro.initAudioCallListeners(); - callPro.startCall(widget.sender.employeeNumber ?? "", widget.recipient?.employeeNumber ?? "", false, chatProvider.moduleID, chatProvider.referenceID); + callPro.startCall(widget.sender.employeeNumber ?? "", widget.recipient?.employeeNumber ?? "", false, null, null); Map json = { // "callerID": AppState().chatDetails!.response!.id!.toString(), diff --git a/lib/modules/cx_module/chat/calling/call_provider.dart b/lib/modules/cx_module/chat/calling/call_provider.dart index 8fbefeef..8eafc71c 100644 --- a/lib/modules/cx_module/chat/calling/call_provider.dart +++ b/lib/modules/cx_module/chat/calling/call_provider.dart @@ -56,7 +56,7 @@ class CallProvider with ChangeNotifier, DiagnosticableTreeMixin { Future getHubConnection(String token) async { HubConnection hub; HttpConnectionOptions httpOp = HttpConnectionOptions(skipNegotiation: false, logMessageContent: true); - hub = HubConnectionBuilder().withUrl("${URLs.chatHubUrlChat}?accessTokenFactory=$token}", options: httpOp).withAutomaticReconnect(retryDelays: [2000, 5000, 10000, 20000]).build(); + hub = HubConnectionBuilder().withUrl("${URLs.chatHubUrlChat}?access_token=$token", options: httpOp).withAutomaticReconnect(retryDelays: [2000, 5000, 10000, 20000]).build(); return hub; } @@ -66,7 +66,7 @@ class CallProvider with ChangeNotifier, DiagnosticableTreeMixin { await _disposeConnection(); // isLoading = true; // notifyListeners(); - http.Response response = await ApiClient().postJsonForResponse(URLs.chatSdkToken, {"apiKey": URLs.chatApiKey, "employeeNumber": employeeNumber, "voIPToken": null}); + http.Response response = await ApiClient().postJsonForResponse(URLs.chatSdkToken, {"apiKey": URLs.chatApiKey, "employeeNumber": employeeNumber, "voIPToken": null}); if (response.statusCode == 200) { ChatLoginResponse chatResponse = ChatLoginResponse.fromJson(jsonDecode(response.body)); print("chatResponse:${chatResponse.token}");