Previous PageTable Of Contents../index.htmlIndexNext Page

d42_writetodisplay( )

Description | Cautions | Example | Errors | See Also

Name:

int d42_writetodisplay(devh, szMsg)

Inputs:

int devh

  channel device

 

char *szMsg

  message to be displayed

Returns:

0
-1

  if success

Includes:

D42LIB.H

Mode:

synchronous

Top Of PageDescription

The d42_writetodisplay( ) function places information on a phone set's display. An ASCII string held within the character buffer contains the information shown on the phone set display, if a feature session has been successfully established using the d42_openfeaturesession( ) function. The maximum size of the display buffer is dependent on the type of phone set display on the channel that the function calls.

The maximum size of the buffer is returned by the d42_openfeaturesession( ) function when a feature session is established.

Parameter

Description

devh

specifies the channel device

szMsg

specifies the message to display on a phone set during a feature session.

Top Of PageCautions

This function is valid only with the Nortel Norstar PBX.

The pointer must point to a buffer that is 49 characters long even though the displays supported will accept a maximum of either 16 or 32 characters.

A feature session must be opened using the d42_openfeaturesession( ) function to use the d42_writetodisplay( ) function.

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate a failure, one of the following (most common) codes will be contained in dx_errno. For a complete list of error codes and definitions, refer to Appendix C.

ED42_BADDDEVICE

Invalid or wrong device handle sent to the function

ED42_NOFEATURESESSION

No feature session has been opened on the channel.

ED42_UNSUPPORTED

Function not supported on this board

ED42_SYSTEM

System level error

ED42_INVALARG

Invalid argument passed to function

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 November, 2001