Version 6.4 455 March 2012
SIP User's Manual 20. Configuring the IP Media Parameters
In the example below, the device is directed to announce the string as a North American
directory number. The output is “eight hundred, five five five, one two one two”. A few
moments of silence are inserted at the points in the phrase indicated by commas.
<audio> <say-as interpret-as=”telephone:ndn”> 8005551212 </say-as>
In the example below, the device outputs the announcement “one million two hundred
twenty thousand seven hundred dollars and fifteen cents”:
<audio> <say-as interpret-as=”currency:usd”> 122070015 </say-as>
20.1.3.4.2.3 Supplying Values to Provisioned Variables
As mentioned previously, the APS provides the capability to provision several types of
advanced audio structures, including multi-language variables. A multi-language variable is
an instance of one of the supported phrase types such as date and time. The APS assigns
a numeric segment identifier to each variable, and the value for the variable can be
provided at runtime. VXML doesn't define any capability for passing a value to a variable,
therefore, the AudioCodes VXML Interpreter provides an extension to support this
capability.
Below is an example that demonstrates this capability. Assume that a variable of type
“date” has been provisioned on the APS, and the variable has been assigned segment
identifier 17.
<audio src=”http://localhost/17?var=20080120”/>
In this example, the device outputs the date “January 20th, 2008”.
20.1.3.4.2.4 Supplying Selector Values to Provisioned Variables and to Say-as
Phrases
Another concept supported by the device is “selectors”. A selector is a keyword and value
pair that is used by the device software to build announcements. There can be many
combinations of keywords and values used for selectors, but the keyword “lang” and a
language code are especially useful because this pair of tokens can be used to vary the
language for announcements. For example, to announce the date from the previous
example in French, below is syntax using the previous example along with a selector that
builds the French announcement:
<audio src=”http://localhost/17?var=20070620&sel=lang=fr”/>
More than one selector in an <audio> element can exist. In the example below, the
language is French and gender selector with the value “female” is also specified:
<audio
src=”http://localhost/17?var=20070620&sel=lang=fr&gender=F”/>