Script Macros

Top  Previous  Next  Contents  Index 

Ascendis Caller ID supports a limited number of predefined macros in the original script language and Easy Actions.  They may appear anywhere in the script.  Macros are delimited by curly braces ("{" and "}") and contain the macro name, without spaces.  Macros are replaced by the indicated text before being executed by the script engine.

 

Note that DWS scripts do not support these macros.  Instead, use the CallInfo object from DWS scripts.

 

Macro Name

Replacement Text

{Name}

the full name of the caller in form {FirstName} {LastName}, or from the DisplayName field of the Contact window

{FirstName}

the first name of the caller

{LastName}

the last name of the caller

{SpeakName}

the value of the SpeakName field of the Contact window

{Number}

the phone number of the caller

{RawName}

the name of the caller as received by the caller id device

{RawNumber}

the phone number of the caller as received by the caller id device

{LocalNumber}

the phone number with the area code and country code removed

{RawLocalNumber}

the local number with all formatting removed

{CountryCode}

the country code of the phone number (determined using phone number format)

{AreaCode}

the area code of the phone number (determined using phone number format)

{Prefix}

the prefix part (or "exchange") of the phone number (determined using phone number format)

{Suffix}

the suffix part (or "number") of the phone number (determined using phone number format)

{More}

any remaining digits from the phone number (determined using phone number format)

{Date}

the date the call was received, formatted per system regional settings

{Time}

the time the call was received, formatted per system regional settings

{DateTime}

the date and time the call was received, formatted per system regional settings

{Line}

the description for the device on which the call was received

{RawLine}

the name of the device on which the call was received

{Rings}

the number of rings received when the action was performed (this is rarely useful unless you have enabled "Perform actions on each ring" in the Options window, as the action is normally performed when the caller information is received, which is always supposed to be between the first and second ring)