Callfire IVR XML: trying to find out the length of the input..

20 views
Skip to first unread message

Natraj

unread,
Sep 11, 2011, 1:34:13 PM9/11/11
to CallFire
Hi all,

I'm working on Callfire's XML for the IVR:

I need to do some branching based on the length of the last input.

I've tried the following, and none have worked:
<if expr="${call.lastinput.length} &lt; 9" >
<if expr="${call.lastinput}.length &lt; 9" >
<if expr="length('${call.lastinput}') &lt; 9" >

The call just drops when it encounters this node.

Appreciate any tips in this regard.

thanks,
Natraj

William Hughes

unread,
Sep 12, 2011, 9:00:54 AM9/12/11
to call...@googlegroups.com
Natraj,

You can't put the Java statement ".length" within the system variable. It goes after, like this:


<if expr="'${call.lastinput}'.length &lt; 9">

Note that I have single quotes around the variable ('${call.lastinput}'), as it is being evaluated as a string. This is necessary for this node to work.

Bill
CallFire Solutions Team
--
Bill Hughes
CallFire Solutions Team
bi...@callfire.com
Direct: 213.221.2219
Sales: 877.897.FIRE
Reply all
Reply to author
Forward
0 new messages