enableSessionTimer method

Future<int> enableSessionTimer({
  1. int timerSeconds = 90,
  2. int refreshMode = 0,
})

Enables SIP session timers (RFC 4028) for subsequent calls so the server reaps a dead leg at expiry when the client stops refreshing.

Parameters:

  • timerSeconds: Session interval in seconds (minimum 90).
  • refreshMode: 0 = UAC (caller) refreshes, 1 = UAS (callee).

Returns 0 on success, negative error code on failure.

Implementation

Future<int> enableSessionTimer({
  int timerSeconds = 90,
  int refreshMode = 0,
}) async {
  throw UnimplementedError('enableSessionTimer has not been implemented.');
}