Open Settlement Protocol (OSP) Applications. More...
#include "asterisk.h"
#include <osp/osp.h>
#include <osp/osputils.h>
#include <osp/ospb64.h>
#include "asterisk/paths.h"
#include "asterisk/lock.h"
#include "asterisk/config.h"
#include "asterisk/utils.h"
#include "asterisk/causes.h"
#include "asterisk/channel.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/cli.h"
#include "asterisk/astosp.h"
Go to the source code of this file.
Data Structures | |
struct | osp_callid |
struct | osp_diversion |
struct | osp_metrics |
struct | osp_npdata |
struct | osp_provider |
struct | osp_results |
Macros | |
#define | OSP_AST_ERROR ((int)-1) /* Asterisk function call error */ |
#define | OSP_AST_OK ((int)0) /* Asterisk function call successful */ |
#define | OSP_AUDIT_URL ((const char*)"localhost") /* OSP default Audit URL */ |
#define | OSP_CALLID_H323 ((unsigned int)(1 << 1)) /* H.323 */ |
#define | OSP_CALLID_IAX ((unsigned int)(1 << 2)) /* IAX2 */ |
#define | OSP_CALLID_MAXNUM ((unsigned int)3) /* Max number of call ID types */ |
#define | OSP_CALLID_SIP ((unsigned int)(1 << 0)) /* SIP */ |
#define | OSP_CALLID_UNDEF ((unsigned int)0) /* Undefined */ |
#define | OSP_CONFIG_FILE ((const char*)"osp.conf") /* OSP configuration file name */ |
#define | OSP_CUSTOMER_ID ((const char*)"") /* OSP customer ID */ |
#define | OSP_DEF_AUTHPOLICY OSP_AUTH_YES /* OSP default auth policy, yes */ |
#define | OSP_DEF_FLOATSTATS ((float)-1) /* OSP default float statistic */ |
#define | OSP_DEF_INTSTATS ((int)-1) /* OSP default int statistic */ |
#define | OSP_DEF_MAXCONNECT ((unsigned int)20) /* OSP default max_connections */ |
#define | OSP_DEF_MAXDESTS ((unsigned int)5) /* OSP default max number of destinations */ |
#define | OSP_DEF_PROTOCOL OSP_PROT_SIP /* OSP default destination protocol, SIP */ |
#define | OSP_DEF_PROVIDER ((const char*)"default") /* OSP default provider context name */ |
#define | OSP_DEF_RETRYDELAY ((unsigned int)0) /* OSP default retry delay */ |
#define | OSP_DEF_RETRYLIMIT ((unsigned int)2) /* OSP default retry times */ |
#define | OSP_DEF_SRVTYPE OSP_SRV_VOICE /* OSP default service type, voice */ |
#define | OSP_DEF_TIMELIMIT ((unsigned int)0) /* OSP default duration limit, no limit */ |
#define | OSP_DEF_TIMEOUT ((unsigned int)500) /* OSP default timeout in ms */ |
#define | OSP_DEF_WORKMODE OSP_MODE_DIRECT /* OSP default work mode, direct */ |
#define | OSP_DEVICE_ID ((const char*)"") /* OSP device ID */ |
#define | OSP_ERROR ((int)-1) /* OSP function call error */ |
#define | OSP_FAILED ((int)0) /* OSP function call failed */ |
#define | OSP_GENERAL_CAT ((const char*)"general") /* OSP global configuration context name */ |
#define | OSP_HTTP_PERSISTENCE ((int)1) /* In seconds */ |
#define | OSP_INVALID_HANDLE ((int)-1) /* Invalid OSP handle, provider, transaction etc. */ |
#define | OSP_LOCAL_VALIDATION ((int)1) /* Validate OSP token locally */ |
#define | OSP_MAX_CERTS ((unsigned int)10) /* OSP max number of cacerts */ |
#define | OSP_MAX_CUSTOMINFO ((unsigned int)8) /* OSP max number of custom info */ |
#define | OSP_MAX_MAXCONNECT ((unsigned int)1000) /* OSP max max_connections */ |
#define | OSP_MAX_RETRYDELAY ((unsigned int)10) /* OSP max retry delay */ |
#define | OSP_MAX_RETRYLIMIT ((unsigned int)100) /* OSP max retry times */ |
#define | OSP_MAX_SPOINTS ((unsigned int)10) /* OSP max number of service points */ |
#define | OSP_MAX_TIMEOUT ((unsigned int)10000) /* OSP max timeout in ms */ |
#define | OSP_MIN_MAXCONNECT ((unsigned int)1) /* OSP min max_connections */ |
#define | OSP_MIN_RETRYDELAY ((unsigned int)0) /* OSP min retry delay */ |
#define | OSP_MIN_RETRYLIMIT ((unsigned int)0) /* OSP min retry times */ |
#define | OSP_MIN_TIMEOUT ((unsigned int)200) /* OSP min timeout in ms */ |
#define | OSP_OK ((int)1) /* OSP function call successful */ |
#define | OSP_PROT_H323 ((const char*)"H323") /* H.323 Q.931 protocol name*/ |
#define | OSP_PROT_IAX ((const char*)"IAX") /* IAX2 protocol name */ |
#define | OSP_PROT_SIP ((const char*)"SIP") /* SIP protocol name */ |
#define | OSP_PROT_SKYPE ((const char*)"SKYPE") /* Skype protocol name */ |
#define | OSP_SIP_HEADER ((const char*)"P-OSP-Auth-Token") |
#define | OSP_SIZE_INTSTR ((unsigned int)16) /* OSP signed/unsigned int string buffer size */ |
#define | OSP_SIZE_KEYSTR ((unsigned int)1024) /* OSP certificate string buffer size */ |
#define | OSP_SIZE_NORSTR ((unsigned int)256) /* OSP normal string buffer size */ |
#define | OSP_SIZE_QOSSTR ((unsigned int)1024) /* QoS string buffer size */ |
#define | OSP_SIZE_TECHSTR ((unsigned int)32) /* OSP signed/unsigned int string buffer size */ |
#define | OSP_SIZE_TOKSTR ((unsigned int)4096) /* OSP token string buffer size */ |
#define | OSP_SIZE_UUID ((unsigned int)16) /* UUID size */ |
#define | OSP_SIZE_UUIDSTR ((unsigned int)36) /* UUID string size */ |
#define | OSP_SSL_LIFETIME ((unsigned int)300) /* SSL life time, in seconds */ |
#define | OSP_TECH_H323 ((const char*)"H323") /* OH323 tech name */ |
#define | OSP_TECH_IAX ((const char*)"IAX2") /* IAX2 tech name */ |
#define | OSP_TECH_SIP ((const char*)"SIP") /* SIP tech name */ |
#define | OSP_TECH_SKYPE ((const char*)"SKYPE") /* Skype tech name */ |
Enumerations | |
enum | osp_authpolicy { OSP_AUTH_NO = 0, OSP_AUTH_YES, OSP_AUTH_EXC } |
enum | osp_callleg { OSP_CALL_INBOUND, OSP_CALL_OUTBOUND } |
enum | osp_direction { OSP_DIR_RX = 0, OSP_DIR_TX, OSP_DIR_NUMBER } |
enum | osp_srvtype { OSP_SRV_VOICE = 0, OSP_SRV_NPQUERY } |
enum | osp_workmode { OSP_MODE_DIRECT = 0, OSP_MODE_INDIRECT } |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static OSPEFAILREASON | asterisk2osp (int cause) |
Convert Asterisk status to TC code. More... | |
static char * | handle_cli_osp_show (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static int | load_module (void) |
static int | osp_auth (const char *name, int *trans, const char *source, const char *calling, const char *called, const char *token, unsigned int *timelimit) |
OSP Authentication function. More... | |
static int | osp_check_destination (struct osp_provider *provider, const char *calling, const char *called, const char *destination, unsigned int tokenlen, const char *token, OSPEFAILREASON *reason, struct osp_results *results) |
Choose min duration limit. More... | |
static unsigned int | osp_choose_timelimit (unsigned int in, unsigned int out) |
Choose min duration limit. More... | |
static void | osp_convert_inout (const char *src, char *dest, unsigned int destsize) |
Convert "address:port" to "[x.x.x.x]:port" or "hostname:port" format. More... | |
static void | osp_convert_outin (const char *src, char *dest, unsigned int destsize) |
Convert "[x.x.x.x]:port" or "hostname:prot" to "address:port" format. More... | |
static int | osp_create_callid (unsigned int type, struct osp_callid *callid) |
Create a call ID according to the type. More... | |
static int | osp_create_provider (struct ast_config *cfg, const char *name) |
Create OSP provider handle according to configuration. More... | |
static int | osp_create_transaction (const char *name, int *trans, char *source, unsigned int srcsize) |
Create OSP transaction handle. More... | |
static int | osp_create_uuid (unsigned char *uuid, unsigned int *bufsize) |
Create a UUID. More... | |
static int | osp_finish (int trans, int recorded, int cause, time_t start, time_t connect, time_t end, unsigned int release, const char *inqos, const char *outqos) |
OSP Finish function. More... | |
static int | osp_get_provider (const char *name, struct osp_provider **provider) |
Get OSP provider by name. More... | |
static float | osp_get_varfloat (const char *vstr) |
Get float from variable string. More... | |
static int | osp_get_varint (const char *vstr) |
Get integer from variable string. More... | |
static int | osp_load (int reload) |
static int | osp_lookup (const char *name, unsigned int callidtypes, const char *actualsrc, const char *srcdev, const char *calling, const char *called, const char *snetid, struct osp_npdata *np, struct osp_diversion *div, const char *cinfo[], struct osp_results *results) |
OSP Lookup function. More... | |
static int | osp_next (const char *name, int cause, struct osp_results *results) |
OSP Lookup Next function. More... | |
static int | osp_report_qos (int trans, enum osp_callleg leg, const char *qos) |
Report QoS. More... | |
static int | osp_unload (void) |
static int | osp_uuid2str (unsigned char *uuid, char *buffer, unsigned int bufsize) |
UUID to string. More... | |
static int | osp_validate_token (int trans, const char *source, const char *destination, const char *calling, const char *called, const char *token, unsigned int *timelimit) |
Validate OSP token of inbound call. More... | |
static int | ospauth_exec (struct ast_channel *chan, const char *data) |
OSP Application OSPAuth. More... | |
static int | ospfinished_exec (struct ast_channel *chan, const char *data) |
OSP Application OSPFinish. More... | |
static int | osplookup_exec (struct ast_channel *chan, const char *data) |
OSP Application OSPLookup. More... | |
static int | ospnext_exec (struct ast_channel *chan, const char *data) |
OSP Application OSPNext. More... | |
static int | reload (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Open Settlement Protocol Applications" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .reload = reload, } |
static const char | app1 [] = "OSPAuth" |
static const char | app2 [] = "OSPLookup" |
static const char | app3 [] = "OSPNext" |
static const char | app4 [] = "OSPFinish" |
static struct ast_module_info * | ast_module_info = &__mod_info |
const char * | B64CACert = "MIIBYDCCAQoCAQEwDQYJKoZIhvcNAQEEBQAwOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMB4XDTAyMDIwNDE4MjU1MloXDTEyMDIwMzE4MjU1MlowOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAPGeGwV41EIhX0jEDFLRXQhDEr50OUQPq+f55VwQd0TQNts06BP29+UiNdRW3c3IRHdZcJdC1Cg68ME9cgeq0h8CAwEAATANBgkqhkiG9w0BAQQFAANBAGkzBSj1EnnmUxbaiG1N4xjIuLAWydun7o3bFk2tV8dBIhnuh445obYyk1EnQ27kI7eACCILBZqi2MHDOIMnoN0=" |
const char * | B64LCert = "MIIBeTCCASMCEHqkOHVRRWr+1COq3CR/xsowDQYJKoZIhvcNAQEEBQAwOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMB4XDTA1MDYyMzAwMjkxOFoXDTA2MDYyNDAwMjkxOFowRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQCvLeZfj1G0wuJb8JTcVeZaZftncEmRluOnaME3ustd918lRMDYokZmtmDZN8SrP0yd1pfVqZ7NkmBACbBX0k7pAgMBAAEwDQYJKoZIhvcNAQEEBQADQQDnV8QNFVVJx/+7IselU0wsepqMurivXZzuxOmTEmTVDzCJx1xhA8jd3vGAj7XDIYiPub1PV23eY5a2ARJuw5w9" |
const char * | B64PKey = "MIIBOgIBAAJBAK8t5l+PUbTC4lvwlNxV5lpl+2dwSZGW46dowTe6y133XyVEwNiiRma2YNk3xKs/TJ3Wl9Wpns2SYEAJsFfSTukCAwEAAQJAPz13vCm2GmZ8Zyp74usTxLCqSJZNyMRLHQWBM0g44Iuy4wE3vpi7Wq+xYuSOH2mu4OddnxswCP4QhaXVQavTAQIhAOBVCKXtppEw9UaOBL4vW0Ed/6EA/1D8hDW6St0h7EXJAiEAx+iRmZKhJD6VT84dtX5ZYNVk3j3dAcIOovpzUj9a0CECIEduTCapmZQ5xqAEsLXuVlxRtQgLTUD4ZxDElPn8x0MhAiBE2HlcND0+qDbvtwJQQOUzDgqg5xk3w8capboVdzAlQQIhAMC+lDL7+gDYkNAft5Mu+NObJmQs4Cr+DkDFsKqoxqrm" |
static struct ast_cli_entry | cli_osp [] |
static int | osp_hardware = 0 |
static int | osp_initialized = 0 |
static ast_mutex_t | osp_lock = { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP , NULL, 1 } |
static struct osp_provider * | osp_providers = NULL |
static int | osp_security = 0 |
static unsigned int | osp_tokenformat = TOKEN_ALGO_SIGNED |
Open Settlement Protocol (OSP) Applications.
The OSP Toolkit: http://www.transnexus.com
OpenSSL http://www.openssl.org
Definition in file app_osplookup.c.
#define OSP_AST_ERROR ((int)-1) /* Asterisk function call error */ |
Definition at line 485 of file app_osplookup.c.
Referenced by ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
#define OSP_AST_OK ((int)0) /* Asterisk function call successful */ |
Definition at line 484 of file app_osplookup.c.
Referenced by ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
#define OSP_AUDIT_URL ((const char*)"localhost") /* OSP default Audit URL */ |
Definition at line 505 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_CALLID_H323 ((unsigned int)(1 << 1)) /* H.323 */ |
Definition at line 442 of file app_osplookup.c.
Referenced by osp_create_callid(), osplookup_exec(), and ospnext_exec().
#define OSP_CALLID_IAX ((unsigned int)(1 << 2)) /* IAX2 */ |
Definition at line 443 of file app_osplookup.c.
Referenced by osp_create_callid(), and osplookup_exec().
#define OSP_CALLID_MAXNUM ((unsigned int)3) /* Max number of call ID types */ |
Definition at line 444 of file app_osplookup.c.
Referenced by osp_lookup().
#define OSP_CALLID_SIP ((unsigned int)(1 << 0)) /* SIP */ |
Definition at line 441 of file app_osplookup.c.
Referenced by osp_create_callid(), and osplookup_exec().
#define OSP_CALLID_UNDEF ((unsigned int)0) /* Undefined */ |
Definition at line 440 of file app_osplookup.c.
Referenced by osplookup_exec(), and ospnext_exec().
#define OSP_CONFIG_FILE ((const char*)"osp.conf") /* OSP configuration file name */ |
Definition at line 487 of file app_osplookup.c.
Referenced by osp_load().
#define OSP_CUSTOMER_ID ((const char*)"") /* OSP customer ID */ |
Definition at line 509 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_AUTHPOLICY OSP_AUTH_YES /* OSP default auth policy, yes */ |
Definition at line 504 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_FLOATSTATS ((float)-1) /* OSP default float statistic */ |
Definition at line 518 of file app_osplookup.c.
Referenced by osp_get_varfloat(), and osp_report_qos().
#define OSP_DEF_INTSTATS ((int)-1) /* OSP default int statistic */ |
Definition at line 517 of file app_osplookup.c.
Referenced by osp_finish(), osp_get_varint(), and osp_report_qos().
#define OSP_DEF_MAXCONNECT ((unsigned int)20) /* OSP default max_connections */ |
Definition at line 492 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_MAXDESTS ((unsigned int)5) /* OSP default max number of destinations */ |
Definition at line 511 of file app_osplookup.c.
Referenced by osp_lookup().
#define OSP_DEF_PROTOCOL OSP_PROT_SIP /* OSP default destination protocol, SIP */ |
Definition at line 513 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 489 of file app_osplookup.c.
Referenced by ospauth_exec(), osplookup_exec(), and ospnext_exec().
#define OSP_DEF_RETRYDELAY ((unsigned int)0) /* OSP default retry delay */ |
Definition at line 495 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_RETRYLIMIT ((unsigned int)2) /* OSP default retry times */ |
Definition at line 498 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_SRVTYPE OSP_SRV_VOICE /* OSP default service type, voice */ |
Definition at line 515 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_TIMELIMIT ((unsigned int)0) /* OSP default duration limit, no limit */ |
Definition at line 512 of file app_osplookup.c.
Referenced by osp_auth(), osp_choose_timelimit(), osp_lookup(), osp_next(), ospauth_exec(), osplookup_exec(), and ospnext_exec().
#define OSP_DEF_TIMEOUT ((unsigned int)500) /* OSP default timeout in ms */ |
Definition at line 501 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_WORKMODE OSP_MODE_DIRECT /* OSP default work mode, direct */ |
Definition at line 514 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEVICE_ID ((const char*)"") /* OSP device ID */ |
Definition at line 510 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_ERROR ((int)-1) /* OSP function call error */ |
Definition at line 483 of file app_osplookup.c.
Referenced by osp_auth(), osp_check_destination(), osp_create_callid(), osp_create_provider(), osp_create_transaction(), osp_create_uuid(), osp_finish(), osp_lookup(), osp_next(), osp_uuid2str(), and osp_validate_token().
#define OSP_FAILED ((int)0) /* OSP function call failed */ |
Definition at line 482 of file app_osplookup.c.
Referenced by osp_auth(), osp_check_destination(), osp_create_callid(), osp_create_provider(), osp_create_transaction(), osp_finish(), osp_get_provider(), osp_lookup(), osp_next(), osp_report_qos(), and osp_validate_token().
Definition at line 488 of file app_osplookup.c.
Referenced by osp_load().
#define OSP_HTTP_PERSISTENCE ((int)1) /* In seconds */ |
Definition at line 508 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_INVALID_HANDLE ((int)-1) /* Invalid OSP handle, provider, transaction etc. */ |
Definition at line 486 of file app_osplookup.c.
Referenced by osp_auth(), osp_create_provider(), osp_create_transaction(), osp_finish(), osp_lookup(), osp_next(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
#define OSP_LOCAL_VALIDATION ((int)1) /* Validate OSP token locally */ |
Definition at line 506 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MAX_CERTS ((unsigned int)10) /* OSP max number of cacerts */ |
Definition at line 490 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MAX_CUSTOMINFO ((unsigned int)8) /* OSP max number of custom info */ |
Definition at line 516 of file app_osplookup.c.
Referenced by osp_lookup(), and osplookup_exec().
#define OSP_MAX_MAXCONNECT ((unsigned int)1000) /* OSP max max_connections */ |
Definition at line 494 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MAX_RETRYDELAY ((unsigned int)10) /* OSP max retry delay */ |
Definition at line 497 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MAX_RETRYLIMIT ((unsigned int)100) /* OSP max retry times */ |
Definition at line 500 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 491 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MAX_TIMEOUT ((unsigned int)10000) /* OSP max timeout in ms */ |
Definition at line 503 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MIN_MAXCONNECT ((unsigned int)1) /* OSP min max_connections */ |
Definition at line 493 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MIN_RETRYDELAY ((unsigned int)0) /* OSP min retry delay */ |
Definition at line 496 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MIN_RETRYLIMIT ((unsigned int)0) /* OSP min retry times */ |
Definition at line 499 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MIN_TIMEOUT ((unsigned int)200) /* OSP min timeout in ms */ |
Definition at line 502 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_OK ((int)1) /* OSP function call successful */ |
Definition at line 481 of file app_osplookup.c.
Referenced by osp_auth(), osp_check_destination(), osp_create_callid(), osp_create_provider(), osp_create_transaction(), osp_create_uuid(), osp_finish(), osp_get_provider(), osp_lookup(), osp_next(), osp_report_qos(), osp_uuid2str(), osp_validate_token(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
#define OSP_PROT_H323 ((const char*)"H323") /* H.323 Q.931 protocol name*/ |
Definition at line 448 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_PROT_IAX ((const char*)"IAX") /* IAX2 protocol name */ |
Definition at line 449 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_PROT_SIP ((const char*)"SIP") /* SIP protocol name */ |
Definition at line 447 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_PROT_SKYPE ((const char*)"SKYPE") /* Skype protocol name */ |
Definition at line 450 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_SIP_HEADER ((const char*)"P-OSP-Auth-Token") |
Definition at line 459 of file app_osplookup.c.
Referenced by osplookup_exec(), and ospnext_exec().
#define OSP_SIZE_INTSTR ((unsigned int)16) /* OSP signed/unsigned int string buffer size */ |
Definition at line 430 of file app_osplookup.c.
Referenced by ospauth_exec(), and ospfinished_exec().
#define OSP_SIZE_KEYSTR ((unsigned int)1024) /* OSP certificate string buffer size */ |
Definition at line 432 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_SIZE_NORSTR ((unsigned int)256) /* OSP normal string buffer size */ |
Definition at line 431 of file app_osplookup.c.
Referenced by osp_auth(), osp_check_destination(), osp_convert_inout(), osp_convert_outin(), osp_lookup(), osp_next(), osp_report_qos(), and osp_validate_token().
#define OSP_SIZE_QOSSTR ((unsigned int)1024) /* QoS string buffer size */ |
Definition at line 437 of file app_osplookup.c.
Referenced by ospfinished_exec().
#define OSP_SIZE_TECHSTR ((unsigned int)32) /* OSP signed/unsigned int string buffer size */ |
Definition at line 434 of file app_osplookup.c.
#define OSP_SIZE_TOKSTR ((unsigned int)4096) /* OSP token string buffer size */ |
Definition at line 433 of file app_osplookup.c.
Referenced by osp_lookup(), osp_next(), osp_validate_token(), osplookup_exec(), and ospnext_exec().
#define OSP_SIZE_UUID ((unsigned int)16) /* UUID size */ |
Definition at line 435 of file app_osplookup.c.
Referenced by osp_create_uuid().
#define OSP_SIZE_UUIDSTR ((unsigned int)36) /* UUID string size */ |
Definition at line 436 of file app_osplookup.c.
Referenced by osp_uuid2str().
#define OSP_SSL_LIFETIME ((unsigned int)300) /* SSL life time, in seconds */ |
Definition at line 507 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_TECH_H323 ((const char*)"H323") /* OH323 tech name */ |
Definition at line 454 of file app_osplookup.c.
Referenced by osp_check_destination(), osplookup_exec(), and ospnext_exec().
#define OSP_TECH_IAX ((const char*)"IAX2") /* IAX2 tech name */ |
Definition at line 455 of file app_osplookup.c.
Referenced by osp_check_destination(), osplookup_exec(), and ospnext_exec().
#define OSP_TECH_SIP ((const char*)"SIP") /* SIP tech name */ |
Definition at line 453 of file app_osplookup.c.
Referenced by osp_check_destination(), osplookup_exec(), and ospnext_exec().
#define OSP_TECH_SKYPE ((const char*)"SKYPE") /* Skype tech name */ |
Definition at line 456 of file app_osplookup.c.
Referenced by osp_check_destination(), osplookup_exec(), and ospnext_exec().
enum osp_authpolicy |
Enumerator | |
---|---|
OSP_AUTH_NO | |
OSP_AUTH_YES | |
OSP_AUTH_EXC |
Definition at line 462 of file app_osplookup.c.
enum osp_callleg |
Enumerator | |
---|---|
OSP_CALL_INBOUND | |
OSP_CALL_OUTBOUND |
Definition at line 583 of file app_osplookup.c.
enum osp_direction |
Enumerator | |
---|---|
OSP_DIR_RX | |
OSP_DIR_TX | |
OSP_DIR_NUMBER |
Definition at line 589 of file app_osplookup.c.
enum osp_srvtype |
Enumerator | |
---|---|
OSP_SRV_VOICE | |
OSP_SRV_NPQUERY |
Definition at line 475 of file app_osplookup.c.
enum osp_workmode |
Enumerator | |
---|---|
OSP_MODE_DIRECT | |
OSP_MODE_INDIRECT |
Definition at line 469 of file app_osplookup.c.
|
static |
Definition at line 3120 of file app_osplookup.c.
|
static |
Definition at line 3120 of file app_osplookup.c.
|
static |
Convert Asterisk status to TC code.
cause | Asterisk hangup cause |
Definition at line 1295 of file app_osplookup.c.
Referenced by osp_finish(), and osp_next().
|
static |
Definition at line 2973 of file app_osplookup.c.
References ast_cli_args::argc, ast_cli_args::argv, ast_cli(), ast_mutex_lock, ast_mutex_unlock, osp_provider::authpolicy, osp_provider::cacerts, osp_provider::canum, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, osp_provider::defprotocol, ast_cli_args::fd, osp_provider::handle, osp_provider::localcert, osp_provider::maxconnect, name, osp_provider::name, osp_provider::next, osp_lock, osp_provider::privatekey, osp_provider::retrydelay, osp_provider::retrylimit, osp_provider::source, osp_provider::spnum, osp_provider::spoints, osp_provider::srvtype, osp_provider::timeout, ast_cli_entry::usage, and osp_provider::workmode.
|
static |
Definition at line 3079 of file app_osplookup.c.
References ast_cli_register_multiple(), AST_MODULE_LOAD_DECLINE, ast_register_application_xml, osp_load(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
|
static |
OSP Authentication function.
name | OSP provider context name |
trans | OSP transaction handle, output |
source | Source of inbound call |
calling | Calling number |
called | Called number |
token | OSP token, may be empty |
timelimit | Call duration limit, output |
Definition at line 1312 of file app_osplookup.c.
References ast_debug, ast_log(), ast_strlen_zero(), osp_provider::authpolicy, LOG_ERROR, OSP_AUTH_EXC, OSP_AUTH_NO, OSP_AUTH_YES, osp_create_transaction(), OSP_DEF_TIMELIMIT, OSP_ERROR, OSP_FAILED, osp_get_provider(), OSP_INVALID_HANDLE, OSP_OK, OSP_SIZE_NORSTR, and osp_validate_token().
Referenced by ospauth_exec().
|
static |
Choose min duration limit.
provider | OSP provider |
calling | Calling number |
called | Called number |
destination | Destination IP in '[x.x.x.x]' format |
tokenlen | OSP token length |
token | OSP token |
reason | Failure reason, output |
results | OSP lookup results, in/output |
Definition at line 1153 of file app_osplookup.c.
References ast_base64encode(), ast_copy_string(), ast_debug, ast_log(), osp_results::called, osp_results::calling, osp_provider::defprotocol, osp_results::dest, enabled, LOG_ERROR, LOG_WARNING, osp_results::networkid, osp_results::npcic, osp_results::npdi, osp_results::nprn, osp_results::opname, osp_convert_outin(), OSP_ERROR, OSP_FAILED, OSP_OK, OSP_SIZE_NORSTR, OSP_TECH_H323, OSP_TECH_IAX, OSP_TECH_SIP, OSP_TECH_SKYPE, osp_results::outhandle, osp_results::tech, osp_results::token, and type.
Referenced by osp_lookup(), and osp_next().
|
static |
Choose min duration limit.
in | Inbound duration limit |
out | Outbound duration limit |
Definition at line 1128 of file app_osplookup.c.
References OSP_DEF_TIMELIMIT.
Referenced by osp_lookup(), and osp_next().
|
static |
Convert "address:port" to "[x.x.x.x]:port" or "hostname:port" format.
src | Source address string |
dest | Destination address string |
destsize | Size of dest buffer |
Definition at line 974 of file app_osplookup.c.
References ast_copy_string(), ast_strlen_zero(), and OSP_SIZE_NORSTR.
Referenced by osp_lookup(), and osp_validate_token().
|
static |
Convert "[x.x.x.x]:port" or "hostname:prot" to "address:port" format.
src | Source address string |
dest | Destination address string |
destsize | Size of dest buffer |
Definition at line 1014 of file app_osplookup.c.
References ast_copy_string(), ast_strlen_zero(), and OSP_SIZE_NORSTR.
Referenced by osp_check_destination().
|
static |
Create a call ID according to the type.
type | Call ID type |
callid | Call ID buffer |
Definition at line 1431 of file app_osplookup.c.
References ast_log(), osp_callid::buf, osp_callid::len, LOG_ERROR, OSP_CALLID_H323, OSP_CALLID_IAX, OSP_CALLID_SIP, osp_create_uuid(), OSP_ERROR, OSP_FAILED, and OSP_OK.
Referenced by osp_lookup().
|
static |
Create OSP provider handle according to configuration.
cfg | OSP configuration |
name | OSP provider context name |
Definition at line 626 of file app_osplookup.c.
References ast_calloc, ast_config_AST_KEY_DIR, ast_copy_string(), ast_debug, ast_free, ast_log(), ast_mutex_lock, ast_mutex_unlock, ast_variable_browse(), osp_provider::authpolicy, osp_provider::cacerts, osp_provider::canum, osp_provider::defprotocol, osp_provider::handle, ast_variable::lineno, osp_provider::localcert, LOG_ERROR, LOG_WARNING, osp_provider::maxconnect, ast_variable::name, osp_provider::name, ast_variable::next, osp_provider::next, OSP_AUDIT_URL, OSP_AUTH_EXC, OSP_AUTH_NO, OSP_AUTH_YES, OSP_CUSTOMER_ID, OSP_DEF_AUTHPOLICY, OSP_DEF_MAXCONNECT, OSP_DEF_PROTOCOL, OSP_DEF_RETRYDELAY, OSP_DEF_RETRYLIMIT, OSP_DEF_SRVTYPE, OSP_DEF_TIMEOUT, OSP_DEF_WORKMODE, OSP_DEVICE_ID, OSP_ERROR, OSP_FAILED, OSP_HTTP_PERSISTENCE, OSP_INVALID_HANDLE, OSP_LOCAL_VALIDATION, osp_lock, OSP_MAX_CERTS, OSP_MAX_MAXCONNECT, OSP_MAX_RETRYDELAY, OSP_MAX_RETRYLIMIT, OSP_MAX_SPOINTS, OSP_MAX_TIMEOUT, OSP_MIN_MAXCONNECT, OSP_MIN_RETRYDELAY, OSP_MIN_RETRYLIMIT, OSP_MIN_TIMEOUT, OSP_MODE_DIRECT, OSP_MODE_INDIRECT, OSP_OK, OSP_PROT_H323, OSP_PROT_IAX, OSP_PROT_SIP, OSP_PROT_SKYPE, osp_providers, OSP_SIZE_KEYSTR, OSP_SRV_NPQUERY, OSP_SRV_VOICE, OSP_SSL_LIFETIME, osp_provider::privatekey, osp_provider::retrydelay, osp_provider::retrylimit, osp_provider::source, osp_provider::spnum, osp_provider::spoints, osp_provider::srvtype, osp_provider::timeout, ast_variable::value, var, and osp_provider::workmode.
Referenced by osp_load().
|
static |
Create OSP transaction handle.
name | OSP provider context name |
trans | OSP transaction handle, output |
source | Source of provider, output |
srcsize | Size of source buffer, in |
Definition at line 927 of file app_osplookup.c.
References ast_copy_string(), ast_debug, ast_log(), ast_mutex_lock, ast_mutex_unlock, osp_provider::handle, LOG_ERROR, osp_provider::name, osp_provider::next, OSP_ERROR, OSP_FAILED, OSP_INVALID_HANDLE, osp_lock, OSP_OK, and osp_provider::source.
Referenced by osp_auth(), and osp_lookup().
|
static |
Create a UUID.
uuid | UUID buffer |
bufsize | UUID buffer size |
Definition at line 1376 of file app_osplookup.c.
References ast_log(), ast_random(), LOG_ERROR, OSP_ERROR, OSP_OK, and OSP_SIZE_UUID.
Referenced by osp_create_callid().
|
static |
OSP Finish function.
trans | OSP in/outbound transaction handle |
recorded | If failure reason has been recorded |
cause | Asterisk hangup cause |
start | Call start time |
connect | Call connect time |
end | Call end time |
release | Who release first, 0 source, 1 destination |
inqos | Inbound QoS string |
outqos | Outbound QoS string |
Definition at line 2155 of file app_osplookup.c.
References ast_debug, asterisk2osp(), dummy(), OSP_CALL_INBOUND, OSP_CALL_OUTBOUND, OSP_DEF_INTSTATS, OSP_ERROR, OSP_FAILED, OSP_INVALID_HANDLE, OSP_OK, and osp_report_qos().
Referenced by ospfinished_exec().
|
static |
Get OSP provider by name.
name | OSP provider context name |
provider | OSP provider structure |
Definition at line 896 of file app_osplookup.c.
References ast_debug, ast_mutex_lock, ast_mutex_unlock, osp_provider::name, osp_provider::next, OSP_FAILED, osp_lock, and OSP_OK.
Referenced by osp_auth(), osp_lookup(), and osp_next().
|
static |
Get float from variable string.
vstr | Variable string |
Definition at line 1907 of file app_osplookup.c.
References ast_strlen_zero(), OSP_DEF_FLOATSTATS, and value.
Referenced by osp_report_qos().
|
static |
Get integer from variable string.
vstr | Variable string |
Definition at line 1884 of file app_osplookup.c.
References ast_strlen_zero(), OSP_DEF_INTSTATS, and value.
Referenced by osp_report_qos().
|
static |
Definition at line 2906 of file app_osplookup.c.
References ast_category_browse(), ast_config_destroy(), ast_config_load, ast_debug, ast_log(), ast_true(), ast_variable_retrieve(), CONFIG_FLAG_FILEUNCHANGED, CONFIG_STATUS_FILEINVALID, CONFIG_STATUS_FILEUNCHANGED, LOG_ERROR, LOG_WARNING, OSP_CONFIG_FILE, osp_create_provider(), OSP_GENERAL_CAT, and osp_unload().
Referenced by load_module(), and reload().
|
static |
OSP Lookup function.
name | OSP provider context name |
callidtypes | Call ID types |
actualsrc | Actual source device in indirect mode |
srcdev | Source device of outbound call |
calling | Calling number |
called | Called number |
snetid | Source network ID |
np | NP parameters |
div | SIP Diversion header parameters |
cinfo | Custom info |
results | Lookup results |
Definition at line 1478 of file app_osplookup.c.
References ast_copy_string(), ast_debug, ast_log(), ast_strlen_zero(), osp_callid::buf, osp_results::called, osp_results::calling, osp_npdata::cic, osp_results::dest, dummy(), osp_diversion::host, osp_results::inhandle, osp_results::intimelimit, osp_callid::len, LOG_ERROR, LOG_WARNING, osp_results::networkid, osp_results::npcic, osp_npdata::npdi, osp_results::npdi, osp_results::nprn, osp_results::numdests, osp_npdata::opname, osp_results::opname, OSP_CALLID_MAXNUM, osp_check_destination(), osp_choose_timelimit(), osp_convert_inout(), osp_create_callid(), osp_create_transaction(), OSP_DEF_MAXDESTS, OSP_DEF_TIMELIMIT, OSP_ERROR, OSP_FAILED, osp_get_provider(), OSP_INVALID_HANDLE, OSP_MAX_CUSTOMINFO, OSP_MODE_INDIRECT, OSP_OK, OSP_SIZE_NORSTR, OSP_SIZE_TOKSTR, OSP_SRV_NPQUERY, osp_results::outcallid, osp_results::outhandle, osp_results::outtimelimit, osp_npdata::rn, osp_provider::source, osp_provider::srvtype, osp_results::tech, osp_results::token, type, osp_diversion::user, and osp_provider::workmode.
Referenced by osplookup_exec().
|
static |
OSP Lookup Next function.
name | OSP provider name |
cause | Asterisk hangup cuase |
results | Lookup results, in/output |
Definition at line 1760 of file app_osplookup.c.
References ast_debug, ast_log(), asterisk2osp(), osp_callid::buf, osp_results::called, osp_results::calling, osp_results::dest, osp_results::inhandle, osp_results::intimelimit, osp_callid::len, LOG_ERROR, osp_results::networkid, osp_results::npcic, osp_results::npdi, osp_results::nprn, osp_results::numdests, osp_results::opname, osp_check_destination(), osp_choose_timelimit(), OSP_DEF_TIMELIMIT, OSP_ERROR, OSP_FAILED, osp_get_provider(), OSP_INVALID_HANDLE, OSP_OK, OSP_SIZE_NORSTR, OSP_SIZE_TOKSTR, osp_results::outcallid, osp_results::outhandle, osp_results::outtimelimit, osp_results::tech, osp_results::token, and type.
Referenced by ospnext_exec().
|
static |
Report QoS.
trans | OSP in/outbound transaction handle |
leg | Inbound/outbound |
qos | QoS string |
Definition at line 1932 of file app_osplookup.c.
References ast_copy_string(), ast_debug, ast_strlen_zero(), osp_metrics::avg, osp_metrics::max, osp_metrics::min, OSP_CALL_INBOUND, OSP_DEF_FLOATSTATS, OSP_DEF_INTSTATS, OSP_DIR_NUMBER, OSP_DIR_RX, OSP_DIR_TX, OSP_FAILED, osp_get_varfloat(), osp_get_varint(), OSP_OK, OSP_SIZE_NORSTR, osp_metrics::sdev, value, and osp_metrics::value.
Referenced by osp_finish().
|
static |
Definition at line 2880 of file app_osplookup.c.
References ast_free, ast_mutex_lock, ast_mutex_unlock, osp_provider::handle, osp_provider::next, and osp_lock.
Referenced by osp_load(), and unload_module().
|
static |
UUID to string.
uuid | UUID |
buffer | String buffer |
bufsize | String buffer size |
Definition at line 1405 of file app_osplookup.c.
References ast_log(), LOG_ERROR, OSP_ERROR, OSP_OK, and OSP_SIZE_UUIDSTR.
Referenced by osplookup_exec(), and ospnext_exec().
|
static |
Validate OSP token of inbound call.
trans | OSP transaction handle |
source | Source of inbound call |
destination | Destination of inbound call |
calling | Calling number |
called | Called number |
token | OSP token, may be empty |
timelimit | Call duration limit, output |
Definition at line 1063 of file app_osplookup.c.
References ast_base64decode(), ast_debug, ast_log(), dummy(), LOG_ERROR, LOG_WARNING, osp_convert_inout(), OSP_ERROR, OSP_FAILED, OSP_OK, OSP_SIZE_NORSTR, and OSP_SIZE_TOKSTR.
Referenced by osp_auth().
|
static |
OSP Application OSPAuth.
chan | Channel |
data | Parameter |
Definition at line 2222 of file app_osplookup.c.
References args, AST_APP_ARG, ast_debug, AST_DECLARE_APP_ARGS, AST_LIST_TRAVERSE, AST_OSP_ERROR, AST_OSP_FAILED, AST_OSP_SUCCESS, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), ast_var_name(), ast_var_value(), ast_channel::caller, ast_var_t::entries, ast_channel::exten, ast_party_caller::id, ast_party_id::number, OSP_AST_ERROR, OSP_AST_OK, osp_auth(), OSP_DEF_PROVIDER, OSP_DEF_TIMELIMIT, OSP_OK, OSP_SIZE_INTSTR, pbx_builtin_setvar_helper(), S_COR, status, ast_party_number::str, ast_party_number::valid, and ast_channel::varshead.
Referenced by load_module().
|
static |
OSP Application OSPFinish.
chan | Channel |
data | Parameter |
Definition at line 2761 of file app_osplookup.c.
References ast_cdr::answer, args, AST_APP_ARG, AST_CAUSE_NO_ROUTE_DESTINATION, AST_CAUSE_NORMAL_CLEARING, ast_check_hangup(), ast_copy_string(), ast_debug, AST_DECLARE_APP_ARGS, AST_LIST_TRAVERSE, AST_OSP_ERROR, AST_OSP_FAILED, AST_OSP_SUCCESS, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), ast_var_name(), ast_var_value(), ast_channel::cdr, ast_var_t::entries, OSP_AST_ERROR, OSP_AST_OK, osp_finish(), OSP_INVALID_HANDLE, OSP_OK, OSP_SIZE_INTSTR, OSP_SIZE_QOSSTR, pbx_builtin_setvar_helper(), ast_cdr::start, status, and ast_channel::varshead.
Referenced by load_module().
|
static |
OSP Application OSPLookup.
chan | Channel |
data | Parameter |
Definition at line 2302 of file app_osplookup.c.
References args, AST_APP_ARG, ast_autoservice_start(), ast_autoservice_stop(), ast_copy_string(), ast_debug, AST_DECLARE_APP_ARGS, AST_LIST_TRAVERSE, ast_log(), AST_OSP_ERROR, AST_OSP_FAILED, AST_OSP_SUCCESS, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), ast_true(), ast_var_name(), ast_var_value(), osp_callid::buf, osp_results::called, ast_channel::caller, osp_results::calling, osp_npdata::cic, osp_results::dest, exten, osp_diversion::host, ast_party_caller::id, osp_results::inhandle, osp_results::intimelimit, osp_callid::len, LOG_WARNING, osp_results::networkid, osp_results::npcic, osp_npdata::npdi, osp_results::npdi, osp_results::nprn, ast_party_id::number, osp_results::numdests, osp_npdata::opname, osp_results::opname, OSP_AST_ERROR, OSP_AST_OK, OSP_CALLID_H323, OSP_CALLID_IAX, OSP_CALLID_SIP, OSP_CALLID_UNDEF, OSP_DEF_PROVIDER, OSP_DEF_TIMELIMIT, OSP_INVALID_HANDLE, osp_lookup(), OSP_MAX_CUSTOMINFO, OSP_OK, OSP_SIP_HEADER, OSP_SIZE_TOKSTR, OSP_TECH_H323, OSP_TECH_IAX, OSP_TECH_SIP, OSP_TECH_SKYPE, osp_uuid2str(), osp_results::outcallid, osp_results::outhandle, osp_results::outtimelimit, pbx_builtin_setvar_helper(), osp_npdata::rn, S_COR, status, ast_party_number::str, osp_results::tech, osp_results::token, type, osp_diversion::user, ast_party_number::valid, and ast_channel::varshead.
Referenced by load_module().
|
static |
OSP Application OSPNext.
chan | Channel |
data | Parameter |
Definition at line 2579 of file app_osplookup.c.
References args, AST_APP_ARG, ast_debug, AST_DECLARE_APP_ARGS, AST_LIST_TRAVERSE, ast_log(), AST_OSP_ERROR, AST_OSP_FAILED, AST_OSP_SUCCESS, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), ast_var_name(), ast_var_value(), osp_callid::buf, osp_results::called, osp_results::calling, osp_results::dest, osp_results::inhandle, osp_results::intimelimit, osp_callid::len, LOG_WARNING, osp_results::networkid, osp_results::npcic, osp_results::npdi, osp_results::nprn, osp_results::numdests, osp_results::opname, OSP_AST_ERROR, OSP_AST_OK, OSP_CALLID_H323, OSP_CALLID_UNDEF, OSP_DEF_PROVIDER, OSP_DEF_TIMELIMIT, OSP_INVALID_HANDLE, osp_next(), OSP_OK, OSP_SIP_HEADER, OSP_SIZE_TOKSTR, OSP_TECH_H323, OSP_TECH_IAX, OSP_TECH_SIP, OSP_TECH_SKYPE, osp_uuid2str(), osp_results::outcallid, osp_results::outhandle, osp_results::outtimelimit, pbx_builtin_setvar_helper(), status, osp_results::tech, osp_results::token, type, and ast_channel::varshead.
Referenced by load_module().
|
static |
|
static |
Definition at line 3095 of file app_osplookup.c.
References ast_cli_unregister_multiple(), ast_unregister_application(), and osp_unload().
|
static |
Definition at line 3120 of file app_osplookup.c.
|
static |
Definition at line 3064 of file app_osplookup.c.
Referenced by app_cmp().
|
static |
Definition at line 3067 of file app_osplookup.c.
|
static |
Definition at line 3070 of file app_osplookup.c.
|
static |
Definition at line 3073 of file app_osplookup.c.
|
static |
Definition at line 3120 of file app_osplookup.c.
const char* B64CACert = "MIIBYDCCAQoCAQEwDQYJKoZIhvcNAQEEBQAwOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMB4XDTAyMDIwNDE4MjU1MloXDTEyMDIwMzE4MjU1MlowOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAPGeGwV41EIhX0jEDFLRXQhDEr50OUQPq+f55VwQd0TQNts06BP29+UiNdRW3c3IRHdZcJdC1Cg68ME9cgeq0h8CAwEAATANBgkqhkiG9w0BAQQFAANBAGkzBSj1EnnmUxbaiG1N4xjIuLAWydun7o3bFk2tV8dBIhnuh445obYyk1EnQ27kI7eACCILBZqi2MHDOIMnoN0=" |
Definition at line 616 of file app_osplookup.c.
const char* B64LCert = "MIIBeTCCASMCEHqkOHVRRWr+1COq3CR/xsowDQYJKoZIhvcNAQEEBQAwOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMB4XDTA1MDYyMzAwMjkxOFoXDTA2MDYyNDAwMjkxOFowRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQCvLeZfj1G0wuJb8JTcVeZaZftncEmRluOnaME3ustd918lRMDYokZmtmDZN8SrP0yd1pfVqZ7NkmBACbBX0k7pAgMBAAEwDQYJKoZIhvcNAQEEBQADQQDnV8QNFVVJx/+7IselU0wsepqMurivXZzuxOmTEmTVDzCJx1xhA8jd3vGAj7XDIYiPub1PV23eY5a2ARJuw5w9" |
Definition at line 615 of file app_osplookup.c.
const char* B64PKey = "MIIBOgIBAAJBAK8t5l+PUbTC4lvwlNxV5lpl+2dwSZGW46dowTe6y133XyVEwNiiRma2YNk3xKs/TJ3Wl9Wpns2SYEAJsFfSTukCAwEAAQJAPz13vCm2GmZ8Zyp74usTxLCqSJZNyMRLHQWBM0g44Iuy4wE3vpi7Wq+xYuSOH2mu4OddnxswCP4QhaXVQavTAQIhAOBVCKXtppEw9UaOBL4vW0Ed/6EA/1D8hDW6St0h7EXJAiEAx+iRmZKhJD6VT84dtX5ZYNVk3j3dAcIOovpzUj9a0CECIEduTCapmZQ5xqAEsLXuVlxRtQgLTUD4ZxDElPn8x0MhAiBE2HlcND0+qDbvtwJQQOUzDgqg5xk3w8capboVdzAlQQIhAMC+lDL7+gDYkNAft5Mu+NObJmQs4Cr+DkDFsKqoxqrm" |
Definition at line 614 of file app_osplookup.c.
|
static |
Definition at line 3075 of file app_osplookup.c.
|
static |
Definition at line 608 of file app_osplookup.c.
|
static |
Definition at line 607 of file app_osplookup.c.
|
static |
Definition at line 606 of file app_osplookup.c.
Referenced by handle_cli_osp_show(), osp_create_provider(), osp_create_transaction(), osp_get_provider(), and osp_unload().
|
static |
Definition at line 610 of file app_osplookup.c.
Referenced by osp_create_provider().
|
static |
Definition at line 609 of file app_osplookup.c.
|
static |
Definition at line 611 of file app_osplookup.c.