We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

trouble reading callerid

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
uncleunvoid
Posts: 16
Joined: Mon Dec 10, 2007 6:33 am

trouble reading callerid

Post by uncleunvoid »

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

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Change IVR code to support "session.telephone.ani"

Post by support »

Hi,

We don't support "session.callerid". Our implementation of caller ID is "session.telephone.ani". So, you should change your IVR code to this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.0">
<var name='callerID' expr='session.telephone.ani'/>
<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 <say-as type="acronym"> <value expr="callerID"/> </say-as>
</prompt>
</filled>
</form>
</vxml>
Hope this helps.

Regards,
Plum Support
Last edited by support on Tue Jan 12, 2010 1:37 pm, edited 2 times in total.

uncleunvoid
Posts: 16
Joined: Mon Dec 10, 2007 6:33 am

Post by uncleunvoid »

this did not do the trick it's still silent

I am calling from my office landline where i have to dial out, could that be a problem?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR issue could be due to ANI being blocked

Post by support »

Hi,

Is the ANI showing up in your IVR call logs? If not, then it could be possible that your ANI is being blocked. This could be due to various reasons:

1) The caller can opt to block their ANI from being transmitted.
2) If the caller calls from behind a company PBX, the corporate PBX may block or mask ANI.
3) Finally, ANI can be lost if the IVR call is being made to a switched toll-free number that forwards to a local number.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 1:00 pm, edited 2 times in total.

uncleunvoid
Posts: 16
Joined: Mon Dec 10, 2007 6:33 am

Post by uncleunvoid »

yep you were right it was blocked it worked on my mobile, now the only thing left is the db request

Post Reply