Transfer delay 15s

Unanswered Question
Dec 10th, 2007

<?xml version="1.0"?>

<vxml version="2.1">

<!--

Script Pin Caller.

Nov 2007: ver. 1.0

Dec 2007: ver. 1.1

+ Tripple pin check

-->

<var name="default_number" expr="'1224'"/>

<var name="pin_code" expr="5223"/>

<var name="retry_pin" expr="3"/>

<var name="iter_pin" expr="0"/>

<var name="number" expr="''"/>

<var name="my_gtd" expr="new com.cisco.objclass.gtd()" />

<property name="com.cisco.transfer.mode" value="rotary" />

<form id="main">

<block>

<prompt>

<audio expr="'flash:welcome.au'"/>

</prompt>

<goto next="#chk_pin"/>

</block>

</form>

<form id="chk_pin">

<property name="timeout" value="3s"/>

<catch event="noinput"> <goto next="#trans_default"/> </catch>

<block>

<clear namelist="get_pin"/>

<if cond="iter_pin >= retry_pin">

<goto next="#trans_default"/>

</if>

<assign name="iter_pin" expr="iter_pin + 1"/>

<prompt>

<audio expr="'flash:beep.au'"/>

</prompt>

</block>

<field name="get_pin" type="digits?length=4">

<property name="com.cisco.dtmf.termlength" value="4"/>

<grammar type="application/grammar+regex">[0-9][0-9][0-9][0-9]</grammar>

<filled>

<if cond="get_pin == pin_code">

<goto next="#pin_approve"/>

<else/>

<prompt>

<audio expr="'flash:busy.au'"/>

</prompt>

<goto next="#chk_pin"/>

</if>

</filled>

</field>

</form>

<form id="pin_approve">

<property name="timeout" value="8s"/>

<catch event="noinput"> <goto next="#notmatch"/> </catch>

<block>

<prompt>

<audio expr="'tftp://123.com/vxml/processing.au'"/>

<audio expr="'flash:beep.au'"/>

</prompt>

</block>

<field name="num" type="digits?length=4">

<catch event="nomatch">

<goto next="#notmatch"/>

</catch>

<property name="com.cisco.dtmf.termlength" value="4"/>

<grammar type="application/grammar+regex">[123][0-9][0-9][0-9]</grammar>

<filled>

<assign name="number" expr="'phone://'+num"/>

<goto next="#trans_number"/>

</filled>

</field>

</form>

<form id="notmatch">

<block>

<prompt>

<audio expr="'flash:goodbye.au'"/>

</prompt>

</block>

</form>

<form id="trans_number">

<block>

<prompt bargein="false">

<audio expr="'flash:beep.au'"/>

</prompt>

</block>

<transfer name="mycall" destexpr="number" bridge="false"></transfer>

</form>

<form id="trans_default">

<block>

<prompt bargein="false">

<audio expr="'flash:no_input.au'"/>

</prompt>

</block>

<transfer name="mycall" destexpr="'phone://'+default_number" bridge="false"> </transfer>

</form>

</vxml>

This is work ok, but between id "pin_approve" and id "trans_number" there is a delay = 15 second. why?

AS5300

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion