pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication
Loading

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJSIP Reference

pjsip_dialog Struct Reference
[Base Dialog]

#include <sip_dialog.h>

Public Member Functions

 PJ_DECL_LIST_MEMBER (pjsip_dialog)

Data Fields

char obj_name [PJ_MAX_OBJ_NAME]
pj_pool_tpool
pj_mutex_tmutex_
pjsip_user_agentua
pjsip_endpointendpt
void * dlg_set
pjsip_dialog_state state
pjsip_uritarget
pjsip_target_set target_set
pjsip_hdr inv_hdr
pjsip_dlg_party local
pjsip_dlg_party remote
pjsip_hdr rem_cap_hdr
pjsip_role_e role
pj_bool_t uac_has_2xx
pj_bool_t secure
pj_bool_t add_allow
pjsip_cid_hdrcall_id
pjsip_route_hdr route_set
pj_bool_t route_set_frozen
pjsip_auth_clt_sess auth_sess
int sess_count
int tsx_count
pjsip_tpselector tp_sel
unsigned usage_cnt
pjsip_moduleusage [32]
void * mod_data [32]

Detailed Description

This structure describes the dialog structure. Application MUST NOT try to SET the values here directly, but instead it MUST use the appropriate dialog API. The dialog declaration only needs to be made visible because other PJSIP modules need to see it (e.g. INVITE session, the event framework, etc.).

Application MAY READ the dialog contents directly after it acquires dialog lock.

To acquire dialog lock, use pjsip_dlg_inc_lock(), and to release it, use pjsip_dlg_dec_lock(). DO NOT USE pj_mutex_lock()/pj_mutex_unlock() on the dialog's mutex directly, because this will not protect against dialog being destroyed.

Forward declaration for dialog (sip_dialog.h).


Member Function Documentation

pjsip_dialog::PJ_DECL_LIST_MEMBER ( pjsip_dialog   ) 

The dialog set list.


Field Documentation

char pjsip_dialog::obj_name[PJ_MAX_OBJ_NAME]

Standard id.

Dialog's pool.

Dialog's mutex. Do not call!! Use pjsip_dlg_inc_lock() instead!

User agent instance.

Endpoint instance.

The dialog set which this dialog belongs (opaque type).

Current target.

Target set, for UAC only.

Headers from hparam in dest URL

List of remote capability header.

UAC has received 2xx response?

Use secure transport?

Add Allow header in requests?

Route set has been set.

Client authentication session.

Session counter. Number of sessions.

Transaction counter. Number of pending transactions.

Number of registered usages.

Array of usages, priority sorted

Module specific data. Module data.


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.