2010-11-23 15 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> 

編集:

今私はNOMATCHを使用します。

<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> 

が、5回の試行後に、プログラムだけで選びますオプション。私は5回言った5番目の時間の後、それは最後の選択肢を選んだ。

答えて

1

nomatch catchハンドラが指定されていないため、おそらくプラットフォームの組み込みハンドラに該当します。無限の再試行が必要な場合は、空のノマッチブロックをメニュー内に追加すると機能します。表記法を使用して、中止したい数を指定することもできます(キャッチブロック内の新しい場所への移動を使用します)。

catch handler documentationnomatch notationをご覧ください。

関連する問題