Previous PageTable Of Contents../index.htmlIndexNext Page

cc_SndMsg( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_SndMsg(crn, msg_type, sndmsgptr)

Inputs:

CRN crn

  call reference number

 

int msg_type

  ISDN message type

 

IE_BLK *sndmsgptr

  pointer to the information element (IE) block

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_SndMsg( ) function sends a non-Call State related ISDN message to the network over the D channel, while a call exists. The data is sent transparently over the D channel data link using the LAPD (Layer 2) protocol.

For BRI, the cc_SndMsg( ) function is used to invoke supplemental services, such as Called/Calling Party Identification, Call Transfer, and Message Waiting. The services are invoked by sending Facility Messages or Notify Messages (see Table 27) to the switch. Upon receipt of the message, the network may return a NOTIFY message to the user. The NOTIFY messages can be retrieved by calling the cc_GetCallInfo( ) function. For more information on invoking supplemental services, see Appendix D.

NOTE:
The message must be sent over a channel that has a call reference number assigned to it.

Parameter

Description

crn:

The call reference number. Each call needs a valid CRN.

msg_type:

Specifies one of the ISDN message types listed in Table 27 below. The values for msg_type are defined in cclib.h. Descriptions of the message types for DPNSS are provided in Appendix C.

sndmsgptr:

Points to the buffer (IE_BLK) that contains the information element(s) to be sent in the message. For a description of the data structure used to send the IEs, see Section 6.6. IE_BLK. See the Example code below for details.


Table 27. ISDN Message Types for cc_SndMsg( )

All Protocols

Custom BRI 5ESS only

DPNSS only

SndMsg_Congestion

SndMsg_Drop

SndMsg_Divert

SndMsg_Facility

SndMsg_DropAck

SndMsg_Intrude

SndMsg_FacilityAck

SndMsg_DropRej

SndMsg_NSI

SndMsg_FacilityRej

SndMsg_Redirect

SndMsg_Transfer

SndMsg_Information

 

SndMsg_Transit

SndMsg_Notify

   

SndMsg_Status

   

SndMsg_StatusEnquiry

   

SndMsg_UsrInformation

   

Top Of PageCautions

None

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_SndMsg( ) 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