VoiceXML 2.1 Development Guide Home  |  Frameset Home

  Transfer Shadow Variables  |  TOC  |  H: Property Guide  

Transfer Hotwording

Transfer hotwording is a feature that allows the caller to designate a grammar that will be active for the caller only during a transferred call. Transfer hotword grammars are best limited to short utterances. Why is this, you ask? Keep in mind that the interpreter has to listen to every spoken word in the transferred call, and pick out only the valid grammar matches to kick off the hotword event. For this reason, large grammar utterances will definitely cause a decrease in accuracy. Included below is some sample code that illustrates the technique of Transfer Hotwording:


Transfer Hotwording Sample Code


<?xml version="1.0" encoding="UTF-8"?>

<vxml version="2.1">

<meta name="maintainer" content="yourEmail@here.com"/>


  <form id="TransferTest">

    <block name="xfertime">
      <prompt>
        It is transfer time. Please hold while we connect you.
      </prompt>

      <goto nextitem="transfer1"/>
    </block>

    <transfer name="transfer1" bridge="true" connecttimeout="20s" dest="tel:+12223334444">
      <grammar type="text/gsl">
          [(stop ?this ?call)]
        </grammar>

          <filled>

            <log expr="'*** DURATION = ' + transfer1$.duration + ' seconds ***'"/>
            <log expr="'*** INPUTMODE = ' + transfer1$.inputmode + '***'"/>
            <log expr="'*** UTTERANCE = ' + transfer1$.utterance + '***'"/>

            <if cond="transfer1 == 'maxtime_disconnect'">
              <prompt>
                Filled. Max time disconnect.
              </prompt>

          <elseif cond="transfer1 == 'far_end_disconnect'" />
            <prompt>
              far end disconnect.
            </prompt>
 
          <elseif cond="transfer1 == 'noanswer'" />
            <prompt>
                no answer!
            </prompt>
 
            <elseif cond="transfer1 == 'busy'" />
              <prompt>
                busy.
              </prompt>

        <else/>

        </if>
      </filled>   
    </transfer>

  </form>
</vxml>




  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login

  Transfer Shadow Variables  |  TOC  |  H: Property Guide  

© 2003-2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site