#include "../../parser/msg_parser.h"


Go to the source code of this file.
Data Structures | |
| struct | dlg_callback |
| struct | dlg_cb_params |
| struct | dlg_head_cbl |
Defines | |
| #define | DLGCB_CONFIRMED (1<<3) |
| #define | DLGCB_CREATED (1<<1) |
| #define | DLGCB_DESTROY (1<<11) |
| #define | DLGCB_EARLY (1<<7) |
| #define | DLGCB_EXPIRED (1<<6) |
| #define | DLGCB_FAILED (1<<2) |
| #define | DLGCB_LOADED (1<<0) |
| #define | DLGCB_MI_CONTEXT (1<<10) |
| #define | DLGCB_REQ_WITHIN (1<<4) |
| #define | DLGCB_RESPONSE_FWDED (1<<8) |
| #define | DLGCB_RESPONSE_WITHIN (1<<9) |
| #define | DLGCB_TERMINATED (1<<5) |
Typedefs | |
| typedef void( | dialog_cb )(struct dlg_cell *dlg, int type, struct dlg_cb_params *params) |
| typedef void( | param_free_cb )(void *param) |
| typedef int(* | register_dlgcb_f )(struct dlg_cell *dlg, int cb_types, dialog_cb f, void *param, param_free_cb ff) |
Functions | |
| void | destroy_dlg_callbacks (unsigned int type) |
| void | destroy_dlg_callbacks_list (struct dlg_callback *cb) |
| int | register_dlgcb (struct dlg_cell *dlg, int types, dialog_cb f, void *param, param_free_cb ff) |
| void | run_create_callbacks (struct dlg_cell *dlg, struct sip_msg *msg) |
| void | run_dlg_callbacks (int type, struct dlg_cell *dlg, struct sip_msg *msg, unsigned int dir, void *dlg_data) |
| void | run_load_callbacks (void) |
| #define DLGCB_CONFIRMED (1<<3) |
Definition at line 59 of file dlg_cb.h.
Referenced by __dialog_created(), dlg_onreply(), and setup_dialog_callbacks().
| #define DLGCB_CREATED (1<<1) |
Definition at line 57 of file dlg_cb.h.
Referenced by destroy_dlg_callbacks(), mod_destroy(), mod_init(), register_dlgcb(), and run_create_callbacks().
| #define DLGCB_DESTROY (1<<11) |
Definition at line 67 of file dlg_cb.h.
Referenced by __dialog_created(), destroy_dlg(), and setup_dialog_callbacks().
| #define DLGCB_EARLY (1<<7) |
| #define DLGCB_EXPIRED (1<<6) |
Definition at line 62 of file dlg_cb.h.
Referenced by __dialog_created(), dlg_ontimeout(), setup_dialog_callbacks(), and sst_dialog_terminate_CB().
| #define DLGCB_FAILED (1<<2) |
Definition at line 58 of file dlg_cb.h.
Referenced by __dialog_created(), dlg_onreply(), setup_dialog_callbacks(), and sst_dialog_terminate_CB().
| #define DLGCB_LOADED (1<<0) |
Definition at line 56 of file dlg_cb.h.
Referenced by destroy_dlg_callbacks(), mod_destroy(), mod_init(), register_dlgcb(), and run_load_callback().
| #define DLGCB_MI_CONTEXT (1<<10) |
Definition at line 66 of file dlg_cb.h.
Referenced by internal_mi_print_dlg(), and setup_dialog_callbacks().
| #define DLGCB_REQ_WITHIN (1<<4) |
Definition at line 60 of file dlg_cb.h.
Referenced by __dialog_created(), dlg_onroute(), and setup_dialog_callbacks().
| #define DLGCB_RESPONSE_FWDED (1<<8) |
Definition at line 64 of file dlg_cb.h.
Referenced by __dialog_created(), dlg_onreply(), and setup_dialog_callbacks().
| #define DLGCB_RESPONSE_WITHIN (1<<9) |
Definition at line 65 of file dlg_cb.h.
Referenced by __dialog_created(), dlg_onroute(), dlg_seq_down_onreply(), dlg_seq_up_onreply(), and setup_dialog_callbacks().
| #define DLGCB_TERMINATED (1<<5) |
Definition at line 61 of file dlg_cb.h.
Referenced by __dialog_created(), bye_reply_cb(), dlg_onroute(), and setup_dialog_callbacks().
| typedef void( dialog_cb)(struct dlg_cell *dlg, int type, struct dlg_cb_params *params) |
| typedef void( param_free_cb)(void *param) |
| typedef int(* register_dlgcb_f)(struct dlg_cell *dlg, int cb_types, dialog_cb f, void *param, param_free_cb ff) |
| void destroy_dlg_callbacks | ( | unsigned int | type | ) |
Definition at line 85 of file dlg_cb.c.
References destroy_dlg_callbacks_list(), DLGCB_CREATED, DLGCB_LOADED, dlg_head_cbl::first, POINTER_CLOSED_MARKER, and shm_free.
Referenced by mod_destroy(), and mod_init().
| void destroy_dlg_callbacks_list | ( | struct dlg_callback * | cb | ) |
Definition at line 69 of file dlg_cb.c.
References dlg_callback::callback_param_free, dlg_callback::next, NULL, dlg_callback::param, and shm_free.
Referenced by destroy_dlg(), destroy_dlg_callbacks(), and register_dlgcb().
| int register_dlgcb | ( | struct dlg_cell * | dlg, | |
| int | types, | |||
| dialog_cb | f, | |||
| void * | param, | |||
| param_free_cb | ff | |||
| ) |
Definition at line 104 of file dlg_cb.c.
References dlg_callback::callback, dlg_callback::callback_param_free, cb, dlg_cell::cbs, destroy_dlg_callbacks_list(), DLGCB_CREATED, DLGCB_LOADED, dlg_head_cbl::first, init_dlg_callback(), LM_CRIT, LM_ERR, dlg_callback::next, NULL, dlg_callback::param, POINTER_CLOSED_MARKER, run_load_callback(), shm_free, shm_malloc(), dlg_head_cbl::types, and dlg_callback::types.
Referenced by load_dlg().
Definition at line 213 of file dlg_cb.c.
References dlg_callback::callback, cb, dlg_cb_params::direction, dlg_cb_params::dlg_data, DLG_DIR_DOWNSTREAM, DLGCB_CREATED, dlg_head_cbl::first, LM_DBG, dlg_cb_params::msg, dlg_callback::next, NULL, dlg_callback::param, and dlg_cb_params::param.
Referenced by dlg_new_dialog().
| void run_dlg_callbacks | ( | int | type, | |
| struct dlg_cell * | dlg, | |||
| struct sip_msg * | msg, | |||
| unsigned int | dir, | |||
| void * | dlg_data | |||
| ) |
Definition at line 236 of file dlg_cb.c.
References dlg_callback::callback, cb, dlg_cell::cbs, dlg_cb_params::direction, dlg_cb_params::dlg_data, dlg_head_cbl::first, LM_DBG, dlg_cb_params::msg, dlg_callback::next, dlg_callback::param, dlg_cb_params::param, dlg_callback::types, and dlg_head_cbl::types.
Referenced by bye_reply_cb(), destroy_dlg(), dlg_onreply(), dlg_onroute(), dlg_ontimeout(), dlg_seq_down_onreply(), dlg_seq_up_onreply(), and internal_mi_print_dlg().
| void run_load_callbacks | ( | void | ) |
Definition at line 200 of file dlg_cb.c.
References cb, dlg_head_cbl::first, dlg_callback::next, POINTER_CLOSED_MARKER, and run_load_callback().
Referenced by mod_init().
1.5.6