/usr/include/osp/osptransapi.h is in libosptk-dev 4.13.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | /**************************************************************************
*** COPYRIGHT (c) 2002 by TransNexus, Inc. ***
*** ***
*** This software is property of TransNexus, Inc. ***
*** This software is freely available under license from TransNexus. ***
*** The license terms and conditions for free use of this software by ***
*** third parties are defined in the OSP Toolkit Software License ***
*** Agreement (LICENSE.txt). Any use of this software by third ***
*** parties, which does not comply with the terms and conditions of the ***
*** OSP Toolkit Software License Agreement is prohibited without ***
*** the prior, express, written consent of TransNexus, Inc. ***
*** ***
*** Thank you for using the OSP ToolKit(TM). Please report any bugs, ***
*** suggestions or feedback to support@transnexus.com ***
*** ***
**************************************************************************/
/* osptransapi.h - Prototypes for transaction object API functions. */
#ifndef _OSPTRANSAPI_H
#define _OSPTRANSAPI_H
#include "osp/ospfail.h"
#include "osp/ospdest.h"
#include "osp/ospstatistics.h"
/* Authorization Indicators */
#define OSPC_TRAN_AUTHORISED 0x0001
#define OSPC_TRAN_REAUTHORISED 0x0002
#define OSPC_TRAN_NOT_AUTHORISED 0xefff
/* Function Prototypes */
#ifdef __cplusplus
extern "C" {
#endif
int OSPPTransactionGetDestProtocol(OSPTTRANHANDLE, OSPE_PROTOCOL_NAME *);
int OSPPTransactionIsDestOSPEnabled(OSPTTRANHANDLE, OSPE_DEST_OSPENABLED *);
int OSPPTransactionSetNetworkIds(OSPTTRANHANDLE, const char *, const char *);
int OSPPTransactionAccumulateOneWayDelay(OSPTTRANHANDLE, unsigned, unsigned, unsigned, float);
int OSPPTransactionAccumulateTwoWayDelay(OSPTTRANHANDLE, unsigned, unsigned, unsigned, float);
int OSPPTransactionDelete(OSPTTRANHANDLE);
int OSPPTransactionGetFirstDestination(OSPTTRANHANDLE, unsigned, char *, char *, unsigned *, unsigned *, void *,
unsigned, char *, unsigned, char *, unsigned, char *, unsigned, char *, unsigned *, void *);
int OSPPTransactionGetNextDestination(OSPTTRANHANDLE, OSPEFAILREASON, unsigned, char *, char *, unsigned *,
unsigned *, void *, unsigned, char *, unsigned, char *, unsigned, char *, unsigned, char *, unsigned *, void *);
int OSPPTransactionInitializeAtDevice(OSPTTRANHANDLE, unsigned, const char *, const char *, const char *, const char *,
const char *, OSPE_NUMBER_FORMAT, const char *, OSPE_NUMBER_FORMAT, unsigned, const void *, unsigned, const void *,
unsigned *, unsigned *, unsigned *, void *, unsigned);
int OSPPTransactionNew(OSPTPROVHANDLE, OSPTTRANHANDLE *);
int OSPPTransactionRecordFailure(OSPTTRANHANDLE, OSPEFAILREASON);
int OSPPTransactionReinitializeAtDevice(OSPTTRANHANDLE, OSPEFAILREASON, unsigned, const char*, const char*,
const char*, const char*, const char*, const char*, unsigned, const void*, unsigned, const void*, unsigned*,
unsigned*, unsigned*, void*, unsigned);
int OSPPTransactionReportUsage(OSPTTRANHANDLE, unsigned, OSPTTIME, OSPTTIME, OSPTTIME, OSPTTIME, unsigned, unsigned, OSPE_RELEASE,
const char *, int, int, int, int, unsigned *, void *);
int OSPPTransactionRequestAuthorisation(OSPTTRANHANDLE, const char *, const char *, const char *, OSPE_NUMBER_FORMAT, const char *,
OSPE_NUMBER_FORMAT, const char *, unsigned, OSPT_CALL_ID *[], const char *[], unsigned *, unsigned *, void *);
int OSPPTransactionIndicateCapabilities(OSPTTRANHANDLE, const char *, const char *, const char *, unsigned, unsigned *, void *);
int OSPPTransactionRequestReauthorisation(OSPTTRANHANDLE, unsigned, unsigned *, void *, unsigned *, unsigned *, unsigned *, void *);
int OSPPTransactionValidateAuthorisation(OSPTTRANHANDLE, const char *, const char *, const char *, const char *, const char *, OSPE_NUMBER_FORMAT,
const char *, OSPE_NUMBER_FORMAT, unsigned, const void *, unsigned, const void *, unsigned *, unsigned *, unsigned *, void *, unsigned);
int OSPPTransactionValidateReAuthorisation(OSPTTRANHANDLE, unsigned, const void *, unsigned *, unsigned *, unsigned *, void *, unsigned);
int OSPPTransactionBuildUsageFromScratch(OSPTTRANHANDLE ospvTransaction,/* In - Transaction handle */
OSPTUINT64 ospvServerTransactionId, /* In - OSP Server Transaction Id */
unsigned ospvRole, /* In - ogw, tgw or RADIUS */
const char *ospvSource, /* In - Source of call */
const char *ospvDestination, /* In - Destination for call */
const char *ospvSourceDevice, /* In - SourceDevice */
const char *ospvDestinationDevice, /* In - DestinationDevice */
const char *ospvCallingNumber, /* In - Calling number */
OSPE_NUMBER_FORMAT ospvCallingNumberFormat, /* In - Calling number formaat : sip/e.164/url */
const char *ospvCalledNumber, /* In - Called number */
OSPE_NUMBER_FORMAT ospvCalledNumberFormat, /* In - Called number formaat : sip/e.164/url */
unsigned ospvSizeOfCallId, /* In - Size of Callid */
const void *ospvCallId, /* In - Call identifier */
OSPEFAILREASON ospvFailureReason,
unsigned *ospvSizeOfDetailLog, /* In/Out - Max size of detail log\ Actual size of detail log */
void *ospvDetailLog); /* In - Pointer to storage for detail log */
int OSPPTransactionSetDestinationCount(OSPTTRANHANDLE ospvTransaction, /* In - Transaction handle */
unsigned ospvDestinationCount); /* In - Optional Destination Count, 0 if n/a */
int OSPPTransactionGetLookAheadInfoIfPresent(OSPTTRANHANDLE ospvTransaction,/* In - Transaction handle */
OSPTBOOL *ospvHasLookAheadInfo, /* Out */
char *ospvLookAheadDestination, /* Out */
OSPE_PROTOCOL_NAME *ospvLookAheadProt, /* Out */
OSPE_DEST_OSPENABLED *ospvLookAheadDestOSPStatus); /* Out */
int OSPPTransactionModifyDeviceIdentifiers(OSPTTRANHANDLE ospvTransaction, /* In - Transaction handle */
const char *ospvSource, /* In - optional */
const char *ospvSourceDevice, /* In - optional */
const char *ospvDestination, /* In - optional */
const char *ospvDestinationDevice); /* In - optional */
int OSPPTransactionGetDestinationNetworkId(OSPTTRANHANDLE, unsigned, char *);
int OSPPTransactionSetServiceType(OSPTTRANHANDLE, OSPE_SERVICE);
int OSPPTransactionSetPricingInfo(OSPTTRANHANDLE, OSPT_PRICING_INFO **);
int OSPPTransactionSetNumberPortability(OSPTTRANHANDLE, const char *, const char *, int);
int OSPPTransactionSetTermCause(OSPTTRANHANDLE, OSPE_TERM_CAUSE, unsigned, const char *);
int OSPPTransactionSetDiversion(OSPTTRANHANDLE, const char *, const char *);
int OSPPTransactionSetProtocol(OSPTTRANHANDLE, OSPE_PROTOCOL_TYPE, OSPE_PROTOCOL_NAME);
int OSPPTransactionSetCodec(OSPTTRANHANDLE, OSPE_CODEC_TYPE, const char *);
int OSPPTransactionSetVideoCodec(OSPTTRANHANDLE, OSPE_CODEC_TYPE, const char *);
int OSPPTransactionSetSessionId(OSPTTRANHANDLE, OSPE_SESSION_ID, OSPT_CALL_ID *);
int OSPPTransactionSetCustomInfo(OSPTTRANHANDLE, unsigned, const char *);
int OSPPTransactionSetSrcNetworkId(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetDestNetworkId(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetLost(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int, int);
int OSPPTransactionSetJitter(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int, int, int, int, float);
int OSPPTransactionSetDelay(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int, int, int, int, float);
int OSPPTransactionSetRTDelay(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_SESSION_LEG, int, int, int, int, float);
int OSPPTransactionSetOctets(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int);
int OSPPTransactionSetPackets(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int);
int OSPPTransactionSetVideoLost(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int, int);
int OSPPTransactionSetVideoJitter(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int, int, int, int, float);
int OSPPTransactionSetVideoDelay(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int, int, int, int, float);
int OSPPTransactionSetVideoRTDelay(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_SESSION_LEG, int, int, int, int, float);
int OSPPTransactionSetVideoOctets(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int);
int OSPPTransactionSetVideoPackets(OSPTTRANHANDLE, OSPE_STATS_METRIC, OSPE_STATS_DIR, int);
int OSPPTransactionSetRFactor(OSPTTRANHANDLE, OSPE_STATS_DIR, float);
int OSPPTransactionSetMOSCQ(OSPTTRANHANDLE, OSPE_STATS_DIR, float);
int OSPPTransactionSetMOSLQ(OSPTTRANHANDLE, OSPE_STATS_DIR, float);
int OSPPTransactionSetICPIF(OSPTTRANHANDLE, OSPE_STATS_DIR, int);
int OSPPTransactionGetNumberPortabilityParameters(OSPTTRANHANDLE, unsigned, char *, unsigned, char *, int *);
int OSPPTransactionSetOperatorName(OSPTTRANHANDLE, OSPE_OPERATOR_NAME, const char *);
int OSPPTransactionGetOperatorName(OSPTTRANHANDLE, OSPE_OPERATOR_NAME, unsigned, char *);
int OSPPTransactionSetSrcRealm(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetDestRealm(OSPTTRANHANDLE, const char *);
int OSPPTransactionGetURL(OSPTTRANHANDLE, OSPE_URL_TYPE, unsigned, char *);
int OSPPTransactionSetSIPHeader(OSPTTRANHANDLE, OSPE_SIP_HEADER, OSPE_NUMBER_FORMAT, const char *);
#define OSPPTransactionSetFrom(transaction, format, value) OSPPTransactionSetSIPHeader(transaction, OSPC_SIPHEADER_FROM, format, value);
#define OSPPTransactionSetTo(transaction, format, value) OSPPTransactionSetSIPHeader(transaction, OSPC_SIPHEADER_TO, format, value);
#define OSPPTransactionSetAssertedId(transaction, format, value) OSPPTransactionSetSIPHeader(transaction, OSPC_SIPHEADER_PAI, format, value);
#define OSPPTransactionSetRemotePartyId(transaction, format, value) OSPPTransactionSetSIPHeader(transaction, OSPC_SIPHEADER_RPID, format, value);
#define OSPPTransactionSetChargeInfo(transaction, format, value) OSPPTransactionSetSIPHeader(transaction, OSPC_SIPHEADER_PCI, format, value);
#define OSPPTransactionSetDivSrcInfo(transaction, format, value) OSPPTransactionSetSIPHeader(transaction, OSPC_SIPHEADER_DIV, format, value);
int OSPPTransactionSetApplicationId(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetRoleInfo(OSPTTRANHANDLE, OSPE_ROLE_STATE, OSPE_ROLE_FORMAT, OSPE_ROLE_VENDOR);
int OSPPTransactionSetCallPartyInfo(OSPTTRANHANDLE, OSPE_CALL_PARTY, const char*, const char*, const char*);
int OSPPTransactionSetTransferId(OSPTTRANHANDLE, const char*);
int OSPPTransactionSetTransferStatus(OSPTTRANHANDLE, OSPE_TRANSFER_STATUS);
int OSPPTransactionSetNetworkTranslatedCalledNumber(OSPTTRANHANDLE, OSPE_NUMBER_FORMAT, const char *);
int OSPPTransactionSetServiceProvider(OSPTTRANHANDLE, const char *);
#define OSPPTransactionSetSrcServiceProvider(transaction, provider) OSPPTransactionSetServiceProvider(transaction, provider);
int OSPPTransactionSetDestServiceProvider(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetSystemId(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetRelatedReason(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetSetupAttempt(OSPTTRANHANDLE, int);
int OSPPTransactionSetTotalSetupAttempts(OSPTTRANHANDLE, int);
int OSPPTransactionSetCDRProxy(OSPTTRANHANDLE, const char *, const char *, const char *);
int OSPPTransactionSetUserAgent(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetSrcAudioAddr(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetSrcVideoAddr(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetDestAudioAddr(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetDestVideoAddr(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetProxyIngressAddr(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetProxyEgressAddr(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetProviderPDD(OSPTTRANHANDLE, int);
int OSPPTransactionSetJIP(OSPTTRANHANDLE, const char *);
int OSPPTransactionGetCNAM(OSPTTRANHANDLE, unsigned, char *);
int OSPPTransactionGetServiceType(OSPTTRANHANDLE, OSPE_SERVICE *);
int OSPPTransactionSetCallType(OSPTTRANHANDLE, const char*);
int OSPPTransactionSetCallCategory(OSPTTRANHANDLE, const char*);
int OSPPTransactionSetNetworkType(OSPTTRANHANDLE, const char*);
int OSPPTransactionSetRequestDate(OSPTTRANHANDLE, OSPTTIME);
int OSPPTransactionSetFingerPrint(OSPTTRANHANDLE, unsigned, const char **);
int OSPPTransactionSetIdentity(OSPTTRANHANDLE, unsigned, const unsigned char *, const char *, const char *, const char *, unsigned, const unsigned char *);
int OSPPTransactionGetIdentity(OSPTTRANHANDLE, unsigned *, unsigned char *, unsigned, char *, unsigned, char *, unsigned, char *, unsigned *, unsigned char *);
int OSPPTransactionSetSrcSwitchId(OSPTTRANHANDLE, const char *);
int OSPPTransactionSetDestSwitchId(OSPTTRANHANDLE, const char *);
int OSPPTransactionGetDestSwitchId(OSPTTRANHANDLE, unsigned, char *);
int OSPPTransactionSetChargingVector(OSPTTRANHANDLE, const char *, const char *, const char *, const char *);
#ifdef __cplusplus
}
#endif
#endif /* _OSPTRANSAPI_H */
|