Voicemail cutt off
Posted: Mon Oct 11, 2010 9:54 am
Hi,
I am using the code attached at the end of this topic to record a voicemail and to post it to our servers. Everything works fine, but there are days when some callers try 2-3 times to record a voicemail and still they get cut of after less then 10 seconds. Please advise.
Sergiu
<form id="voicemail">
<script>
tries=0;
</script>
<block>
<var name="Duration" expr="'0'"/>
<assign name="MenuId" expr="'14'" />
</block>
<record beep="true" dtmfterm="true" name="R1" type="audio/basic" maxtime="600s" finalsilence="5s">
<prompt>
<audio src="Files/Voicemail.wav">
After the beep, please leave a message for the operator.
</audio>
</prompt>
<filled>
<assign name="Duration" expr="R1$.duration"/>
<data name="info1" src="getIVR.ashx" method="post" namelist="SessionId MenuId R1 Duration CalledId CallerId" enctype="multipart/form-data"/>
<audio src="Files/Goodbye.wav">Goodbye.</audio>
<exit />
</filled>
<catch event="connection.disconnect.hangup">
<assign name="Duration" expr="R1$.duration"/>
<data name="info1" src="getIVR.ashx" method="post" namelist="SessionId MenuId R1 Duration CalledId CallerId" enctype="multipart/form-data"/>
<exit/>
</catch>
<noinput>
<script>
tries++;
</script>
<audio src="Files/NoInput.wav">
We did not hear anything from you.
</audio>
<if cond="tries==2">
<goto next="#NoOrInvalidInput"/>
<else />
<reprompt />
</if>
</noinput>
<nomatch>
<script>
tries++;
</script>
<audio src="Files/NoMatch.wav">
We did not understand you.
</audio>
<if cond="tries==2">
<goto next="#NoOrInvalidInput"/>
<else />
<reprompt />
</if>
</nomatch>
</record>
</form>
I am using the code attached at the end of this topic to record a voicemail and to post it to our servers. Everything works fine, but there are days when some callers try 2-3 times to record a voicemail and still they get cut of after less then 10 seconds. Please advise.
Sergiu
<form id="voicemail">
<script>
tries=0;
</script>
<block>
<var name="Duration" expr="'0'"/>
<assign name="MenuId" expr="'14'" />
</block>
<record beep="true" dtmfterm="true" name="R1" type="audio/basic" maxtime="600s" finalsilence="5s">
<prompt>
<audio src="Files/Voicemail.wav">
After the beep, please leave a message for the operator.
</audio>
</prompt>
<filled>
<assign name="Duration" expr="R1$.duration"/>
<data name="info1" src="getIVR.ashx" method="post" namelist="SessionId MenuId R1 Duration CalledId CallerId" enctype="multipart/form-data"/>
<audio src="Files/Goodbye.wav">Goodbye.</audio>
<exit />
</filled>
<catch event="connection.disconnect.hangup">
<assign name="Duration" expr="R1$.duration"/>
<data name="info1" src="getIVR.ashx" method="post" namelist="SessionId MenuId R1 Duration CalledId CallerId" enctype="multipart/form-data"/>
<exit/>
</catch>
<noinput>
<script>
tries++;
</script>
<audio src="Files/NoInput.wav">
We did not hear anything from you.
</audio>
<if cond="tries==2">
<goto next="#NoOrInvalidInput"/>
<else />
<reprompt />
</if>
</noinput>
<nomatch>
<script>
tries++;
</script>
<audio src="Files/NoMatch.wav">
We did not understand you.
</audio>
<if cond="tries==2">
<goto next="#NoOrInvalidInput"/>
<else />
<reprompt />
</if>
</nomatch>
</record>
</form>