trouble reading callerid
Posted: Wed Dec 12, 2007 11:40 am
I been trying to recognize the callers id. I am using a demo account for testing.
this is my code:
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.0">
<var name='callerID' expr='session.callerid'/>
<form id="welcome">
<block>
<prompt>
Your mobile just got way cooler
</prompt>
<goto next="#enterKey"/>
</block>
</form>
<form id="enterKey">
<field name="keyCode" type="digits?length=1">
</field>
<filled namelist="keyCode" mode="all">
<prompt>
You pressed <value expr="keyCode" />
your number is <value expr="callerID"/>
</prompt>
</form>
</vxml>
it ends in a serious error. I checked the documentations on both plum and voxeo, but no luck so far, any ideas?
Marcus
this is my code:
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.0">
<var name='callerID' expr='session.callerid'/>
<form id="welcome">
<block>
<prompt>
Your mobile just got way cooler
</prompt>
<goto next="#enterKey"/>
</block>
</form>
<form id="enterKey">
<field name="keyCode" type="digits?length=1">
</field>
<filled namelist="keyCode" mode="all">
<prompt>
You pressed <value expr="keyCode" />
your number is <value expr="callerID"/>
</prompt>
</form>
</vxml>
it ends in a serious error. I checked the documentations on both plum and voxeo, but no luck so far, any ideas?
Marcus