options.h

Go to the documentation of this file.
00001 /*
00002  * $Id: options.h 5266 2008-11-25 15:24:03Z henningw $
00003  *
00004  * Options Reply Module
00005  *
00006  * Copyright (C) 2001-2003 FhG Fokus
00007  *
00008  * This file is part of Kamailio, a free SIP server.
00009  *
00010  * Kamailio is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version
00014  *
00015  * Kamailio is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  */
00024 
00025 /*!
00026  * \file siputils/options.c
00027  * \brief Options reply modules
00028  * \ingroup options
00029  * Module: \ref options
00030  */
00031 
00032 #ifndef OPT_RPL_H
00033 #define OPT_RPL_H
00034 
00035 #include "../../str.h"
00036 #include "../../parser/msg_parser.h"
00037 #include "../sl/sl_api.h"
00038 
00039 #define ACPT_STR "Accept: "
00040 #define ACPT_STR_LEN 8
00041 #define ACPT_ENC_STR "Accept-Encoding: "
00042 #define ACPT_ENC_STR_LEN 17
00043 #define ACPT_LAN_STR "Accept-Language: "
00044 #define ACPT_LAN_STR_LEN 17
00045 #define SUPT_STR "Supported: "
00046 #define SUPT_STR_LEN 11
00047 #define HF_SEP_STR "\r\n"
00048 #define HF_SEP_STR_LEN 2
00049 
00050 /*
00051  * I think RFC3261 is not precise if a proxy should accept any
00052  * or no body (because it is not the endpoint of the media)
00053  */
00054 #define ACPT_DEF "*/*"
00055 #define ACPT_ENC_DEF ""
00056 #define ACPT_LAN_DEF "en"
00057 #define SUPT_DEF ""
00058 
00059 extern struct sl_binds opt_slb;
00060 
00061 extern str opt_accept;
00062 extern str opt_accept_enc;
00063 extern str opt_accept_lang;
00064 extern str opt_supported;
00065 
00066 int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar);
00067 
00068 #endif

Generated on Thu May 24 00:00:28 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6