How to have auto hangup after repeating <noinput> 3 times?
Posted: Tue Dec 28, 2010 2:07 am
Hi,
I am trying to make the call hang up by itself if there is no response from caller after repeating <noinput> 3 times.
Have anyone able to do this yet? I've tried the timeout options but didnt seem to work, i'm sending the following xml upon answering a call.
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$xml .= "<vxml version = \"2.0\" >";
$xml .= "<property name=\"inputmodes\" value=\"dtmf\"/><property name=\"interdigittimeout\" value=\"5s\"/>";
$xml .= "<form id=\"getInput\"><field name=\"$name\" type=\"$type\"><prompt>$message</prompt></field><noinput>$noinput<reprompt/></noinput>";
$xml .= "<block><submit namelist=\"session.telephone.ani $name session.telephone.dnis session.id\" next=\"vxml_plum.pl\"/></block></form></vxml>";
Advise much appreciated!
rgds
sasa
I am trying to make the call hang up by itself if there is no response from caller after repeating <noinput> 3 times.
Have anyone able to do this yet? I've tried the timeout options but didnt seem to work, i'm sending the following xml upon answering a call.
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$xml .= "<vxml version = \"2.0\" >";
$xml .= "<property name=\"inputmodes\" value=\"dtmf\"/><property name=\"interdigittimeout\" value=\"5s\"/>";
$xml .= "<form id=\"getInput\"><field name=\"$name\" type=\"$type\"><prompt>$message</prompt></field><noinput>$noinput<reprompt/></noinput>";
$xml .= "<block><submit namelist=\"session.telephone.ani $name session.telephone.dnis session.id\" next=\"vxml_plum.pl\"/></block></form></vxml>";
Advise much appreciated!
rgds
sasa