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

errno: 210 message Maximum loop count exceeded

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
zone24x7
Posts: 29
Joined: Fri May 19, 2006 7:50 am

errno: 210 message Maximum loop count exceeded

Post by zone24x7 »

what is this error = >errno: 210 message Maximum loop count exceeded
and how can we avoid this from happening. this happens when the user hangs the phone down while the system is going through the voicexml script

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

Issue due to disconnects not being detected by IVR system

Post by support »

Hello,

The error indicates that there is an infinite loop in your IVR code. This issue is likely being caused because disconnects are not being detected by our IVR system. This is often a problem with PBX or VOIP based systems using analog phone lines. The best solution is to provide a <noinput> event handler that uses the count attribute. This allows you to programatically detect when the line should be disconnected.

This example will break on an IVR system without disconnect detection:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.1">
<form>
	<field name="field1" type="digits">
		<prompt>Please enter some digits.</prompt>
		<nomatch>Sorry I didn't hear you.</nomatch>
		<noinput>Sorry I didn't understand you.</noinput>
		<filled>You entered<value expr="field1"/>.</filled>
	</field>
</form>
</vxml>
To fix the IVR code above you should do the following:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.1">
<form>
	<field name="field1" type="digits">
		<prompt>Please enter some digits.</prompt>
		<nomatch>Sorry I didn't hear you.</nomatch>
		<noinput>Sorry I didn't understand you.</noinput>
		<noinput count="2"><disconnect/></noinput>
		<filled>You entered<value expr="field1"/>.</filled>
	</field>
</form>
</vxml>
The count attribute allows you to control how long the IVR system waits before determining the caller is no longer on the line. You can also make use of the count attribute to provide a more robust user interface instead of just prompting them over and over again.

Regards,
Plum Support

Post Reply