Home --> Documentations --> PJSIP Reference

pj::AccountInfo Struct Reference

#include <account.hpp>

Public Member Functions

void fromPj (const pjsua_acc_info &pai)

Data Fields

pjsua_acc_id id
bool isDefault
string uri
bool regIsConfigured
bool regIsActive
int regExpiresSec
pjsip_status_code regStatus
string regStatusText
pj_status_t regLastErr
bool onlineStatus
string onlineStatusText

Detailed Description

Account information. Application can query the account information by calling Account::getInfo().

Member Function Documentation

◆ fromPj()

void pj::AccountInfo::fromPj ( const pjsua_acc_info pai)

Import from pjsip data

Field Documentation

◆ id

pjsua_acc_id pj::AccountInfo::id

The account ID.

◆ isDefault

bool pj::AccountInfo::isDefault

Flag to indicate whether this is the default account.

◆ uri

string pj::AccountInfo::uri

Account URI

◆ regIsConfigured

bool pj::AccountInfo::regIsConfigured

Flag to tell whether this account has registration setting (reg_uri is not empty).

◆ regIsActive

bool pj::AccountInfo::regIsActive

Flag to tell whether this account is currently registered (has active registration session).

◆ regExpiresSec

int pj::AccountInfo::regExpiresSec

An up to date expiration interval for account registration session.

◆ regStatus

pjsip_status_code pj::AccountInfo::regStatus

Last registration status code. If status code is zero, the account is currently not registered. Any other value indicates the SIP status code of the registration.

◆ regStatusText

string pj::AccountInfo::regStatusText

String describing the registration status.

◆ regLastErr

pj_status_t pj::AccountInfo::regLastErr

Last registration error code. When the status field contains a SIP status code that indicates a registration failure, last registration error code contains the error code that causes the failure. In any other case, its value is zero.

◆ onlineStatus

bool pj::AccountInfo::onlineStatus

Presence online status for this account.

◆ onlineStatusText

string pj::AccountInfo::onlineStatusText

Presence online status text.

The documentation for this struct was generated from the following file:


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.