| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
<transfer dest="tel:+1112223333;ani=8001112222"/>
session.connection.remote.uri
session.callerid
SESSION.CONNECTION.REMOTE.URI =sip:6782751234@xx.xx.x.x:xxxx
session.calledid
session.parentsessionid = 070a0be7e7eb6f24eae72509aafa00e3SESSION.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] |
|
mheadd
|
|
| I think the descriptions for 2 of the session variables (for ANI and DNIS values) may be reversed.
session.connection.local.uri should be the variable used to access the DNIS value of the call (i.e., the number that was dialed) session.connection.remote.uri should be the variable used to access the ANI value of the call (i.e., the caller ID) Just want to avoid any confusion for developers that need to use these variables. |
|
VoxeoDustin
|
|
| Hey Mark,
You are correct. Good catch. I've updated the docs to reflect this and they'll update on the site when the next build pushes out. Thanks again, Dustin |
|
djsteveoid
|
|
| How do blocked caller ID's look in session.telephone.ani?
Thanks, -S |
|
voxeoJeffK
|
|
| Hello,
"Blocked" callerIDs can be represented a number of ways depending on the carrier and how they pass the information. A blocked callerID will usually show as simply blank or the value "1restricted" or "restricted". Regards, Jeff Kustermann Voxeo Support |
|
moshe
|
|
| Mark, Dustin, Caller ID is not the same as ANI... let's be careful out there. | |
moshe
|
|
| session.sessionid and session.parentsessionid are both Voxeo-specifi and not part of the VoiceXML 2.0 and 2.1 specifications. | |
VoxeoBrian
|
|
| Moshe,
Thanks, since a sessionID is a platform specific designation the specification does not offer a way to implement a standardized mechanism for identifying a platform dependent item such as session.sessionid and session.parentsessionid. Hope this helps everyone! Regards, Brian F. |
|
bikash.rath
|
|
| Hi,
Is there any way I can set my own session variables and access them in some other vxml page? Bikash |
|
voxeoJeffK
|
|
| Hello Bikash,
The reserved session variables are read-only, but you can indeed create variables that can be shared across VXML documents. You use one VXML document as the application root, and then in the VXML leaf documents you specify the root document like this: <vxml version="2.1" application="root.xml"> We have some additional details here: http://www.vxml.org/varscoping.htm regards, Jeff Kustermann Voxeo Support |
|
mho
|
|
| Hello, Is there a way to get the ID of a <form> inside the form? So for example I would have something like:
<form id="mytestform"> <block> <prompt><value expr="'the id of this form is'+this.id"/></prompt> </block> </form> and it would say "the id of this form is mytestform". Thanks Mho |
|
Voxeo.Joyce
|
|
| Hello Mho,
You can set the id of a form so you know what it is. Maybe you could clarify your intention. Please feel free to contact us if we can be of any further assistance. Best Regards, Joyce Chang Voxeo Support |
| login |
|