BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

evsub.h File Reference

SIP Specific Event Notification Extension (RFC 3265) More...

#include <pjsip-simple/types.h>

Data Structures

struct  pjsip_evsub_user
 

Typedefs

typedef struct pjsip_evsub pjsip_evsub
 

Enumerations

enum  pjsip_evsub_state {
  PJSIP_EVSUB_STATE_NULL , PJSIP_EVSUB_STATE_SENT , PJSIP_EVSUB_STATE_ACCEPTED , PJSIP_EVSUB_STATE_PENDING ,
  PJSIP_EVSUB_STATE_ACTIVE , PJSIP_EVSUB_STATE_TERMINATED , PJSIP_EVSUB_STATE_UNKNOWN
}
 
enum  { PJSIP_EVSUB_NO_EVENT_ID = 1 }
 

Functions

const pjsip_methodpjsip_get_subscribe_method (void)
 
const pjsip_methodpjsip_get_notify_method (void)
 
pj_status_t pjsip_evsub_init_module (pjsip_endpoint *endpt)
 
pjsip_modulepjsip_evsub_instance (void)
 
pj_status_t pjsip_evsub_register_pkg (pjsip_module *pkg_mod, const pj_str_t *event_name, unsigned expires, unsigned accept_cnt, const pj_str_t accept[])
 
const pjsip_hdrpjsip_evsub_get_allow_events_hdr (const pjsip_module *m)
 
pj_status_t pjsip_evsub_create_uac (pjsip_dialog *dlg, const pjsip_evsub_user *user_cb, const pj_str_t *event, unsigned option, pjsip_evsub **p_evsub)
 
pj_status_t pjsip_evsub_create_uas (pjsip_dialog *dlg, const pjsip_evsub_user *user_cb, pjsip_rx_data *rdata, unsigned option, pjsip_evsub **p_evsub)
 
pj_status_t pjsip_evsub_terminate (pjsip_evsub *sub, pj_bool_t notify)
 
pjsip_evsub_state pjsip_evsub_get_state (const pjsip_evsub *sub)
 
const char * pjsip_evsub_get_state_name (const pjsip_evsub *sub)
 
const pj_str_tpjsip_evsub_get_termination_reason (const pjsip_evsub *sub)
 
pj_uint32_t pjsip_evsub_get_expires (const pjsip_evsub *sub)
 
pj_status_t pjsip_evsub_initiate (pjsip_evsub *sub, const pjsip_method *method, pj_uint32_t expires, pjsip_tx_data **p_tdata)
 
pj_status_t pjsip_evsub_add_header (pjsip_evsub *sub, const pjsip_hdr *hdr_list)
 
pj_status_t pjsip_evsub_accept (pjsip_evsub *sub, pjsip_rx_data *rdata, int st_code, const pjsip_hdr *hdr_list)
 
pj_status_t pjsip_evsub_notify (pjsip_evsub *sub, pjsip_evsub_state state, const pj_str_t *state_str, const pj_str_t *reason, pjsip_tx_data **p_tdata)
 
pj_status_t pjsip_evsub_current_notify (pjsip_evsub *sub, pjsip_tx_data **p_tdata)
 
pj_status_t pjsip_evsub_send_request (pjsip_evsub *sub, pjsip_tx_data *tdata)
 
pjsip_evsubpjsip_tsx_get_evsub (const pjsip_transaction *tsx)
 
void pjsip_evsub_set_mod_data (pjsip_evsub *sub, unsigned mod_id, void *data)
 
void * pjsip_evsub_get_mod_data (const pjsip_evsub *sub, unsigned mod_id)
 
pj_status_t pjsip_evsub_add_ref (pjsip_evsub *sub)
 
pj_status_t pjsip_evsub_dec_ref (pjsip_evsub *sub)
 
void pjsip_evsub_uas_set_timeout (pjsip_evsub *sub, pj_uint32_t seconds)
 

Variables

const pjsip_method pjsip_subscribe_method
 
const pjsip_method pjsip_notify_method
 

 


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