The setattr instruction statically sets an attribute associated with a script.
Synopsis
#include "tas_defs.h"
setattr(attribute)
Description
The setattr instruction statically sets an attribute associated with a script. Several attributes may be combined by several invocations of setattr.
The attributes that setattr modifies are static and control functions that take place before a script is started on a channel. It is not possible to vary dynamically script behavior that is controlled with setattr. Therefore, the setattr instruction should not be used to set conflicting attributes (for example, by using both setattr(ATTR_ANI) and setattr(ATTR_SID_0) instructions).
Valid attributes are:
ATTR_ANI |
ANI only |
ATTR_ANI_O |
ANI only |
ATTR_ANI_P |
ANI preferred |
ATTR_SID_O |
SID only |
ATTR_SID_P |
SID preferred |
Example
For example, to set an attribute that requests a station identification (SID) for the calling party number (CPN), use:
setattr(ATTR_SID_O)