pjsua_acc_add_local method

int pjsua_acc_add_local(
  1. int tid,
  2. int is_default,
  3. Pointer<pjsua_acc_id> p_acc_id
)

Add a local account. A local account is used to identify local endpoint instead of a specific user, and for this reason, a transport ID is needed to obtain the local address information.

@param tid Transport ID to generate account address. @param is_default If non-zero, this account will be set as the default account. The default account will be used when sending outgoing requests (e.g. making call) when no account is specified, and when receiving incoming requests when the request does not match any accounts. It is recommended that default account is set to local/LAN account. @param p_acc_id Pointer to receive account ID of the new account.

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

Implementation

int pjsua_acc_add_local(
  int tid,
  int is_default,
  ffi.Pointer<pjsua_acc_id> p_acc_id,
) {
  return _pjsua_acc_add_local(
    tid,
    is_default,
    p_acc_id,
  );
}