Table of Contents Index NMS Glossary Previous Page Next Page (Page 34 of 69 in this chapter) Version


adiSetExtendedArgs

Description

Sets new arguments for the call control function that immediately follows it.

Prototype

DWORD adiSetExtendedArgs ( CTAHD ctahd,
void *extargs,
size size)

ctahd CTA context handle returned by ctaCreateContext.

extargs Pointer to data structure containing extended arguments.

size Size of data structure extargs.

Return Values

SUCCESS

Events

None.

Details

This function sets additional arguments for the next call to adiAcceptCall, adiAnswerCall, adiPlaceCall, adiRejectCall, or adiReleaseCall.

The arguments set by adiSetExtendedArgs are only applicable to the next call. adiSetExtendedArgs must be repeated for subsequent calls.

The arguments to be sent are stored in one of several data structures, depending upon the next call control function to be invoked. Refer to the AG ISDN for Natural Call Control Developer's Manual for a list of these structures.

See Also

adiAcceptCall, adiAnswerCall, adiPlaceCall, adiRejectCall, adiReleaseCall

Example


/* Declaration of the extended Place Call structure */
ISDNPLACECALL_EXTARGS pc_extargs;

if (sendUUI) /* If we want to send UUI with the setup message */
{
memset (&pc_extargs, 0, sizeof (pc_extargs));/* Clean it */
strcpy (pc_extargs.callingnumber.digits, "5082711333");
/* Specify calling no. */
strcpy (pc_extargs.redirectingnumber.digits, "5082711270");
/* Specify redir no. */
strcpy (pc_extargs.uui, /* Specify the UUI */
"Inoutcta - Natural MicroSystems call control demo: hello");
/* Set structure in ADI*/
adiSetExtendedArgs (cx->ctahd, &pc_extargs, sizeof (pc_extargs));
}

/* Now place the call: the extended arguments will go with it */
adiPlaceCall( cx->ctahd, cx->dialstring, NULL );


Table of Contents Index NMS Glossary Previous Page Next Page (Page 34 of 69 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.