VoiceXML 2.1 Development Guide Home  |  Frameset Home

  Post-Dialing  |  TOC  |  Transfer Hotwording  

Transfer Shadow Variables

There is really only one shadow variable that comes up often in most developer code. If you want to be able to log the length of a user's call, (such as for billing purposes), you need only access the lastResult$.duration shadow variable within your application:


      <transfer name="MyCall" dest="tel:+12223334444"
          bridge="true" connecttimeout="20s" maxtime="60s">

            ...
        <filled>
            ...
          <prompt>
            The length of the call was <value expr="MyCall$.duration"/> seconds.
          </prompt>
      </filled>


However, if using <transfer> hotwording, (see the next subsection for details), there are a few others that we can grab. The lastResult$.inputmode shadow variable will relay the method, (voice or dtmf), in which the transfer was terminated. The lastResult$.utterance variable will contain the utterance/dtmf key that was entered by the caller to terminate the conference:


<transfer name="MyCall" dest="tel:+12223334444"
          bridge="true" connecttimeout="20s" maxtime="60s">

      <grammar type="application/x-gsl">(bye)</grammar>
      <grammar type="application/x-gsl">(dtmf-1)</grammar>

          ...
        <filled>
          <prompt>
                          The length of the call is <value expr="MyCall$.duration"/>
    The input modeof the call was <value expr="MyCall$.inputmode"/>
    The utterance of the call was <value expr="MyCall$.utterance"/>
          </prompt>
        </filled>





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

login

  Post-Dialing  |  TOC  |  Transfer Hotwording  

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