Previous PageTable Of Contents../index.htmlIndexNext Page

dx_wink( )

Description | Cautions | Example 1: | Example 2: | Errors | See Also

Name:

int dx_wink(chdev,mode)

Inputs:

int chdev

  valid Dialogic channel device handle

 

unsigned short mode

  synchronous/asynchronous setting

Returns:

0 if successful

 

-1 if failure

Includes:

srllib.h

 

dxxxlib.h

Category:

I/O

Mode:

synchronous/asynchronous

Top Of PageDescription

The dx_wink( ) function generates an outbound wink on the specified channel. A wink from a Voice board is a momentary rise of the A signaling bit, which corresponds to a wink on an E&M line. This is used for signaling T-1 spans. A wink's typical duration of 150 to 250 milliseconds used for communication purposes between the called and calling stations.

NOTE:
Do not call this function on a non-E&M line or for a SCbus T-1 digital interface device on a D/240SC or a D/240SC-T1 board. Transparent signaling for SCbus digital interface devices is not supported. See the Digital Network Interface Software Reference for information about E&M lines.

Asynchronous Operation

To run this function asynchronously set the mode field to EV_ASYNC. When running asynchronously, this function will return 0 to indicate it has initiated successfully, and will generate a TDX_WINK termination event to indicate completion. Use the SRL Event Management functions to handle the termination event.

Synchronous Operation

By default, this function runs synchronously, and will return a 0 to indicate that it has completed successfully.

The function parameters are defined as follows:

Parameter

Description

chdev

specifies the valid channel device handle obtained when the channel was opened using dx_open( ).

mode

specifies whether to run dx_wink( ) asynchronously or synchronously. Specify one of the following:

 

EV_ASYNC:

Run dx_wink( ) asynchronously.

 

EV_SYNC:

Run dx_wink( ) synchronously (default).

NOTES:
1. The dx_wink( ) function is supported on a T-1 E&M line connected to a DTI/101 board. In addition, the dx_wink( ) function is supported on the DTI/211 board in transparent mode.
2. The channel must be on-hook when dx_wink( ) is called.
3. All values referenced for this function are subject to a 10 ms clocking resolution. Actual values will be in a range: (parameter value - 9 ms) < actual value < (parameter value)

Setting Delay Prior to Wink

The default delay prior to generating the outbound wink is 150 ms. To change the delay, use the dx_setparm( ) function to enter a value for the DXCH_WINKDLY parameter where:

delay = the value entered x 10 ms

The syntax of the function is:

If delay = 15, then DXCH_WINKDLY = 15 x 10 or 150 ms.

Setting Wink Duration

The default outbound wink duration is 150 ms. To change the wink duration, use the dx_setparm( ) function to enter a value for the DXCH_WINKLEN parameter where:

duration = the value entered x 10 ms

The syntax of the function is:

If duration = 15, then DXCH_WINKLEN = 15 x 10 or 150 ms.

Receiving an Inbound Wink

NOTE:
The inbound wink duration must be between the values set for DXCH_MINRWINK and DXCH_MAXRWINK. The default value for DXCH_MINRWINK is 100 ms, and the default value for DXCH_MAXRWINK is 200 ms. Use the dx_setparm( ) function to change the minimum and maximum allowable inbound wink duration.

To receive an inbound wink on a channel:

    1. Using the dx_setparm( ) function, set the off-hook delay interval (DXBD_OFFHDLY) parameter to 1 so that the channel is ready to detect an incoming wink immediately upon going off hook.
    2. Using the dx_setevtmsk( ) function, enable the DM_WINK event.
NOTE:
If DM_WINK is not specified in the mask parameter of the dx_setevtmsk( ) function, and DM_RINGS is specified, a wink will be interpreted as an incoming call.

A typical sequence of events for an inbound wink is:

    1. The application calls the dx_sethook( ) function to initiate a call by going off hook.
    2. When the incoming call is detected by the Central Office, the CO responds by sending a wink to the board.
    3. When the wink is received successfully, a DE_WINK event is sent to the application.

Top Of PageCautions

Make sure the channel is on-hook when dx_wink( ) is called.

Top Of PageExample 1: Using dx_wink( ) in synchronous mode.

Top Of PageExample 2: Using dx_wink( ) in asynchronous mode.

Top Of PageErrors

If this function returns -1 to indicate failure, use ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to retrieve one of the following error reasons:

EDX_BADPARM

  • Invalid Parameter

EDX_SYSTEM

Top Of PageSee Also

Related Functions:

Handling and Retrieving dx_wink Termination Events:

Handling outbound winks:

Handling inbound winks:


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

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