|
|
In the example below the system will play "Sorry we couldn't find you" and then will jump to the tag named "enter-id" only if the expression (1+45 / 50) > ${call.lastinput} equals false.
<if expr="(1+45 / 50) > ${call.lastinput}">
<play type="tts" voice="male1">
Hello ${call.callerid}. You have 12 credits left.
</play>
<play type="tts" voice="male1">
Oh wait ${call.callerid}. You have 11 credits left.
</play>
<else>
<play type="tts">
Sorry we couldn't find you!
</play>
<goto>enter-id</goto>
</else>
</if>