modules_s/osp/globals.c

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 #include <stdio.h>
00037 #include <osp/osp.h>
00038 #include "osp_mod.h"
00039 
00040 unsigned int _osp_sp_number;
00041 char* _osp_sp_uris[OSP_DEF_SPS];
00042 unsigned long _osp_sp_weights[OSP_DEF_SPS] = {
00043     OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT,
00044     OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT,
00045     OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT,
00046     OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT, OSP_DEF_WEIGHT
00047 };
00048 char* _osp_device_ip = NULL;
00049 char* _osp_device_port = NULL;
00050 unsigned char* _osp_private_key = NULL;
00051 unsigned char* _osp_local_certificate = NULL;
00052 unsigned char* _osp_ca_certificate = NULL;
00053 int _osp_crypto_hw = OSP_DEF_HW;
00054 int _osp_validate_callid = OSP_DEF_CALLID;
00055 int _osp_token_format = OSP_DEF_TOKEN;
00056 int _osp_ssl_lifetime = OSP_DEF_SSLLIFE;
00057 int _osp_persistence = OSP_DEF_PERSISTENCE;
00058 int _osp_retry_delay = OSP_DEF_DELAY;
00059 int _osp_retry_limit = OSP_DEF_RETRY;
00060 int _osp_timeout = OSP_DEF_TIMEOUT;
00061 int _osp_max_dests = OSP_DEF_DESTS;
00062 int _osp_use_rpid = OSP_DEF_USERPID;
00063 int _osp_redir_uri = OSP_DEF_REDIRURI;
00064 char _osp_PRIVATE_KEY[OSP_KEYBUF_SIZE];
00065 char _osp_LOCAL_CERTIFICATE[OSP_KEYBUF_SIZE];
00066 char _osp_CA_CERTIFICATE[OSP_KEYBUF_SIZE];
00067 
00068 OSPTPROVHANDLE _osp_provider = -1;
00069