BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

sip_transaction.h File Reference

SIP Transaction. More...

#include <pjsip/sip_msg.h>
#include <pjsip/sip_util.h>
#include <pjsip/sip_transport.h>
#include <pj/timer.h>

Data Structures

struct  pjsip_transaction
 

Enumerations

enum  pjsip_tsx_state_e {
  PJSIP_TSX_STATE_NULL , PJSIP_TSX_STATE_CALLING , PJSIP_TSX_STATE_TRYING , PJSIP_TSX_STATE_PROCEEDING ,
  PJSIP_TSX_STATE_COMPLETED , PJSIP_TSX_STATE_CONFIRMED , PJSIP_TSX_STATE_TERMINATED , PJSIP_TSX_STATE_DESTROYED ,
  PJSIP_TSX_STATE_MAX
}
 

Functions

pj_status_t pjsip_tsx_layer_init_module (pjsip_endpoint *endpt)
 
pjsip_modulepjsip_tsx_layer_instance (void)
 
pj_status_t pjsip_tsx_layer_destroy (void)
 
unsigned pjsip_tsx_layer_get_tsx_count (void)
 
pjsip_transactionpjsip_tsx_layer_find_tsx (const pj_str_t *key, pj_bool_t lock)
 
pjsip_transactionpjsip_tsx_layer_find_tsx2 (const pj_str_t *key, pj_bool_t add_ref)
 
pj_status_t pjsip_tsx_create_uac (pjsip_module *tsx_user, pjsip_tx_data *tdata, pjsip_transaction **p_tsx)
 
pj_status_t pjsip_tsx_create_uac2 (pjsip_module *tsx_user, pjsip_tx_data *tdata, pj_grp_lock_t *grp_lock, pjsip_transaction **p_tsx)
 
pj_status_t pjsip_tsx_create_uas (pjsip_module *tsx_user, pjsip_rx_data *rdata, pjsip_transaction **p_tsx)
 
pj_status_t pjsip_tsx_create_uas2 (pjsip_module *tsx_user, pjsip_rx_data *rdata, pj_grp_lock_t *grp_lock, pjsip_transaction **p_tsx)
 
pj_status_t pjsip_tsx_set_transport (pjsip_transaction *tsx, const pjsip_tpselector *sel)
 
void pjsip_tsx_recv_msg (pjsip_transaction *tsx, pjsip_rx_data *rdata)
 
pj_status_t pjsip_tsx_send_msg (pjsip_transaction *tsx, pjsip_tx_data *tdata)
 
pj_status_t pjsip_tsx_retransmit_no_state (pjsip_transaction *tsx, pjsip_tx_data *tdata)
 
pj_status_t pjsip_tsx_create_key (pj_pool_t *pool, pj_str_t *key, pjsip_role_e role, const pjsip_method *method, const pjsip_rx_data *rdata)
 
pj_status_t pjsip_tsx_terminate (pjsip_transaction *tsx, int code)
 
pj_status_t pjsip_tsx_stop_retransmit (pjsip_transaction *tsx)
 
pj_status_t pjsip_tsx_set_timeout (pjsip_transaction *tsx, unsigned millisec)
 
void pjsip_tsx_set_timers (unsigned t1, unsigned t2, unsigned t4, unsigned td)
 
void pjsip_tsx_initialize_timer_values (void)
 
pjsip_transactionpjsip_rdata_get_tsx (pjsip_rx_data *rdata)
 
void pjsip_tsx_layer_dump (pj_bool_t detail)
 
const char * pjsip_tsx_state_str (pjsip_tsx_state_e state)
 
const char * pjsip_role_name (pjsip_role_e role)
 

Function Documentation

◆ pjsip_tsx_layer_dump()

void pjsip_tsx_layer_dump ( pj_bool_t  detail)

Dump transaction layer.

◆ pjsip_tsx_state_str()

const char * pjsip_tsx_state_str ( pjsip_tsx_state_e  state)

Get the string name for the state.

Parameters
stateState

◆ pjsip_role_name()

const char * pjsip_role_name ( pjsip_role_e  role)

Get the role name.

Parameters
roleRole.

References PJ_END_DECL.

 


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