osp_mod.h

Go to the documentation of this file.
00001 /*
00002  * openser osp module. 
00003  *
00004  * This module enables openser 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 Kamailio, a free SIP server.
00015  *
00016  * Kamailio 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  * Kamailio is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00024  * GNU General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU General Public License
00027  * along with this program; if not, write to the Free Software
00028  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00029  */
00030 
00031 #ifndef _OSP_MOD_H_
00032 #define _OSP_MOD_H_
00033 
00034 #define MODULE_RETURNCODE_TRUE          1
00035 #define MODULE_RETURNCODE_STOPROUTE     0
00036 #define MODULE_RETURNCODE_FALSE         -1
00037 #define MODULE_RETURNCODE_ERROR         -2
00038 
00039 #define OSP_DEF_SPS                     16
00040 #define OSP_DEF_WEIGHT                  1000
00041 #define OSP_DEF_HW                      0
00042 #define OSP_DEF_CALLID                  1    /* Validate call ids, set to 0 to disable */
00043 #define OSP_DEF_TOKEN                   2
00044 #define OSP_DEF_SSLLIFE                 300
00045 #define OSP_DEF_PERSISTENCE             (60 * 1000)
00046 #define OSP_DEF_DELAY                   0
00047 #define OSP_DEF_RETRY                   2
00048 #define OSP_DEF_TIMEOUT                 (60 * 1000)
00049 #define OSP_DEF_DESTS                   5
00050 #define OSP_DEF_USERPID                 1
00051 #define OSP_DEF_REDIRURI                0   /* 0 for "xxxxxxxxxx@xxx.xxx.xxx.xxx", 1 for "<xxxxxxxxxx@xxx.xxx.xxx.xxx>" format */
00052 #define OSP_DEF_SNIDAVP                 "$avp(s:_osp_source_networkid_)"
00053 
00054 #define OSP_KEYBUF_SIZE                 256
00055 #define OSP_STRBUF_SIZE                 256
00056 #define OSP_E164BUF_SIZE                1024
00057 #define OSP_TOKENBUF_SIZE               2048
00058 #define OSP_HEADERBUF_SIZE              3072
00059 
00060 #endif /* _OSP_MOD_H_ */
00061 

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