call method
Implementation
Future<int> call(String phoneNumber, String domain) async {
if (initialized == false) {
error = 'SIPService not initialized';
}
try {
final callId = await makeCall(
phoneNumber: phoneNumber,
domain: domain,
);
debugPrint('Call initiated to $phoneNumber with call ID: $callId');
return callId;
} catch (e) {
debugPrint('Error making call to $phoneNumber: $e');
error = e.toString();
return Future.error(error.toString());
}
}