00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
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