modules_k/osp/globals.c

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