modules_s/osp/osp_mod.h

00001 /*
00002  * ser osp module. 
00003  *
00004  * This module enables ser to communicate with an Open Settlement 
00005  * Protocol (OSP) server.  The Open Settlement Protocol is an ETSI 
00006  * defined standard for Inter-Domain VoIP pricing, authorization
00007  * and usage exchange.  The technical specifications for OSP 
00008  * (ETSI TS 101 321 V4.1.1) are available at www.etsi.org.
00009  *
00010  * Uli Abend was the original contributor to this module.
00011  * 
00012  * Copyright (C) 2001-2005 Fhg Fokus
00013  *
00014  * This file is part of ser, a free SIP server.
00015  *
00016  * ser is free software; you can redistribute it and/or modify
00017  * it under the terms of the GNU General Public License as published by
00018  * the Free Software Foundation; either version 2 of the License, or
00019  * (at your option) any later version
00020  *
00021  * For a license to use the ser software under conditions
00022  * other than those described here, or to purchase support for this
00023  * software, please contact iptel.org by e-mail at the following addresses:
00024  *    info@iptel.org
00025  *
00026  * ser is distributed in the hope that it will be useful,
00027  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00028  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00029  * GNU General Public License for more details.
00030  *
00031  * You should have received a copy of the GNU General Public License
00032  * along with this program; if not, write to the Free Software
00033  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00034  */
00035 
00036 #ifndef _OSP_MOD_H_
00037 #define _OSP_MOD_H_
00038 
00039 #define MODULE_RETURNCODE_TRUE          1
00040 #define MODULE_RETURNCODE_STOPROUTE     0
00041 #define MODULE_RETURNCODE_FALSE         -1
00042 
00043 #define OSP_DEF_SPS                     16
00044 #define OSP_DEF_WEIGHT                  1000
00045 #define OSP_DEF_HW                      0
00046 #define OSP_DEF_CALLID                  1    /* Validate call ids, set to 0 to disable */
00047 #define OSP_DEF_TOKEN                   2
00048 #define OSP_DEF_SSLLIFE                 300
00049 #define OSP_DEF_PERSISTENCE             (60 * 1000)
00050 #define OSP_DEF_DELAY                   0
00051 #define OSP_DEF_RETRY                   2
00052 #define OSP_DEF_TIMEOUT                 (60 * 1000)
00053 #define OSP_DEF_DESTS                   5
00054 #define OSP_DEF_USERPID                 1
00055 #define OSP_DEF_REDIRURI                0   /* 0 for "xxxxxxxxxx@xxx.xxx.xxx.xxx", 1 for "<xxxxxxxxxx@xxx.xxx.xxx.xxx>" format */
00056 
00057 #define OSP_KEYBUF_SIZE                 256
00058 #define OSP_STRBUF_SIZE                 256
00059 #define OSP_E164BUF_SIZE                1024
00060 #define OSP_TOKENBUF_SIZE               2048
00061 #define OSP_HEADERBUF_SIZE              3072
00062 
00063 #endif /* _OSP_MOD_H_ */
00064