modules/tm/config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: config.h 5101 2008-10-22 08:03:56Z juhe $
00003  *
00004  * Copyright (C) 2001-2003 FhG Fokus
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 
00023 /*! \file
00024  * \brief TM :: Configuration
00025  *
00026  * \ingroup tm
00027  * - Module: \ref tm
00028  */
00029 
00030 
00031 
00032 #ifndef _TM_CONFIG_H
00033 #define _TM_CONFIG_H
00034 
00035 /* hash table engine and hash function
00036 */
00037 #include "../../hash_func.h"
00038 #include "../../config.h"
00039 
00040 
00041 /*! \brief size of TM hash table */
00042 #define TM_TABLE_ENTRIES     (1<<16)
00043 
00044 /*! \brief always use a power of 2 for hash table size */
00045 #define tm_hash( s1, s2 )     core_hash( &s1, &s2, TM_TABLE_ENTRIES)
00046 
00047 /*! \brief maximum length of localy generated acknowledgment */
00048 #define MAX_ACK_LEN   1024
00049 
00050 /*! \brief FINAL_RESPONSE_TIMER ... tells how long should the transaction engine
00051    wait if no final response comes back*/
00052 #define FR_TIME_OUT       30
00053 #define INV_FR_TIME_OUT   120
00054 
00055 /*! \brief final response timers to be used for serial forwarding */
00056 #define INV_FR_TIME_OUT_FIRST  90
00057 #define INV_FR_TIME_OUT_NEXT  30
00058 
00059 /*! \brief WAIT timer ... tells how long state should persist in memory after
00060    a transaction was finalized*/
00061 #define WT_TIME_OUT       5
00062 
00063 /*! \brief DELETE timer ... tells how long should the transaction persist in memory
00064    after it was removed from the hash table and before it will be deleted */
00065 #define DEL_TIME_OUT      2
00066  
00067 /* retransmission timers */
00068 #define RETR_T1           500        /*!< Retransmission timer T1 in milliseconds */
00069 #define RETR_T2           4000       /*!< Retransmission timer T2 in milliseconds */
00070 
00071 /*! \brief when first reply is sent, this additional space is allocated so that
00072    one does not have to reallocate share memory when the message is
00073    replaced by a subsequent, longer message
00074 */
00075 #define REPLY_OVERBUFFER_LEN 160
00076 #define TAG_OVERBUFFER_LEN 32
00077 
00078 /* dimensions of FIFO server */
00079 #define MAX_METHOD   64
00080 #define MAX_HEADER   1024
00081 #define MAX_BODY  1024
00082 #define MAX_DST      512
00083 #define MAX_FROM  512
00084 
00085 /* messages generated by server */
00086 #define CANCELING "canceling"
00087 #define CANCEL_DONE  "ok -- no more pending branches"
00088 #define CANCELED  "Request canceled"
00089 
00090 /*! \brief to-tag separator for stateful processing */
00091 #define TM_TAG_SEPARATOR '-'
00092 
00093 /*! \brief FIFO substitution character */
00094 #define SUBST_CHAR '!'
00095 
00096 #endif

Generated on Wed May 23 20:00:24 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6