How to insert sessionid and session.telephone.ani into URL
Posted: Mon Jan 30, 2012 5:39 am
Dear support team,
I need your advice. I'm trying to implement dynamic IVR via VoiceXML in our company. At the moment I have a direct URL to write logs into database. The URL is: http://XXX.XXX.XXX.XXX:9090/Rotocell/in ... word=12345. I need to create 2 variables: sessionid and session.telephone.ani and replace with ani= var for session.telephone.ani and sid=var for sessionid. Could you please help with correct path to perform it. I just need correct syntax. My code is below. I have marked ani and sid sections in subdialog URL in bold. Thanks beforehand.
<?xml version="1.0" ?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-US" >
<var name="v_msisdn" expr="session.telephone.ani"/>
<var name="v_id" expr="sessionid"/>
<filled>
<goto next="#sub"/>
</filled>
<form id="sub">
<subdialog name ="sub" src="http://XXX.XXX.XXX.XXX:9090/Rotocell/in ... ="v_msisdn"[/b]&sid=v_id&dtmfcode=NAR&password=12345">
<filled>
<if cond="sub.ret == 0">
<goto next="start.vxml"/>
<elseif cond="sub.ret == 1" />
<goto next="start.vxml"/>
<elseif cond="sub.ret == 2" />
<prompt>
<audio src="black.wav"/>
</prompt>
<exit/>
<elseif cond="sub.ret == 3" />
<prompt>
<audio src="insuf.wav"/>
</prompt>
<exit/>
</if>
</filled>
</subdialog>
</form>
</vxml>
I need your advice. I'm trying to implement dynamic IVR via VoiceXML in our company. At the moment I have a direct URL to write logs into database. The URL is: http://XXX.XXX.XXX.XXX:9090/Rotocell/in ... word=12345. I need to create 2 variables: sessionid and session.telephone.ani and replace with ani= var for session.telephone.ani and sid=var for sessionid. Could you please help with correct path to perform it. I just need correct syntax. My code is below. I have marked ani and sid sections in subdialog URL in bold. Thanks beforehand.
<?xml version="1.0" ?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-US" >
<var name="v_msisdn" expr="session.telephone.ani"/>
<var name="v_id" expr="sessionid"/>
<filled>
<goto next="#sub"/>
</filled>
<form id="sub">
<subdialog name ="sub" src="http://XXX.XXX.XXX.XXX:9090/Rotocell/in ... ="v_msisdn"[/b]&sid=v_id&dtmfcode=NAR&password=12345">
<filled>
<if cond="sub.ret == 0">
<goto next="start.vxml"/>
<elseif cond="sub.ret == 1" />
<goto next="start.vxml"/>
<elseif cond="sub.ret == 2" />
<prompt>
<audio src="black.wav"/>
</prompt>
<exit/>
<elseif cond="sub.ret == 3" />
<prompt>
<audio src="insuf.wav"/>
</prompt>
<exit/>
</if>
</filled>
</subdialog>
</form>
</vxml>