#include "parser/msg_parser.h"


Go to the source code of this file.
Data Structures | |
| struct | script_cb |
Defines | |
| #define | POST_SCRIPT_CB (1<<1) |
| #define | PRE_SCRIPT_CB (1<<0) |
| #define | REQ_TYPE_CB (1<<2) |
| #define | RPL_TYPE_CB (1<<3) |
Typedefs | |
| typedef int( | cb_function )(struct sip_msg *msg, void *param) |
Functions | |
| void | destroy_script_cb (void) |
| Destroy all callbacks. | |
| int | exec_post_req_cb (struct sip_msg *msg) |
| Execute post-request callbacks. | |
| int | exec_post_rpl_cb (struct sip_msg *msg) |
| Execute post-reply callbacks. | |
| int | exec_pre_req_cb (struct sip_msg *msg) |
| Execute pre-request callbacks. | |
| int | exec_pre_rpl_cb (struct sip_msg *msg) |
| Execute pre-reply callbacks. | |
| int | register_script_cb (cb_function f, int type, void *param) |
| Register a script callback function. | |
Definition in file script_cb.h.
| #define POST_SCRIPT_CB (1<<1) |
post-script callback
Definition at line 42 of file script_cb.h.
Referenced by mod_init(), and register_script_cb().
| #define PRE_SCRIPT_CB (1<<0) |
pre-script callback
Definition at line 41 of file script_cb.h.
Referenced by mod_init(), and register_script_cb().
| #define REQ_TYPE_CB (1<<2) |
request callback
Definition at line 43 of file script_cb.h.
Referenced by mod_init(), and register_script_cb().
| #define RPL_TYPE_CB (1<<3) |
reply callback
Definition at line 44 of file script_cb.h.
Referenced by mod_init(), and register_script_cb().
| typedef int( cb_function)(struct sip_msg *msg, void *param) |
Callback function
Definition at line 38 of file script_cb.h.
| void destroy_script_cb | ( | void | ) |
Destroy all callbacks.
Definition at line 149 of file script_cb.c.
References destroy_cb_list().
Referenced by cleanup().
| int exec_post_req_cb | ( | struct sip_msg * | msg | ) |
Execute post-request callbacks.
| msg | SIP message |
Definition at line 217 of file script_cb.c.
References exec_post_cb().
Referenced by dlg_ontimeout(), and receive_msg().
| int exec_post_rpl_cb | ( | struct sip_msg * | msg | ) |
Execute post-reply callbacks.
| msg | SIP message |
Definition at line 228 of file script_cb.c.
References exec_post_cb().
Referenced by receive_msg().
| int exec_pre_req_cb | ( | struct sip_msg * | msg | ) |
Execute pre-request callbacks.
| msg | SIP message |
Definition at line 195 of file script_cb.c.
References exec_pre_cb().
Referenced by dlg_ontimeout(), and receive_msg().
| int exec_pre_rpl_cb | ( | struct sip_msg * | msg | ) |
Execute pre-reply callbacks.
| msg | SIP message |
Definition at line 206 of file script_cb.c.
References exec_pre_cb().
Referenced by receive_msg().
| int register_script_cb | ( | cb_function | f, | |
| int | type, | |||
| void * | param | |||
| ) |
Register a script callback function.
| f | callback function | |
| type | callback type | |
| param | callback parameter |
Definition at line 89 of file script_cb.c.
References add_callback(), LM_CRIT, LM_ERR, POST_SCRIPT_CB, PRE_SCRIPT_CB, REQ_TYPE_CB, and RPL_TYPE_CB.
Referenced by mod_init().
1.5.6