Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add see also

...

Expand
titleClick here to expand Table of Contents


Panel
borderColorlightgray
bgColor#f7f7f7
borderWidth1
borderStyledotted

Table of Contents
maxLevel3
outlinetrue
indent1em
excludeAbout
stylenone
excludeAbout
printablefalse


Usage

Code Block
themeEmacs
 read <min> <max> <sound file> <variable name> <timeout> <terminators>

...

Read and playback digits. In this example 400 is the destination number min digits 0 max 10 with # as a terminator. The timeout argument is an inter-digit timeout.

Code Block
languagexml
themeEmacs
languagexml
<extension name="Read Example">
  <condition field="destination_number" expression="^400$">
    <action application="answer"/>
    <action application="sleep" data="1"/>
    <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
    <action application="phrase" data="spell,${res}"/>
    <action application="hangup"/>
  </condition>
</extension>

You can also have multiple terminators just comma separate them.

Code Block
languagexml
themeEmacs
languagexml
<extension name="Read Example">
  <condition field="destination_number" expression="^400$">
    <action application="answer"/>
    <action application="sleep" data="1"/>
    <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #,*"/>
    <action application="phrase" data="spell,${res}"/>
    <action application="hangup"/>
  </condition>
</extension>



See Also