Code: Select all
<form id="ChooseNextMenu">
<block>
<assign name="CurrentPage" expr="VxmlPage" />
<assign name="CurrentForm" expr="'ChooseNextMenu'" />
<assign name="ruleid" expr="MenuEcma.GrammarNeeded.toString()" />
<log expr="'Presenting next menu options.'" />
<assign name="SpeedAddressSpeech" expr="speakNumberDigits(MenuEcma.SpeedAddress)" />
<log expr="'Rule for root= ' + MenuEcma.GrammarNeeded.toString()" />
<prompt>
<foreach item="ChildMenu" array="MenuEcma.ChildrenMenus" >
<audio expr="AudioUrl + 'For.wav'">For</audio>
<audio expr="RecordingsUrl + ChildMenu.Recording.Filename" >
<value expr="ChildMenu.Tts.toString()" />
</audio>
<audio expr="AudioUrl + 'Press_' + ChildMenu.ChoiceOnPage + '.wav'">, press
<value expr="ChildMenu.ChoiceOnPage.toString()" />
</audio>
<break time="400ms" />
</foreach>
</prompt>
<prompt cond="EmptyMenu == false && IsMainMenu == false">
<break time="350ms" />
<audio expr="AudioUrl + 'SpeedAddress.wav'">The speed address for this menu is</audio>
<audio expr="AudioUrl + 'Pound.wav'">pound</audio>
<foreach item="AudioItem" array="SpeedAddressSpeech" >
<audio expr="AudioUrl + AudioItem.Wave" >
<value expr="AudioItem.Tts.toString()" />
</audio>
</foreach>
<audio expr="AudioUrl + 'Pound.wav'">pound</audio>
<break time="300ms" />
</prompt>
<goto next="#Start" />
Code: Select all
<Response>
<ReturnCode>0</ReturnCode>
<ReturnMessage>Successful Menu Retrieval</ReturnMessage>
<Menu>
<BargeInEnabled>false</BargeInEnabled>
<SpeakTimestamp>true</SpeakTimestamp>
<Recording/>
<MessageCount>1</MessageCount>
<ChildrenMenuCount>4</ChildrenMenuCount>
<GrammarNeeded>four</GrammarNeeded>
<HasMorePages>false</HasMorePages>
<LastMessageUpdate>05/09/11 02:28 PM</LastMessageUpdate>
<Messages>
<Message>
<MessageID>51</MessageID>
<TTS>This is the Instant information Hot line Global Message</TTS>
</Message>
</Messages>
<ChildrenMenus>
<ChildMenu>
<ChildMenuID>46</ChildMenuID>
<ChoiceOnPage>1</ChoiceOnPage>
<ChildTTS>Power outages, </ChildTTS>
<ChildRecording/>
</ChildMenu>
<ChildMenu>
<ChildMenuID>47</ChildMenuID>
<ChoiceOnPage>2</ChoiceOnPage>
<ChildTTS>Reporting a gas leak</ChildTTS>
<ChildRecording/>
</ChildMenu>
<ChildMenu>
<ChildMenuID>50</ChildMenuID>
<ChoiceOnPage>3</ChoiceOnPage>
<ChildTTS>Option 3</ChildTTS>
<ChildRecording/>
</ChildMenu>
<ChildMenu>
<ChildMenuID>49</ChildMenuID>
<ChoiceOnPage>4</ChoiceOnPage>
<ChildTTS>Option 4.</ChildTTS>
<ChildRecording/> </ChildMenu>
</ChildrenMenus>
</Menu>
</Response>
"TypeError: MenuEcma.ChildrenMenus has no properties line 1"
Please advise on how I can get the PlumVoice Platform to correctly read the xml file the second time around.
Thanks