Previous PageTable Of Contents../index.htmlIndexNext Page

ag_getctinfo( )

Description | Cautions | Example | Errors | See also

Name:

int ag_getctinfo(chdev, ct_devinfop)

Inputs:

int chdev

  analog channel handle

 

CT_DEVINFO *ct_devinfop

  pointer to device information structure

Returns:

0 on success

 

 

-1 on error

 

Includes:

dxxxlib.h

 

Mode:

Synchronous

Top Of PageDescription

The ag_getctinfo( ) function returns information about the analog device. This function provides information about an analog channel such as on a D/41ESC or D/160SC-LS board.

Parameter

Description

chdev:

Specifies the valid analog channel handle obtained when the channel was opened using dx_open( ).

ct_devinfop:

Specifies a pointer to the data structure CT_DEVINFO.

On return from the function, the CT_DEVINFO structure contains the relevant information and is declared as follows:

Valid values for each member of the CT_DEVINFO structure are defined in dxxxlib.h. Possible return values are:


     
    CT_DFD41E

     
    analog channel of a D/41ESC board

     
    CT_DFSPAN

     
    analog channel of a D/160SC-LS board

CT_DMRESOURCE

analog channel not in use


     
    CT_DMNETWORK

analog channel available to process calls from the telephone network


     
    CT_NTNONE

D/41ESC board configured as a resource device; voice channels available for call processing; analog channels are disabled.


     
    CT_NTANALOG

analog and voice devices on board are handling call processing


     
    CT_BMPEB

PEB (PCM Expansion Bus) architecture


     
    CT_BMSCBUS

SCbus architecture


     
    CT_BEULAW

     
    Mu-law encoding

     
    CT_BEALAW

     
    A-law encoding

Top Of PageCautions

This function will fail if an invalid channel handle is specified.

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive error message. One of the following error codes may be returned:

Equate

Returned When

EDX_BADPARM

Parameter error

EDX_SH_BADEXTTS

Cbus time slot is not supported at current clock rate

EDX_SH_BADINDX

Invalid Switch Handler library index number

EDX_SH_BADTYPE

Invalid channel type (voice, analog, etc.)

EDX_SH_CMDBLOCK

Blocking command is in progress

EDX_SH_LIBBSY

Switch Handler library busy

EDX_SH_LIBNOTINIT

Switch Handler library uninitialized

EDX_SH_MISSING

Switch Handler is not present

EDX_SH_NOCLK

Switch Handler clock fallback failed

EDX_SYSTEM

Linux system error

Top Of PageSee also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated February, 2002