Home --> Documentations --> PJSIP Reference

#include <pjsua.h>

Data Fields

pjsua_call_id id
pjsip_role_e role
pjsua_acc_id acc_id
pj_str_t local_info
pj_str_t local_contact
pj_str_t remote_info
pj_str_t remote_contact
pj_str_t call_id
pjsua_call_setting setting
pjsip_inv_state state
pj_str_t state_text
pjsip_status_code last_status
pj_str_t last_status_text
pjsua_call_media_status media_status
pjmedia_dir media_dir
pjsua_conf_port_id conf_slot
unsigned media_cnt
pjsua_call_media_info media [PJMEDIA_MAX_SDP_MEDIA]
unsigned prov_media_cnt
pjsua_call_media_info prov_media [PJMEDIA_MAX_SDP_MEDIA]
pj_time_val connect_duration
pj_time_val total_duration
pj_bool_t rem_offerer
unsigned rem_aud_cnt
unsigned rem_vid_cnt
struct {
   char   local_info [PJSIP_MAX_URL_SIZE]
   char   local_contact [PJSIP_MAX_URL_SIZE]
   char   remote_info [PJSIP_MAX_URL_SIZE]
   char   remote_contact [PJSIP_MAX_URL_SIZE]
   char   call_id [128]
   char   last_status_text [128]

Detailed Description

This structure describes the information and current status of a call.

Field Documentation

pjsua_call_id pjsua_call_info::id

Call identification.

pjsip_role_e pjsua_call_info::role

Initial call role (UAC == caller)

pjsua_acc_id pjsua_call_info::acc_id

The account ID where this call belongs.

pj_str_t pjsua_call_info::local_info

Local URI

pj_str_t pjsua_call_info::local_contact

Local Contact

pj_str_t pjsua_call_info::remote_info

Remote URI

pj_str_t pjsua_call_info::remote_contact

Remote contact

pj_str_t pjsua_call_info::call_id

Dialog Call-ID string.

pjsua_call_setting pjsua_call_info::setting

Call setting

pjsip_inv_state pjsua_call_info::state

Call state

pj_str_t pjsua_call_info::state_text

Text describing the state

pjsip_status_code pjsua_call_info::last_status

Last status code heard, which can be used as cause code

pj_str_t pjsua_call_info::last_status_text

The reason phrase describing the status.

pjsua_call_media_status pjsua_call_info::media_status

Media status of the first audio stream.

pjmedia_dir pjsua_call_info::media_dir

Media direction of the first audio stream.

pjsua_conf_port_id pjsua_call_info::conf_slot

The conference port number for the first audio stream.

unsigned pjsua_call_info::media_cnt

Number of active media info in this call.

Array of active media information.

unsigned pjsua_call_info::prov_media_cnt

Number of provisional media info in this call.

pjsua_call_media_info pjsua_call_info::prov_media[PJMEDIA_MAX_SDP_MEDIA]

Array of provisional media information. This contains the media info in the provisioning state, that is when the media session is being created/updated (SDP offer/answer is on progress).

pj_time_val pjsua_call_info::connect_duration

Up-to-date call connected duration (zero when call is not established)

pj_time_val pjsua_call_info::total_duration

Total call duration, including set-up time

pj_bool_t pjsua_call_info::rem_offerer

Flag if remote was SDP offerer

unsigned pjsua_call_info::rem_aud_cnt

Number of audio streams offered by remote

unsigned pjsua_call_info::rem_vid_cnt

Number of video streams offered by remote

struct { ... } pjsua_call_info::buf_


The documentation for this struct was generated from the following file:
  • pjsua-lib/pjsua.h


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