2010-11-23 1 views
0

5 번 시도 ("dfasfasfb"와 같은 잘못된 단어) 후 응용 프로그램이 중지됩니다.5 번 시도 후에 voicexml이 깨집니다.

내가 잘못된 단어를 말한 후에 "내 이름을 모르겠다"(내 언어로)라고 말합니다. 하지만 기본 휴식 시간이 있습니다. 예를 들어 기본값을 무제한 또는 20으로 설정하려면 어떻게해야합니까?

감사

<?xml version="1.0" encoding="UTF-8"?> 
<vxml xmlns="http://www.w3.org/2001/vxml" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.w3.org/2001/vxml 
    http://www.w3.org/TR/voicexml20/vxml.xsd" 
    version="2.0"> 

<menu dtmf="true"> 
     <prompt> Wilkommen. Waehlen Sie apple, short oder house </prompt> 
     <choice next="#apple"> apple</choice> 
     <choice next="#short"> short </choice> 
     <choice next="#house"> house </choice> 
    </menu> 

    <form id="apple"> 
     <block> 
      You chose apple 
      <exit/> 
     </block> 
    </form> 

    <form id="short"> 
     <block> 
      You chose short 
      <exit/> 
     </block> 
    </form> 

    <form id="house"> 
     <block> 
      You chose house 
      <exit/> 
     </block> 
    </form> 

</vxml> 

편집 :

<menu id="nachauswahl" dtmf="true"> 
    <prompt> 
     Sagen Sie "wiederholen" oder "neue Anfrage" oder "andere Variante" 
    </prompt> 

    <choice next="#wiederholen"> wiederholen </choice> 
    <choice next="#neue_Anfrage"> neue Anfrage </choice> 
    <choice next="#andere_Variante"> andere Variante </choice> 
    <choice next="#Abbrechen"> Abbrechen </choice> 
    <choice next="#Hilfe2"> Hilfe </choice> 

    <nomatch> 
     <goto next="#nomatch_nachauswahl"/> 
    </nomatch> 
</menu> 

...

<form id="nomatch_nachauswahl"> 
    <block> 
     Ich habe Sie leider nicht verstanden. 
     <goto next="#nachauswahl"/> 
    </block> 
</form> 

하지만 다섯 개 시도 후, 프로그램은 단지 선택 :

지금 나는 nomatch를 사용 옵션. 나는 다섯 번이나 말했다. rong 단어, 그리고 다섯 번째 시간 후에 그것은 마지막 옵션을 선택했습니다.

답변

1

nomatch catch 처리기를 지정하지 않았으므로 플랫폼의 기본 제공 처리기에 포함될 가능성이 큽니다. 무한 재시도를 원할 경우, 메뉴 안에 빈 공 격자 블록을 추가하면됩니다. 표기법을 사용하여 중단하려는 개수를 나타낼 수 있습니다 (catch 블록에서 goto를 새 위치로 사용).

catch handler documentationnomatch notation을 살펴보십시오.