VoxML 1.0 Element Reference

INPUT Element : Type PHONE

INPUT Element : Type PHONE

The PHONE input is used to collect telephone numbers from the user.

Syntax

<INPUT TYPE="PHONE" NAME="value" NEXT="value" [NEXTMETHOD="value"] [TIMEOUT="value"] />

Attributes

Attribute Name

Allowed Values

 

 

NAME

identifier

 

 

NEXT

next step URL

 

 

NEXTMETHOD

GET *

 

POST

 

 

TIMEOUT

milliseconds (integer)

Examples

1 <STEP NAME="phone">

2<PROMPT> What is your phone number? </PROMPT>

3<INPUT TYPE="phone" NAME="ph" NEXT="#fax"/>

4</STEP>

In this simple example, the code on line 3 illustrates the use of the PHONE input type to collect a telephone number from the user, store the number in the VoxML variable named “ph”, and go to the STEP named “fax”.

Data Format

The PHONE input makes use of an input grammar to interpret the user’s response and store that response in a standard format. The phone number is interpreted as a string of digits, and stored in the VoxML variable as such.

If a user said “One, eight zero zero, seven five nine, eight eight eight eight”, the response would be stored as “18007598888”. Note that there is no punctuation added to the digits.

October 1998

VoxML 1.0 Language Reference 29

Page 33
Image 33
Motorola 1 manual Input Element Type Phone, Data Format