Left Half of Ascendis Software Logo Right Half of Ascendis Software Logo

CallInfo Object

Top  Previous  Next  Contents  Index 

Use the CallInfo object from DWS scripts to access information about the current caller.  The macros supported in Easy Actions and the original script language do not work in DWS scripts.

 

 

The information about the current call is stored in an object named 'CallInfo'. It contains many members which can be referenced as follows:

 

Reference

Type

Description

CallInfo.Name

String

contact's Display Name

CallInfo.RawName

String

name as received from caller id device

CallInfo.FirstName

String

contact's First Name

CallInfo.LastName

String

contact's Last Name

CallInfo.SpeakName

String

contact's Speak Name

CallInfo.Company

String

contact's Company

CallInfo.Number

String

phone number as displayed in Call list

CallInfo.RawNumber

String

phone number as received from TAPI

CallInfo.CountryCode

String

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

CallInfo.AreaCode

String

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

CallInfo.Prefix

String

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

CallInfo.Suffix

String

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

CallInfo.More

String

any digits of the phone number beyond the suffix (determined using phone number format)

CallInfo.Address

String

contact's Address

CallInfo.City

String

contact's City

CallInfo.County

String

contact's County

CallInfo.State

String

contact's State

CallInfo.PostalCode

String

contact's Postal Code

CallInfo.Country

String

contact's Country

CallInfo.Incoming

Boolean

True if call is inbound, False if outbound

CallInfo.Date

DateTime

date of call

CallInfo.DateStr

String

same as Date, but as a string

CallInfo.Time

DateTime

time of call

CallInfo.TimeStr

String

same as Time, but as a string

CallInfo.DateTime

DateTime

date and time of call

CallInfo.DateTimeStr

String

same as DateTime, but as a string

CallInfo.Line

String

as displayed in Call list

CallInfo.RawLine

String

includes network names, for network calls

CallInfo.Rings

Integer

usually 1, unless performing actions on each ring or when call ends

CallInfo.CallDone

Boolean

True if call is done, False if call is still in progress

CallInfo.FoundCaller

Boolean

True if caller was found in Caller list

 

Examples

 

Speak('Call from ' + CallInfo.Name + ' at ' + CallInfo.Number);

 

if CallInfo.RawNumber = '8005551212' then

Log('mylog.txt', 'Fred called again')

else

Log('mylog.txt', CallInfo.Name);

 

Run('AddCustomer.exe',

'"' + CallInfo.FirstName + '" ' +

'"' + CallInfo.LastName + '" ' +

'"' + CallInfo.RawNumber + '" ' +

'"' + CallInfo.DateTimeStr + '" ');

 

For a complete script example, see the CallInfo sample script.

 

Send comments or questions about web site to webmaster@ascendis.com
Modified February 4, 2008, 1:39 pm