dlg_handlers.h

Go to the documentation of this file.
00001 /*
00002  * $Id: dlg_handlers.h 5529 2009-01-28 21:51:20Z miconda $
00003  *
00004  * Copyright (C) 2006 Voice System SRL
00005  *
00006  * This file is part of Kamailio, a free SIP server.
00007  *
00008  * Kamailio is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * Kamailio is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License 
00019  * along with this program; if not, write to the Free Software 
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  * History:
00023  * --------
00024  * 2006-04-14  initial version (bogdan)
00025  * 2007-03-06  syncronized state machine added for dialog state. New tranzition
00026  *             design based on events; removed num_1xx and num_2xx (bogdan)
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 /* values for the sequential match mode */
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 /* item/pseudo-variables functions */
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

Generated on Tue May 22 16:00:26 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6