Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Execing TAS script applications

The following parallels exist between the IRAPI and TAS scripts:

The following example shows how a TAS application is started from an IRAPI process. The registers are set with the data supplied through the register argument and the buf and buf_len arguments set the exec buffer. Note that IRP_EXEC_BUF and IRP_EXEC_BUF length are set automatically by the irExecp (or irSubProgp) function. The define symbol "TSM'' is defined in /att/include/mesg.h.

int exec_tas(channel_id cid, const int *register, const char *buf,
int buf_len, const char *service)
{
(void) irSetParamStr(cid, IRP_REGISTER, register);
if ( irExecp(cid, service, TSM, buf, buf_len) == IRR_FAIL ) {
return(0);
}
return(1);
}

© 2006 Avaya Inc. All Rights Reserved.