sst_handlers.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2006 SOMA Networks, Inc.
00005  * Written By Ron Winacott (karwin)
00006  *
00007  * This file is part of SIP-router, a free SIP server.
00008  *
00009  * SIP-router 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  * SIP-router 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 
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 
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 
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 
00070 void sst_dialog_created_CB(struct dlg_cell *did, int type, 
00071                 struct dlg_cb_params * params);
00072 
00076 int sst_check_min(struct sip_msg *msg, char *str1, char *str2);
00077 
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_ */