I'm reading the doc on the scenarios, but I need to take it one step further.
I have 2 questions:
1. After the caller has selected an option, and a WAV file has played, that another WAV file plays stating to press "8" to repeat this message, or to press "0" to return to the main menu. I have the link for it, but I can't play the second WAV file.
<form id="DirectionsAndHours">
<noinput count="3">
<assign name="DHfield1" expr="'14'"/>
<goto nextitem="DHfield2"/>
</noinput>
<field name="DHfield1" type="digits?length=1" modal="false">
<prompt timeout="5s">
<audio src="AA-Option2-3DirectionsAndHours.wav"/>
</prompt>
<link dtmf="8" next="#DirectionsAndHours"/>
<link dtmf="0" next="#mainform"/>
<filled>
<goto nextitem="DHfield2"/>
</filled>
</field>
<object name="DHfield2" classid="connect">
<param name="extension" expr="DHfield1"/>
<nomatch>
<goto nextitem="DHfield1"/>
</nomatch>
</object>
</form>
2. You'll notice that I have <link dtmf="0" next="#mainform"/>, whereby a user can press "0" to return to the main menu, but mainform is not really where I want the user to go back to, since that includes the GeneralGreeting message, which I do not want the user to hear again. I just want the caller to hear the menu items (press "1" for sales, "2" for support, etc.)
Where do I need to fix that?
<form id="mainform">
<noinput count="3">
<assign name="field1" expr="'14'"/>
<goto nextitem="field2"/>
</noinput>
<block>
<prompt bargein="true">
<audio src="AA-IntroGreeting.wav"/>
</prompt>
<goto nextitem="field1"/>
</block>
<field name="field1" type="digits?length=1" modal="false">
<link dtmf="2" next="#DirectionsAndHours"/>
<prompt timeout="5s">
<audio src="AA-MainMenu.wav"/>
</prompt>
<filled>
<goto nextitem="field2"/>
</filled>
</field>
<object name="field2" classid="connect">
<param name="extension" expr="field1"/>
<filled>
<prompt>
<audio src="timeover.wav"/>
</prompt>
<exit/>
</filled>
<nomatch>
<goto nextitem="field1"/>
</nomatch>
</object>
</form>