pjsua_acc_set_online_status2 method

int pjsua_acc_set_online_status2(
  1. int acc_id,
  2. int is_online,
  3. Pointer<pjrpid_element> pr
)

Modify account's presence status to be advertised to remote/presence subscribers. This would trigger the sending of outgoing NOTIFY request if there are server side presence subscription for this account, and/or outgoing PUBLISH if presence publication is enabled for this account.

@see pjsua_acc_set_online_status()

@param acc_id The account ID. @param is_online True of false. @param pr Extended information in subset of RPID format which allows setting custom presence text.

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

Implementation

int pjsua_acc_set_online_status2(
  int acc_id,
  int is_online,
  ffi.Pointer<pjrpid_element> pr,
) {
  return _pjsua_acc_set_online_status2(
    acc_id,
    is_online,
    pr,
  );
}