Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

setparam

The setparam instruction sets a parameter associated with a script.

Synopsis

include "tas_defs.h"
setparam(type.param, type.value)

Description

The setparam instruction dynamically sets a parameter associated with a script. Note that Register 0 (r.0) is set to a negative number if the instruction fails.

The following are possible parameters that can be specified:

Example

The following example shows how to use the setparam instruction in an application to specify Nodal Long Distance Service when placing an outbound call.

#include "tas_defs.h" /* Contains SERVICE_TYPE macro definitions */

#define DIALED_NUMBER 0 /* Location of character string to be dialed */

/* Specify the speech file you wish to use */
tfile(application)

Begin:
/* Set service type for outgoing call to Nodal Long Distance */
setparam(SERVICE_TYPE, SVC_NODAL_LDS)

/* initialize character string to be dialed */
strcpy(ch.DIALED_NUMBER, "6145551212")

/* Originate call */
tic (`O', ch.DIALED_NUMBER)

...

© 2006 Avaya Inc. All Rights Reserved.