Previous PageTable Of Contents../index.htmlIndexNext Page


2.4. Using Individual SCbus Routing Functions

To route channels using individual SCbus routing functions, perform the following (xx = the prefix that identifies the type of device: analog, digital, fax, voice, or MSI):

    1. issue a xx_getxmitslot( ) call for the first device. This function returns the SCbus time slot information contained in a SC_TSINFO structure that includes the number of the SCbus time slot connected to the transmit channel of the first device; for example, for the transmit channel of voice device 14.
    2. issue a xx_listen( ) call for the second device. This function connects the listen channel of the second device to the transmit channel of the first device by using the information contained in the SC_TSINFO structure; for example, the listen channel of digital T-1 device 12 to the transmit channel of voice device 14.
    3. issue a xx_getxmitslot( ) call for the second device. This function returns the SCbus time slot information contained in a SC_TSINFO structure that includes the number of the SCbus time slot connected to the transmit channel of the second device; for example, the transmit channel of digital T-1 device 12.
    4. issue a xx_listen( ) call for the first device. This function connects the listen channel of the first device to the transmit channel of the second device by using the information contained in the SC_TSINFO structure; for example, the listen channel of voice device 14 to the transmit channel of digital T-1 device 12.

When these functions return, full duplex communications between the devices will be established. Throughout this process, the actual SCbus time slot number is never needed to code the application.

To disconnect devices, the listen channel of each device must be disconnected from the SCbus by issuing a xx_unlisten( ) call for each device. When the function returns, the listen channel of the device will be disconnected from the SCbus and no data will be received by the device.

NOTE:
When moving the receive (listen) channel of a device to a different SCbus time slot, the xx_listen( ) function automatically disconnects the device from the existing SCbus time slot connection thus eliminating the need to issue a xx_unlisten( ) function call.

Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001