pjsua_acc_set_registration method

int pjsua_acc_set_registration(
  1. int acc_id,
  2. int renew
)

Update registration or perform unregistration. If registration is configured for this account, then initial SIP REGISTER will be sent when the account is added with #pjsua_acc_add(). Application normally only need to call this function if it wants to manually update the registration or to unregister from the server.

@param acc_id The account ID. @param renew If renew argument is zero, this will start unregistration process.

@return PJ_SUCCESS on success, or the appropriate error code.

Implementation

int pjsua_acc_set_registration(
  int acc_id,
  int renew,
) {
  return _pjsua_acc_set_registration(
    acc_id,
    renew,
  );
}