IVR Software Manual ivr_speak_date
  CALL CENTER SYSTEMS AND SOFTWARE RESOURCE CENTER
call centers

IVR Software Library
ivr_speak_date

IVR Software API Manual

ivr software support functions Database Systems Corp. (DSC) provides an API subroutine library of IVR Software routines that perform phone functions. The following is a description of one of the functions within this library that controls the IVR operation - ivr_speak_date.

The routine is from our C programming library, although this same routine has an equivalent for Visual Basic, .NET, C++ and Active-X. DSC provides a separate user guide for each of these languages.

Contact DSC to obtain the most current IVR manuals in your required programming language.



ivr_speak_date()

int ivr_speak_date(int call, char* text_date, int type, int allow_interrupt);

The ivr_speak_date function speaks a date given in a specified format to the specified call.

Parameters

int

call

Specifies which call to speak to.
It can be one of the following values.

CALL_PRIMARY:Speak to Primary Call
CALL_SECONDARY:Speak to Secondary Call

char*

text_date

date to speak

int

type

Specifies the type of incoming date.
It can be one of the following values.

USA: (month day year)
ISO: (year month day)
EUR: (day month year)

int

allow_interrupt

Specifies if a digit can interrupt the date.
It can be one of the following values.

NO_INTERRUPT: Do not allow reading to be interrupted by a digit
INTERRUPT: Allow reading to be interrupted by a digit

Return Value

Returns IVR_SUCCESS on a successful function call. On error the function returns one of the IVR Error Codes.

Examples

ivr_speak_date(CALL_PRIMARY,"January 5th 1980", USA, NO_INTERRUPT);
ivr_speak_date(CALL_PRIMARY,"2000 12 25", ISO, NO_INTERRUPT);
ivr_speak_date(CALL_PRIMARY,"21 MAR 02", EUR, NO_INTERRUPT);

ivr_speak_date(CALL_PRIMARY,"Feb 2001", USA, NO_INTERRUPT);
ivr_speak_date(CALL_PRIMARY,"April 5", USA, NO_INTERRUPT);

*** Month, Day and Year must be delineated ... not like: "19800115" ***
*** Two digit years are assumed to be between 1970 and 2069 ***