Attribute VB_Name = "Module3"

'FILE: dxcallp.bas

Global Const DX_CALLP = 1               ' Turn on Call Analysis

'Defines for Call Analysis modes ( ca_intflg field )
 
Global Const DX_OPTEN = 1               ' Enable Operator Intercept with Connect
Global Const DX_OPTDIS = 2              ' Disable Operator Intercept
Global Const DX_OPTNOCON = 3            ' Enable Operator Intercept w/o Connect
Global Const DX_PVDENABLE = 4           ' Enable PVD
Global Const DX_PVDOPTEN = 5            ' Enable PVD with OPTEN
Global Const DX_PVDOPTNOCON = 6         ' Enable PVD with OPTNOCON
Global Const DX_PAMDENABLE = 7          ' Enable PAMD
Global Const DX_PAMDOPTEN = 8           ' Enable PAMD with OPTEN

'Call Analysis termination type.
 
Global Const CR_BUSY = 7                     ' Line busy
Global Const CR_NOANS = 8                    ' No answer
Global Const CR_NORB = 9                     ' No ringback
Global Const CR_CNCT = 10                    ' Call connected
Global Const CR_CEPT = 11                    ' Operator intercept
Global Const CR_STOPD = 12                   ' Call analysis stopped
Global Const CR_NODIALTONE = 17              ' No dialtone detected
Global Const CR_FAXTONE = 18                 ' Fax tone detected
Global Const CR_ERROR = &H100                ' Call analysis error

'Tone ID types
 
Global Const TID_FIRST = 250
Global Const TID_DIAL_LCL = 250
Global Const TID_DIAL_INTL = 251
Global Const TID_DIAL_XTRA = 252
Global Const TID_BUSY1 = 253
Global Const TID_RNGBK1 = 254
Global Const TID_BUSY2 = 255
Global Const TID_RNGBK2 = 256
Global Const TID_DISCONNECT = 257
Global Const TID_FAX1 = 258
Global Const TID_FAX2 = 259
Global Const TID_LAST = 259

'Call Analysis Errors as returned by ATDX_CPERROR()
 
Global Const CR_MEMERR = 1             ' Out of Memory when Creating Temporary SIT Tone Templates
Global Const CR_TMOUTON = 2            ' Timeout Waiting for SIT Tone
Global Const CR_TMOUTOFF = 3           ' SIT Tone too long
Global Const CR_UNEXPTN = 4            ' Unexpected SIT Tone
Global Const CR_MXFRQERR = 5           ' Invalid ca_maxtimefrq field in DX_CAP
Global Const CR_UPFRQERR = 6           ' Invalid Upper Frequency Selection
Global Const CR_LGTUERR = 7            ' Lower Freq. Greater than Upper Freq.
Global Const CR_OVRLPERR = 8           ' Overlap in Selected SIT Tones

'Connection types ( ATDX_CONNTYPE() )
 
Global Const CON_CAD = 1               ' Cadence Break
Global Const CON_LPC = 2               ' Loop Current Drop
Global Const CON_PVD = 3               ' Positive Voice Detect
Global Const CON_PAMD = 4              ' Positive Answering Machine Detect

'PAMD equates
 
Global Const PAMD_FULL = 1             ' FULL decision on PAMD
Global Const PAMD_QUICK = 2            ' QUICK decision on PAMD
Global Const PAMD_ACCU = 3             ' ACCURACY more important than speed (recommended)

Global Const PAMD_QUAL1TMP = 11 ' Qualification template 1 for PAMD
Global Const PAMD_QUAL2TMP = 12 ' Qualification template 1 for PAMD



