Asterisk - The Open Source Telephony Project
18.5.0
|
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"
Go to the source code of this file.
Data Structures | |
struct | osp_callid |
struct | osp_headers |
struct | osp_metrics |
struct | osp_npdata |
struct | osp_provider |
struct | osp_results |
Macros | |
#define | AST_OSP_ERROR ((char*)"ERROR") /* Return status, error */ |
#define | AST_OSP_FAILED ((char*)"FAILED") /* Return status, failed */ |
#define | AST_OSP_SUCCESS ((char*)"SUCCESS") /* Return status, success */ |
#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)12) /* OSP default max number of destinations */ |
#define | OSP_DEF_PROTOCOL OSP_PROT_SIP /* OSP default signaling 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_OUTSTR ((unsigned int)288) /* OSP out size for osp_convert_inout */ |
#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) |
struct ast_module * | AST_MODULE_SELF_SYM (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_headers *headers, 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 = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .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 const 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, 0} } |
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.
Definition at line 441 of file app_osplookup.c.
Referenced by ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
#define AST_OSP_FAILED ((char*)"FAILED") /* Return status, failed */ |
Definition at line 440 of file app_osplookup.c.
Referenced by ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
#define AST_OSP_SUCCESS ((char*)"SUCCESS") /* Return status, success */ |
Definition at line 439 of file app_osplookup.c.
Referenced by ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
Definition at line 500 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 499 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 520 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_CALLID_H323 ((unsigned int)(1 << 1)) /* H.323 */ |
Definition at line 457 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 458 of file app_osplookup.c.
Referenced by osp_create_callid(), and osplookup_exec().
Definition at line 459 of file app_osplookup.c.
Referenced by osp_lookup().
#define OSP_CALLID_SIP ((unsigned int)(1 << 0)) /* SIP */ |
Definition at line 456 of file app_osplookup.c.
Referenced by osp_create_callid(), and osplookup_exec().
#define OSP_CALLID_UNDEF ((unsigned int)0) /* Undefined */ |
Definition at line 455 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 502 of file app_osplookup.c.
Referenced by osp_load().
#define OSP_CUSTOMER_ID ((const char*)"") /* OSP customer ID */ |
Definition at line 524 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 519 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_FLOATSTATS ((float)-1) /* OSP default float statistic */ |
Definition at line 533 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 532 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 507 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 526 of file app_osplookup.c.
Referenced by osp_lookup().
#define OSP_DEF_PROTOCOL OSP_PROT_SIP /* OSP default signaling protocol, SIP */ |
Definition at line 528 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 504 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 510 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEF_RETRYLIMIT ((unsigned int)2) /* OSP default retry times */ |
Definition at line 513 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 530 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 527 of file app_osplookup.c.
Referenced by osp_auth(), osp_choose_timelimit(), osp_lookup(), osp_next(), ospauth_exec(), osplookup_exec(), and ospnext_exec().
Definition at line 516 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 529 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_DEVICE_ID ((const char*)"") /* OSP device ID */ |
Definition at line 525 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 498 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 497 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 503 of file app_osplookup.c.
Referenced by osp_load().
#define OSP_HTTP_PERSISTENCE ((int)1) /* In seconds */ |
Definition at line 523 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 501 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 521 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 505 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 531 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 509 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MAX_RETRYDELAY ((unsigned int)10) /* OSP max retry delay */ |
Definition at line 512 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MAX_RETRYLIMIT ((unsigned int)100) /* OSP max retry times */ |
Definition at line 515 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 506 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 518 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MIN_MAXCONNECT ((unsigned int)1) /* OSP min max_connections */ |
Definition at line 508 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MIN_RETRYDELAY ((unsigned int)0) /* OSP min retry delay */ |
Definition at line 511 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_MIN_RETRYLIMIT ((unsigned int)0) /* OSP min retry times */ |
Definition at line 514 of file app_osplookup.c.
Referenced by osp_create_provider().
Definition at line 517 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_OK ((int)1) /* OSP function call successful */ |
Definition at line 496 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 463 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_PROT_IAX ((const char*)"IAX") /* IAX2 protocol name */ |
Definition at line 464 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_PROT_SIP ((const char*)"SIP") /* SIP protocol name */ |
Definition at line 462 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_PROT_SKYPE ((const char*)"SKYPE") /* Skype protocol name */ |
Definition at line 465 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_SIP_HEADER ((const char*)"P-OSP-Auth-Token") |
Definition at line 474 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 444 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 446 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 445 of file app_osplookup.c.
Referenced by osp_auth(), osp_check_destination(), osp_convert_inout(), osp_convert_outin(), osp_lookup(), osp_next(), and osp_report_qos().
#define OSP_SIZE_OUTSTR ((unsigned int)288) /* OSP out size for osp_convert_inout */ |
Definition at line 452 of file app_osplookup.c.
Referenced by osp_lookup(), and osp_validate_token().
#define OSP_SIZE_QOSSTR ((unsigned int)1024) /* QoS string buffer size */ |
Definition at line 451 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 448 of file app_osplookup.c.
#define OSP_SIZE_TOKSTR ((unsigned int)4096) /* OSP token string buffer size */ |
Definition at line 447 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 449 of file app_osplookup.c.
Referenced by osp_create_uuid().
#define OSP_SIZE_UUIDSTR ((unsigned int)36) /* UUID string size */ |
Definition at line 450 of file app_osplookup.c.
Referenced by osp_uuid2str().
Definition at line 522 of file app_osplookup.c.
Referenced by osp_create_provider().
#define OSP_TECH_H323 ((const char*)"H323") /* OH323 tech name */ |
Definition at line 469 of file app_osplookup.c.
Referenced by osp_check_destination(), osp_lookup(), osplookup_exec(), and ospnext_exec().
#define OSP_TECH_IAX ((const char*)"IAX2") /* IAX2 tech name */ |
Definition at line 470 of file app_osplookup.c.
Referenced by osp_check_destination(), osp_lookup(), osplookup_exec(), and ospnext_exec().
#define OSP_TECH_SIP ((const char*)"SIP") /* SIP tech name */ |
Definition at line 468 of file app_osplookup.c.
Referenced by osp_check_destination(), osp_lookup(), osplookup_exec(), and ospnext_exec().
#define OSP_TECH_SKYPE ((const char*)"SKYPE") /* Skype tech name */ |
Definition at line 471 of file app_osplookup.c.
Referenced by osp_check_destination(), osp_lookup(), osplookup_exec(), and ospnext_exec().
enum osp_authpolicy |
Enumerator | |
---|---|
OSP_AUTH_NO | |
OSP_AUTH_YES | |
OSP_AUTH_EXC |
Definition at line 477 of file app_osplookup.c.
enum osp_callleg |
Enumerator | |
---|---|
OSP_CALL_INBOUND | |
OSP_CALL_OUTBOUND |
Definition at line 602 of file app_osplookup.c.
enum osp_direction |
Enumerator | |
---|---|
OSP_DIR_RX | |
OSP_DIR_TX | |
OSP_DIR_NUMBER |
Definition at line 608 of file app_osplookup.c.
enum osp_srvtype |
Enumerator | |
---|---|
OSP_SRV_VOICE | |
OSP_SRV_NPQUERY |
Definition at line 490 of file app_osplookup.c.
enum osp_workmode |
Enumerator | |
---|---|
OSP_MODE_DIRECT | |
OSP_MODE_INDIRECT |
Definition at line 484 of file app_osplookup.c.
|
static |
Definition at line 3170 of file app_osplookup.c.
|
static |
Definition at line 3170 of file app_osplookup.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 3170 of file app_osplookup.c.
|
static |
Convert Asterisk status to TC code.
cause | Asterisk hangup cause |
Definition at line 1313 of file app_osplookup.c.
Referenced by osp_finish(), and osp_next().
|
static |
Definition at line 3022 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, osp_provider::name, osp_provider::next, NULL, osp_hardware, osp_initialized, osp_lock, osp_security, osp_tokenformat, osp_provider::privatekey, provider, 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 3128 of file app_osplookup.c.
References app1, app2, app3, app4, ast_cli_register_multiple, AST_MODULE_LOAD_DECLINE, ast_register_application_xml, osp_load(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), and ospnext_exec().
Referenced by reload().
|
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 1330 of file app_osplookup.c.
References ast_debug, ast_log, ast_strlen_zero, osp_provider::authpolicy, LOG_ERROR, NULL, 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, osp_validate_token(), and provider.
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 1171 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, error(), LOG_ERROR, LOG_WARNING, osp_results::networkid, osp_results::npcic, osp_results::npdi, osp_results::nprn, NULL, 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::outtech, 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 1146 of file app_osplookup.c.
References in, OSP_DEF_TIMELIMIT, and out.
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 992 of file app_osplookup.c.
References ast_copy_string(), ast_strlen_zero, NULL, 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 1032 of file app_osplookup.c.
References ast_copy_string(), ast_strlen_zero, end, NULL, 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 1451 of file app_osplookup.c.
References ast_log, osp_callid::buf, osp_callid::len, LOG_ERROR, NULL, 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 644 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, B64CACert, B64LCert, B64PKey, osp_provider::cacerts, osp_provider::canum, osp_provider::defprotocol, error(), 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, NULL, 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_security, OSP_SIZE_KEYSTR, OSP_SRV_NPQUERY, OSP_SRV_VOICE, OSP_SSL_LIFETIME, osp_provider::privatekey, provider, 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 945 of file app_osplookup.c.
References ast_copy_string(), ast_debug, ast_log, ast_mutex_lock, ast_mutex_unlock, error(), osp_provider::handle, LOG_ERROR, osp_provider::name, osp_provider::next, NULL, OSP_ERROR, OSP_FAILED, OSP_INVALID_HANDLE, osp_lock, OSP_OK, provider, 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 1394 of file app_osplookup.c.
References ast_log, ast_random(), LOG_ERROR, NULL, OSP_ERROR, OSP_OK, OSP_SIZE_UUID, and tmp().
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 2188 of file app_osplookup.c.
References ast_debug, asterisk2osp(), dummy(), error(), NULL, 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 914 of file app_osplookup.c.
References ast_debug, ast_mutex_lock, ast_mutex_unlock, osp_provider::name, osp_provider::next, NULL, 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 1946 of file app_osplookup.c.
References ast_strlen_zero, NULL, OSP_DEF_FLOATSTATS, tmp(), and value.
Referenced by osp_report_qos().
|
static |
Get integer from variable string.
vstr | Variable string |
Definition at line 1923 of file app_osplookup.c.
References ast_strlen_zero, NULL, OSP_DEF_INTSTATS, tmp(), and value.
Referenced by osp_report_qos().
|
static |
Definition at line 2955 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, error(), LOG_ERROR, LOG_WARNING, NULL, OSP_CONFIG_FILE, osp_create_provider(), OSP_GENERAL_CAT, osp_hardware, osp_initialized, osp_security, osp_tokenformat, 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 |
headers | SIP header parameters |
cinfo | Custom info |
results | Lookup results |
Definition at line 1499 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, osp_headers::divhost, osp_headers::divuser, dummy(), error(), host, osp_results::inhandle, osp_results::intech, 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, NULL, 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_OUTSTR, OSP_SIZE_TOKSTR, OSP_SRV_NPQUERY, OSP_TECH_H323, OSP_TECH_IAX, OSP_TECH_SIP, OSP_TECH_SKYPE, osp_results::outcallid, osp_results::outhandle, osp_results::outtech, osp_results::outtimelimit, osp_headers::paiuser, osp_headers::pciuser, provider, osp_npdata::rn, osp_headers::rpiduser, osp_provider::source, osp_provider::srvtype, tmp(), osp_results::token, type, and osp_provider::workmode.
Referenced by osplookup_exec().
|
static |
OSP Lookup Next function.
name | OSP provider name |
cause | Asterisk hangup cause |
results | Lookup results, in/output |
Definition at line 1799 of file app_osplookup.c.
References ast_debug, ast_log, asterisk2osp(), osp_callid::buf, osp_results::called, osp_results::calling, osp_results::dest, error(), osp_results::inhandle, osp_results::intimelimit, osp_callid::len, LOG_ERROR, osp_results::networkid, osp_results::npcic, osp_results::npdi, osp_results::nprn, NULL, 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::outtech, osp_results::outtimelimit, provider, 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 1971 of file app_osplookup.c.
References ast_copy_string(), ast_debug, ast_strlen_zero, osp_metrics::avg, item, max, osp_metrics::max, min, osp_metrics::min, NULL, 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, tmp(), value, and osp_metrics::value.
Referenced by osp_finish().
|
static |
Definition at line 2929 of file app_osplookup.c.
References ast_free, ast_mutex_lock, ast_mutex_unlock, osp_provider::handle, osp_provider::next, NULL, osp_hardware, osp_initialized, osp_lock, osp_security, osp_tokenformat, and provider.
Referenced by osp_load(), and unload_module().
|
static |
UUID to string.
uuid | UUID |
buffer | String buffer |
bufsize | String buffer size |
Definition at line 1423 of file app_osplookup.c.
References ast_log, LOG_ERROR, NULL, 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 1081 of file app_osplookup.c.
References ast_base64decode(), ast_debug, ast_log, dummy(), error(), LOG_ERROR, LOG_WARNING, NULL, osp_convert_inout(), OSP_ERROR, OSP_FAILED, OSP_OK, OSP_SIZE_OUTSTR, OSP_SIZE_TOKSTR, and osp_tokenformat.
Referenced by osp_auth().
|
static |
OSP Application OSPAuth.
chan | Channel |
data | Parameter |
Definition at line 2257 of file app_osplookup.c.
References args, AST_APP_ARG, ast_channel_caller(), ast_channel_exten(), ast_channel_varshead(), 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_var_t::entries, osp_provider::handle, NULL, options, OSP_AST_ERROR, OSP_AST_OK, osp_auth(), OSP_DEF_PROVIDER, OSP_DEF_TIMELIMIT, OSP_OK, OSP_SIZE_INTSTR, pbx_builtin_setvar_helper(), provider, S_COR, osp_provider::source, status, and tmp().
Referenced by load_module().
|
static |
OSP Application OSPFinish.
chan | Channel |
data | Parameter |
Definition at line 2811 of file app_osplookup.c.
References args, AST_APP_ARG, AST_CAUSE_NO_ROUTE_DESTINATION, AST_CAUSE_NORMAL_CLEARING, ast_channel_answertime(), ast_channel_creationtime(), ast_channel_varshead(), 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_tvzero(), ast_var_name(), ast_var_value(), end, ast_var_t::entries, NULL, options, OSP_AST_ERROR, OSP_AST_OK, osp_finish(), OSP_INVALID_HANDLE, OSP_OK, OSP_SIZE_INTSTR, OSP_SIZE_QOSSTR, pbx_builtin_setvar_helper(), status, and tmp().
Referenced by load_module().
|
static |
OSP Application OSPLookup.
chan | Channel |
data | Parameter |
Definition at line 2337 of file app_osplookup.c.
References args, AST_APP_ARG, ast_autoservice_start(), ast_autoservice_stop(), ast_channel_caller(), ast_channel_varshead(), 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, osp_results::calling, osp_npdata::cic, osp_results::dest, osp_headers::divhost, osp_headers::divuser, exten, osp_results::inhandle, osp_results::intech, osp_results::intimelimit, osp_callid::len, LOG_WARNING, osp_results::networkid, osp_results::npcic, osp_npdata::npdi, osp_results::npdi, osp_results::nprn, NULL, osp_results::numdests, osp_npdata::opname, osp_results::opname, options, 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::outtech, osp_results::outtimelimit, osp_headers::paiuser, pbx_builtin_setvar_helper(), osp_headers::pciuser, provider, osp_npdata::rn, osp_headers::rpiduser, S_COR, status, tmp(), osp_results::token, and type.
Referenced by load_module().
|
static |
OSP Application OSPNext.
chan | Channel |
data | Parameter |
Definition at line 2629 of file app_osplookup.c.
References args, AST_APP_ARG, ast_channel_varshead(), 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, options, 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::outtech, osp_results::outtimelimit, pbx_builtin_setvar_helper(), provider, status, tmp(), osp_results::token, and type.
Referenced by load_module().
|
static |
Definition at line 3158 of file app_osplookup.c.
References AST_MODFLAG_DEFAULT, AST_MODULE_INFO(), AST_MODULE_SUPPORT_EXTENDED, ASTERISK_GPL_KEY, load_module(), osp_load(), and unload_module().
|
static |
Definition at line 3144 of file app_osplookup.c.
References app1, app2, app3, app4, ast_cli_unregister_multiple(), ast_unregister_application(), and osp_unload().
Referenced by reload().
|
static |
Definition at line 3170 of file app_osplookup.c.
|
static |
Definition at line 3113 of file app_osplookup.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 3116 of file app_osplookup.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 3119 of file app_osplookup.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 3122 of file app_osplookup.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 3170 of file app_osplookup.c.
const char* B64CACert = "MIIBYDCCAQoCAQEwDQYJKoZIhvcNAQEEBQAwOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMB4XDTAyMDIwNDE4MjU1MloXDTEyMDIwMzE4MjU1MlowOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAPGeGwV41EIhX0jEDFLRXQhDEr50OUQPq+f55VwQd0TQNts06BP29+UiNdRW3c3IRHdZcJdC1Cg68ME9cgeq0h8CAwEAATANBgkqhkiG9w0BAQQFAANBAGkzBSj1EnnmUxbaiG1N4xjIuLAWydun7o3bFk2tV8dBIhnuh445obYyk1EnQ27kI7eACCILBZqi2MHDOIMnoN0=" |
Definition at line 634 of file app_osplookup.c.
Referenced by osp_create_provider().
const char* B64LCert = "MIIBeTCCASMCEHqkOHVRRWr+1COq3CR/xsowDQYJKoZIhvcNAQEEBQAwOzElMCMGA1UEAxMcb3NwdGVzdHNlcnZlci50cmFuc25leHVzLmNvbTESMBAGA1UEChMJT1NQU2VydmVyMB4XDTA1MDYyMzAwMjkxOFoXDTA2MDYyNDAwMjkxOFowRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQCvLeZfj1G0wuJb8JTcVeZaZftncEmRluOnaME3ustd918lRMDYokZmtmDZN8SrP0yd1pfVqZ7NkmBACbBX0k7pAgMBAAEwDQYJKoZIhvcNAQEEBQADQQDnV8QNFVVJx/+7IselU0wsepqMurivXZzuxOmTEmTVDzCJx1xhA8jd3vGAj7XDIYiPub1PV23eY5a2ARJuw5w9" |
Definition at line 633 of file app_osplookup.c.
Referenced by osp_create_provider().
const char* B64PKey = "MIIBOgIBAAJBAK8t5l+PUbTC4lvwlNxV5lpl+2dwSZGW46dowTe6y133XyVEwNiiRma2YNk3xKs/TJ3Wl9Wpns2SYEAJsFfSTukCAwEAAQJAPz13vCm2GmZ8Zyp74usTxLCqSJZNyMRLHQWBM0g44Iuy4wE3vpi7Wq+xYuSOH2mu4OddnxswCP4QhaXVQavTAQIhAOBVCKXtppEw9UaOBL4vW0Ed/6EA/1D8hDW6St0h7EXJAiEAx+iRmZKhJD6VT84dtX5ZYNVk3j3dAcIOovpzUj9a0CECIEduTCapmZQ5xqAEsLXuVlxRtQgLTUD4ZxDElPn8x0MhAiBE2HlcND0+qDbvtwJQQOUzDgqg5xk3w8capboVdzAlQQIhAMC+lDL7+gDYkNAft5Mu+NObJmQs4Cr+DkDFsKqoxqrm" |
Definition at line 632 of file app_osplookup.c.
Referenced by osp_create_provider().
|
static |
Definition at line 3124 of file app_osplookup.c.
|
static |
Definition at line 626 of file app_osplookup.c.
Referenced by handle_cli_osp_show(), osp_load(), and osp_unload().
|
static |
Definition at line 625 of file app_osplookup.c.
Referenced by handle_cli_osp_show(), osp_load(), and osp_unload().
|
static |
Definition at line 624 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 628 of file app_osplookup.c.
Referenced by osp_create_provider().
|
static |
Definition at line 627 of file app_osplookup.c.
Referenced by handle_cli_osp_show(), osp_create_provider(), osp_load(), and osp_unload().
|
static |
Definition at line 629 of file app_osplookup.c.
Referenced by handle_cli_osp_show(), osp_load(), osp_unload(), and osp_validate_token().