refreshRegistration method
Refreshes the registration with the SIP server.
Invokes the native 'refreshRegistration' method via MethodChannel.
Returns 0 on success, -1 or error code on failure.
Implementation
@override
Future<int> refreshRegistration({int expires = 0}) async {
final args = {'expires': expires};
_logCall('refreshRegistration', args);
try {
final result = await methodChannel.invokeMethod<int>(
'refreshRegistration',
args,
);
_logResponse('refreshRegistration', result);
return result ?? -1;
} on PlatformException catch (e) {
_logError('refreshRegistration', e);
return -1;
}
}