00001 /* 00002 * $Id: sst_handlers.h 4518 2008-07-28 15:39:28Z henningw $ 00003 * 00004 * Copyright (C) 2006 SOMA Networks, Inc. 00005 * Written By Ron Winacott (karwin) 00006 * 00007 * This file is part of Kamailio, a free SIP server. 00008 * 00009 * Kamailio is free software; you can redistribute it and/or modify it 00010 * under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version 00013 * 00014 * Kamailio is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00022 * USA 00023 * 00024 * History: 00025 * -------- 00026 * 2006-05-11 initial version (karwin) 00027 * 2006-10-10 Code cleanup of this header file. (karwin) 00028 */ 00029 00030 /*! \file sst/sst_handlers.h 00031 * \brief Session timer handling 00032 * \ingroup sst 00033 * Module: \ref sst 00034 */ 00035 00036 00037 #ifndef _SST_HANDLERS_H_ 00038 #define _SST_HANDLERS_H_ 00039 00040 #include "../../pvar.h" 00041 #include "../../parser/msg_parser.h" 00042 #include "../dialog/dlg_load.h" 00043 00044 00045 /*! \brief 00046 * Fag values used in the sst_info_t See below. 00047 */ 00048 enum sst_flags { 00049 SST_UNDF=0, /* 0 - --- */ 00050 SST_UAC=1, /* 1 - 2^0 */ 00051 SST_UAS=2, /* 2 - 2^1 */ 00052 SST_PXY=4, /* 4 - 2^2 */ 00053 SST_NSUP=8 /* 8 - 2^3 */ 00054 }; 00055 00056 /** \brief 00057 * The local state required to figure out if and who supports SST and 00058 * if and who will be the refresher. 00059 */ 00060 typedef struct sst_info_st { 00061 enum sst_flags requester; 00062 enum sst_flags supported; 00063 unsigned int interval; 00064 } sst_info_t; 00065 00066 00067 /** \brief 00068 * The static (opening) callback function for all dialog creations 00069 */ 00070 void sst_dialog_created_CB(struct dlg_cell *did, int type, 00071 struct dlg_cb_params * params); 00072 00073 /** \brief 00074 * The script function 00075 */ 00076 int sst_check_min(struct sip_msg *msg, char *str1, char *str2); 00077 00078 /** \brief 00079 * The handlers initializer function 00080 */ 00081 void sst_handler_init(pv_spec_t *timeout_avp, unsigned int minSE, 00082 int flag, unsigned int reject); 00083 00084 #endif /* _SST_HANDLERS_H_ */
1.5.6