(Page 10 of 11 in this chapter)


QUERY_TIMESLOT

Description

Returns the type of line interface associated with the specified timeslot.

To invoke this command, include it in a CxDriverCommand function call, as described in section 5.7.

Parameters

op pointer to QUERY_TIMESLOT_PARMS structure:

typedef struct _query_timeslot_parms 
{
DRVINT size ; /* size of this structure in bytes */
DRVINT stream ; /* set to network stream (16) */
DRVINT timeslot ; /* timeslot of line interface to query */
DRVINT item ; /* must be set to HYBRID_ID */
DRVINT buffer[1] ; /* buffer to receive line interface type */

} QUERY_TIMESLOT_PARMS

# of Parameters

5

Return Values

SUCCESS, or an error code from swpath.h. (See the SwitchPath Technical Reference Manual for more information about this file.)

Details

QUERY_TIMESLOT returns one of the following values:

Value

Line Interface Type

0xFF

No interface

0x07, 0x37, 0x40

Loop Start

0x3F, 0x0F

Make Busy Loop Start

0x10

Operator Work Station

0x1F

Operator Work Station with Ringing

0x18

High Impedance Monitor

0x17

Audio Tap Hybrid

0x08, 0x38, 0x80

DID / E&M

0x00, 0x30

Loop Start / Ground Start

0x58

4-Wire E&M


Note:  Not all of the line interface types listed here are currently supported.

Availability

OS/2 UNIX Windows NT

Example

This example returns the type of line interface at timeslot 15.

QUERY_TIMESLOT_PARMS op;

op.stream = 16;
op.timeslot = 15;
op.size = sizeof(op);
op.item = HYBRID_ID;

CxDriverCommand( SwHd, QUERY_TIMESLOT, (SWPINT FAR *) &op, sizeof(op)/sizeof(SWPINT)) ;
The parameter op.buffer[0] will contain the line interface type.



(Page 10 of 11 in this chapter)


Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.