<br><br><div class="gmail_quote">2010/3/1 michal kalinowski <span dir="ltr">&lt;<a href="mailto:michal.kalinowski@interia.pl">michal.kalinowski@interia.pl</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank&#39;s Brian<br>
<br>
So at this moment i have only clean configuration in lua without any XML.<br>
<br>
I get example from wiki:<br>
<br>
hash={[&quot;main&quot;]=undef,<br>
<br>
   [&quot;name&quot;]=&quot;top&quot;,<br>
<div class="im"><br>
         [&quot;greet_long&quot;]=&quot;phrase:demo_ivr_main_menu&quot;,<br>
<br>
[&quot;greet_short&quot;]=&quot;phrase:demo_ivr_main_menu_short&quot;,<br>
<br>
</div>[&quot;invalid_sound&quot;]=&quot;ivr/ivrthat_was_an_invalid_entry.wav&quot;,<br>
<br>
[&quot;exit_sound&quot;]=&quot;voicemail/vmgoodbye.wav&quot;,<br>
<br>
[&quot;confirm_macro&quot;]=&quot;undef&quot;,<br>
<br>
 [&quot;confirm_key&quot;]=&quot;undef&quot;,<br>
<br>
    [&quot;confirm_attempts&quot;]=&quot;3&quot;,<br>
<br>
      [&quot;inter_digit_timeout&quot;]=&quot;2000&quot;,<br>
<br>
       [&quot;digit_len&quot;]=&quot;1&quot;,<br>
<br>
               [&quot;timeout&quot;]=&quot;10000&quot;,<br>
[&quot;max_failures&quot;]=&quot;3&quot;<br>
}<br>
top = freeswitch.IVRMenu(hash[&quot;main&quot;],<br>
hash[&quot;name&quot;],<br>
hash[&quot;greet_long&quot;],hash[&quot;greet_short&quot;],<br>
hash[&quot;invalid_sound&quot;],<br>
hash[&quot;exit_sound&quot;],<br>
hash[&quot;confirm_macro&quot;],<br>
hash[&quot;confirm_key&quot;],<br>
hash[&quot;confirm_attempts&quot;],<br>
hash[&quot;inter_digit_timeout&quot;],<br>
hash[&quot;digit_len&quot;],<br>
hash[&quot;timeout&quot;],<br>
hash[&quot;max_failures&quot;]);<br>
<br>
top:bindAction(&quot;menu-exec-app&quot;, &quot;playback/tmp/swimp.raw&quot;,&quot;2&quot;);<br>
top:execute(session, &quot;top&quot;);<br>
<br>
But something is wrong freeswitch say<br>
2010-03-01 13:02:43.633721 [ERR] mod_lua.cpp:182 Error in IVRMenu<br>
expected 16..16 args, got 13<br>
stack traceback:<br>
        [C]: in function &#39;IVRMenu&#39;<br>
        /usr/local/freeswitch/scripts/ivr.lua:19: in main chunk<br>
<br>
What args FS expect?<br></blockquote><div><br>I ran into this issue when I was converting the demo IVR to Lua. There are indeed 16 arguments but you&#39;ve only got 13 of them. Here&#39;s a snippet from the Lua script I&#39;m working on:<br>
<span style="font-family: courier new,monospace;">ivr_def = {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;main&quot;]                = undef,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;name&quot;]                = &quot;demo_ivr_lua&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;greet_long&quot;]          = &quot;phrase:demo_ivr_main_menu&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;greet_short&quot;]         = &quot;phrase:demo_ivr_main_menu_short&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;invalid_sound&quot;]       = &quot;ivr/ivr-that_was_an_invalid_entry.wav&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;exit_sound&quot;]          = &quot;voicemail/vm-goodbye.wav&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;confirm_macro&quot;]       = &quot;&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;confirm_key&quot;]         = &quot;&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;tts_engine&quot;]          = &quot;flite&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;tts_voice&quot;]           = &quot;rms&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;confirm_attempts&quot;]    = &quot;3&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;inter_digit_timeout&quot;] = &quot;2000&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;digit_len&quot;]           = &quot;4&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;timeout&quot;]             = &quot;10000&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    [&quot;max_failures&quot;]        = &quot;3&quot;,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    [&quot;max_timeouts&quot;]        = &quot;2&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;">
Those are all 16 arguments. Notice you need tts_engine, tts_voice, and max_timeouts. Try that and let us know how it goes.<br><br>-MC<br><br></div></div>