BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

sip_endpoint.h File Reference

SIP Endpoint. More...

Data Structures

struct  pjsip_process_rdata_param
 

Macros

#define PJSIP_ENDPT_LOG_ERROR(expr)    pjsip_endpt_log_error expr
 
#define PJSIP_ENDPT_TRACE(tracing, expr)
 

Typedefs

typedef void(* pjsip_endpt_exit_callback) (pjsip_endpoint *endpt)
 

Functions

pj_status_t pjsip_endpt_create (pj_pool_factory *pf, const char *name, pjsip_endpoint **endpt)
 
void pjsip_endpt_destroy (pjsip_endpoint *endpt)
 
const pj_str_tpjsip_endpt_name (const pjsip_endpoint *endpt)
 
pj_status_t pjsip_endpt_handle_events (pjsip_endpoint *endpt, const pj_time_val *max_timeout)
 
pj_status_t pjsip_endpt_handle_events2 (pjsip_endpoint *endpt, const pj_time_val *max_timeout, unsigned *count)
 
pj_status_t pjsip_endpt_schedule_timer (pjsip_endpoint *endpt, pj_timer_entry *entry, const pj_time_val *delay)
 
pj_status_t pjsip_endpt_schedule_timer_w_grp_lock (pjsip_endpoint *endpt, pj_timer_entry *entry, const pj_time_val *delay, int id_val, pj_grp_lock_t *grp_lock)
 
void pjsip_endpt_cancel_timer (pjsip_endpoint *endpt, pj_timer_entry *entry)
 
pj_timer_heap_tpjsip_endpt_get_timer_heap (pjsip_endpoint *endpt)
 
pj_status_t pjsip_endpt_register_module (pjsip_endpoint *endpt, pjsip_module *module)
 
pj_status_t pjsip_endpt_unregister_module (pjsip_endpoint *endpt, pjsip_module *module)
 
void pjsip_process_rdata_param_default (pjsip_process_rdata_param *p)
 
pj_status_t pjsip_endpt_process_rx_data (pjsip_endpoint *endpt, pjsip_rx_data *rdata, pjsip_process_rdata_param *p, pj_bool_t *p_handled)
 
pj_pool_tpjsip_endpt_create_pool (pjsip_endpoint *endpt, const char *pool_name, pj_size_t initial, pj_size_t increment)
 
void pjsip_endpt_release_pool (pjsip_endpoint *endpt, pj_pool_t *pool)
 
pjsip_transactionpjsip_endpt_find_tsx (pjsip_endpoint *endpt, const pj_str_t *key)
 
void pjsip_endpt_register_tsx (pjsip_endpoint *endpt, pjsip_transaction *tsx)
 
void pjsip_endpt_destroy_tsx (pjsip_endpoint *endpt, pjsip_transaction *tsx)
 
pj_status_t pjsip_endpt_create_tdata (pjsip_endpoint *endpt, pjsip_tx_data **p_tdata)
 
pj_status_t pjsip_endpt_create_resolver (pjsip_endpoint *endpt, pj_dns_resolver **p_resv)
 
pj_status_t pjsip_endpt_set_resolver (pjsip_endpoint *endpt, pj_dns_resolver *resv)
 
pj_status_t pjsip_endpt_set_ext_resolver (pjsip_endpoint *endpt, pjsip_ext_resolver *ext_res)
 
pj_dns_resolverpjsip_endpt_get_resolver (pjsip_endpoint *endpt)
 
void pjsip_endpt_resolve (pjsip_endpoint *endpt, pj_pool_t *pool, pjsip_host_info *target, void *token, pjsip_resolver_callback *cb)
 
pjsip_tpmgrpjsip_endpt_get_tpmgr (pjsip_endpoint *endpt)
 
pj_ioqueue_tpjsip_endpt_get_ioqueue (pjsip_endpoint *endpt)
 
pj_status_t pjsip_endpt_acquire_transport (pjsip_endpoint *endpt, pjsip_transport_type_e type, const pj_sockaddr_t *remote, int addr_len, const pjsip_tpselector *sel, pjsip_transport **p_tp)
 
pj_status_t pjsip_endpt_acquire_transport2 (pjsip_endpoint *endpt, pjsip_transport_type_e type, const pj_sockaddr_t *remote, int addr_len, const pjsip_tpselector *sel, pjsip_tx_data *tdata, pjsip_transport **p_tp)
 
const pjsip_hdrpjsip_endpt_get_capability (pjsip_endpoint *endpt, int htype, const pj_str_t *hname)
 
pj_bool_t pjsip_endpt_has_capability (pjsip_endpoint *endpt, int htype, const pj_str_t *hname, const pj_str_t *token)
 
pj_status_t pjsip_endpt_add_capability (pjsip_endpoint *endpt, pjsip_module *mod, int htype, const pj_str_t *hname, unsigned count, const pj_str_t tags[])
 
const pjsip_hdrpjsip_endpt_get_request_headers (pjsip_endpoint *e)
 
void pjsip_endpt_dump (pjsip_endpoint *endpt, pj_bool_t detail)
 
pj_status_t pjsip_endpt_atexit (pjsip_endpoint *endpt, pjsip_endpt_exit_callback func)
 
void pjsip_endpt_log_error (pjsip_endpoint *endpt, const char *sender, pj_status_t error_code, const char *format,...)
 
void pjsip_endpt_send_tsx_event (pjsip_endpoint *endpt, pjsip_event *evt)
 

Macro Definition Documentation

◆ PJSIP_ENDPT_LOG_ERROR

#define PJSIP_ENDPT_LOG_ERROR (   expr)     pjsip_endpt_log_error expr

Internal

◆ PJSIP_ENDPT_TRACE

#define PJSIP_ENDPT_TRACE (   tracing,
  expr 
)
Value:
do { \
if ((tracing)) \
PJ_LOG(4,expr); \
} while (0)

Internal

Function Documentation

◆ pjsip_endpt_log_error()

void pjsip_endpt_log_error ( pjsip_endpoint endpt,
const char *  sender,
pj_status_t  error_code,
const char *  format,
  ... 
)

Log an error.

◆ pjsip_endpt_send_tsx_event()

void pjsip_endpt_send_tsx_event ( pjsip_endpoint endpt,
pjsip_event evt 
)

Internal: receive transaction events from transactions and put in the event queue to be processed later.

References PJ_END_DECL.

 


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