| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
<transfer dest="tel:+1112223333;ani=8001112222"/>
session.connection.local.uri
session.callerid
SESSION.CONNECTION.REMOTE.URI =sip:6782751234@xx.xx.x.x:xxxx
session.calledid
SESSION.SESSIONID=dd552fcdc5fccef412f96d38818a1c25
[confidence=0.6,utterance='dweezil',inputmode=voice,interpretation={F_1=zappa} ]
fieldname$.value syntax.| Utterance Value | Slot | Interpretation Value |
[coca cola] | { <F_1 | "coke"> } |
<if cond="R_1$.size < 0">
<!--dont do anything-->
<else/>
<submit next="Myserver.com"/>
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.0" xmlns="http://www.w3.org/2001/vxml"
xmlns:nuance="http://voicexml.nuance.com/dialog">
<form id="F1">
<field name="F_1">
<prompt> say something here that is very clever and witty </prompt>
<grammar type="text/gsl">[libertine]</grammar>
<filled>
<log expr="'APPLICATION.BROWSER =' + application.browser"/>
<log expr="'@@@@@@@@ APPLICATION VARS @@@@@@@'"/>
<log expr="'CONFIDENCE =' + F_1$.confidence"/>
<log expr="'INPUTMODE =' + F_1$.inputmode"/>
<log expr="'INTERPRETATION = ' + F_1$.interpretation"/>
<log expr="'UTTERANCE =' + F_1$.utterance"/>
<log expr="'@@@@@@@@ END APPLICATION VARS @@@@@@@'"/>
</filled>
</field>
<record name="R_1" beep="true">
<prompt> next record some stuff here</prompt>
<filled>
<log expr="'#############################'"/>
<log expr="'DURATION =' + R_1$.duration"/>
<log expr="'SIZE =' +R_1$.size"/>
<log expr="'TERMCHAR =' + R_1$.termchar"/>
<log expr="'MAXTIME =' + R_1$.maxtime"/>
<log expr="'############################'"/>
</filled>
</record>
<transfer name="T_1" bridge="true" dest="tel:+1112223333">
<prompt> preparing to place the call</prompt>
<filled>
<log expr="'********** SESSION VARS ***************'"/>
<log expr="'SESSION.CALLEDID =' + session.calledid"/>
<log expr="'SESSION.CALLERID =' + session.callerid"/>
<log expr="'SESSION.CONNECTION.LOCAL.URI =' + session.connection.local.uri"/>
<log expr="'SESSION.CONNECTION.REMOTE.URI =' + session.connection.remote.uri"/>
<log expr="'SESSION.SESSIONID=' + session.sessionid"/>
<log expr="T_1$.duration"/>
<log expr="'***********END SESSION VARS**************'"/>
<if cond="T_1 == 'busy'">
<prompt>The line is busy. </prompt>
<exit/>
<elseif cond="T_1 == 'noanswer'"/>
<prompt> No one is home. </prompt>
</if>
</filled>
</transfer>
</form>
</vxml>
| ANNOTATIONS: EXISTING POSTS |
ddantow
|
|
| I think the line
<log expr="'SESSION.ID=' + session.id"/> should be <log expr="'SESSION.ID=' + session.sessionid"/> |
|
JimMurphy
|
|
| ddantow,
Good catch. We'll update the documentation. Jim |
|
MattHenry
|
|
|
Just as an FYI, both variable syntaxes will work on the Voxeo VXML platform, but I can see the source of confusion, since we listed "session.sessionid" in the table, yet referenced "session.id" in the code example. ~Matt |
|
ktmanley
|
|
| Note that lastResult$ should be spelled lastresult$ on the Prophecy platform. | |
yungwei
|
|
| Suppose application.lastresult$ contains multiple items. I'd like to loop through it and print out the interpretation of each item in the following format. How can I do that? Thanks.
format: [slot-name]=[value] |
| login |
|