dlg_handlers.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _DIALOG_DLG_HANDLERS_H_
00031 #define _DIALOG_DLG_HANDLERS_H_
00032
00033 #include "../../parser/msg_parser.h"
00034 #include "../../str.h"
00035 #include "../../pvar.h"
00036 #include "../tm/t_hooks.h"
00037 #include "dlg_timer.h"
00038
00039 #define MAX_DLG_RR_PARAM_NAME 32
00040
00041
00042 #define SEQ_MATCH_STRICT_ID 0
00043 #define SEQ_MATCH_FALLBACK 1
00044 #define SEQ_MATCH_NO_ID 2
00045
00046 void init_dlg_handlers(char *rr_param, int dlg_flag,
00047 pv_spec_t *timeout_avp, int default_timeout,
00048 int seq_match_mode);
00049
00050 void destroy_dlg_handlers(void);
00051
00052 void dlg_onreq(struct cell* t, int type, struct tmcb_params *param);
00053
00054 void dlg_onroute(struct sip_msg* req, str *rr_param, void *param);
00055
00056 void dlg_ontimeout( struct dlg_tl *tl);
00057
00058 int dlg_new_dialog(struct sip_msg *msg, struct cell *t);
00059
00060
00061 int pv_get_dlg_lifetime(struct sip_msg *msg, pv_param_t *param,
00062 pv_value_t *res);
00063
00064 int pv_get_dlg_status(struct sip_msg *msg, pv_param_t *param,
00065 pv_value_t *res);
00066 #endif