This file is indexed.

/usr/include/osp/osptransapi.h is in libosptk3-dev 3.4.2-1.2.

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
/**************************************************************************
*** 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"

/* Authorisation Indicators */
#define OSPC_TRAN_AUTHORISED        0x0001
#define OSPC_TRAN_REAUTHORISED      0x0002
#define OSPC_TRAN_NOT_AUTHORISED    0xefff

#ifdef __cplusplus
extern "C" 
{
#endif

    /* Function Prototypes */

    int OSPPTransactionGetDestProtocol(OSPTTRANHANDLE,OSPE_DEST_PROT *);

    int OSPPTransactionIsDestOSPEnabled(OSPTTRANHANDLE,OSPE_DEST_OSP_ENABLED *);

    int OSPPTransactionSetNetworkIds(OSPTTRANHANDLE,const char *,const char *);

    int OSPPTransactionAccumulateOneWayDelay(OSPTTRANHANDLE, unsigned, 
            unsigned, unsigned, float);

    int OSPPTransactionAccumulateRoundTripDelay(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, enum 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_NUMBERING_FORMAT, const char *,
            OSPE_NUMBERING_FORMAT, unsigned, const void *, unsigned, const void *,unsigned *,unsigned *,
            unsigned *, void *,unsigned);

    int OSPPTransactionNew(OSPTPROVHANDLE, OSPTTRANHANDLE *);

    int OSPPTransactionRecordFailure(OSPTTRANHANDLE, enum OSPEFAILREASON);

    int OSPPTransactionReinitializeAtDevice(OSPTTRANHANDLE, enum 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, unsigned, unsigned char *,unsigned, signed,
            unsigned, signed, unsigned *, void *);

    int OSPPTransactionRequestAuthorisation(OSPTTRANHANDLE, const char *, 
            const char *, const char *, OSPE_NUMBERING_FORMAT, const char *, OSPE_NUMBERING_FORMAT, const char *, 
            unsigned, OSPTCALLID *[], 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_NUMBERING_FORMAT, 
            const char *, OSPE_NUMBERING_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        ospvIsSource,           /*In - Is this the ogw or tgw */
    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_NUMBERING_FORMAT ospvCallingNumberFormat, /* In - Calling number formaat : sip/e.164/url */
    const char     *ospvCalledNumber,       /*In - Called number */
    OSPE_NUMBERING_FORMAT ospvCalledNumberFormat, /* In - Called number formaat : sip/e.164/url */
    unsigned        ospvSizeOfCallId,       /*In - Size of Callid */
    const void     *ospvCallId,             /*In - Call identifier */
    enum 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    *ospvIsLookAheadInfoPresent, /* Out */
        char        *ospvLookAheadDestination, /* Out */
        OSPE_DEST_PROT      *ospvLookAheadDestProt, /* Out */
        OSPE_DEST_OSP_ENABLED       *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
    OSPPTransactionGetDestNetworkId(OSPTTRANHANDLE  ospvTransaction,/* In - Transaction handle */
                                char*    ospvNetworkId);

int
OSPPTransactionSetServiceAndPricingInfo(
    OSPTTRANHANDLE  ospvTransaction,    /* In - Transaction handle             */
    OSPE_SERVICE_TYPE ospvServiceType, /* In- type of service, 0-voice, 1-data */
    OSPT_PRICING_INFO    *ospvPricingInfo[]); /* In- Pricing Info */


#ifdef __cplusplus
}
#endif

#endif