Previous PageTable Of Contents../index.htmlIndexNext Page

cc_SndNonCallMsg( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_SndNonCallMsg(boarddev, crn_type, msg_type, sndmsgptr)

Inputs:

LINEDEV boarddev

  board device

 

int crn_type

  ISDN call reference number type

 

int msg_type

  ISDN message type

 

NONCRN_BLK *sndmsgptr

  pointer to the message block containing non-call related ISDN message data

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_SndNonCallMsg( ) function sends a non-call related ISDN message to the network over the D channel. The cc_SndNonCallMsg( ) function specifies the ISDN CRN type as either:

Unlike the cc_SndMsg( ) function, the cc_SndNonCallMsg( ) function does not require a call reference number (CRN) to transmit the outgoing message.

Parameter

Description

boarddev:

The board device handle.

crn_type:

Specifies one of the following ISDN CRN types:

  GLOBAL_CRN

  NULL_CRN

msg_type:

Specifies one of the following ISDN message types:

 

  SndMsg_Facility

  SndMsg_FacilityACK

  SndMsg_FacilityREJ

  SndMsg_Information

  SndMsg_Notify

  SndMsg_ServiceACK

  SndMsg_Status

  SndMsg_StatusEnquiry

 

The values for msg_type are defined in cclib.h.

sndmsgptr:

Pointer to the NONCRN_BLK data structure that contains the information related to the GLOBAL or NULL CRN event. For a description of the data structure, see Section 6.9. NONCRN_BLK. See the Example code below for details.

Top Of PageCautions

Some IEs may require a Call Reference Value (CRV) to be part of the contents. The Call Reference, in this case, must be the Call Reference value assigned by the network, not the Call Reference Number (CRN) that is assigned by Dialogic and retrieved using the cc_GetCRN( ) function. It is up to the application to correctly format and order the IEs. Refer to the ISDN Recommendation Q.931 or the switch specification of the application's ISDN protocol for the relevant CCITT format. See the Example code for details.

Top Of PageExample

Top Of PageErrors

If the function returns a value < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Possible error codes from the cc_SndNonCallMsg( ) function include the following:

Error Code

Description

ERR_ISDN_LIB | E_ISBADIF

Bad interface number

ERR_ISDN_LIB | E_BADSTATE

Bad state

ERR_ISDN_LIB | E_ISBADTS

Bad time slot

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