I wish I would have seen this before =D<br><br>03:36 &lt; Math&gt; diegoviola: show application [appname] will show you any syntax btw<br><br>Diego<br><br><div class="gmail_quote">On Sun, Apr 12, 2009 at 2:30 AM, Diego Viola <span dir="ltr">&lt;<a href="mailto:diego.viola@gmail.com">diego.viola@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I just added this:<br><br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits</a><br>
<font color="#888888"><br>Diego</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Sat, Apr 11, 2009 at 11:47 PM, Diego Viola <span dir="ltr">&lt;<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Mike just answered.<br><br>23:45 &lt; MikeJ&gt; diegoviola: the syntax is documented<br>23:45 &lt; MikeJ&gt; SWITCH_ADD_APP(app_interface, &quot;play_and_get_digits&quot;, &quot;Play and get Digits&quot;, &quot;Play and get Digits&quot;,<br>


23:45 &lt; MikeJ&gt; IIII   play_and_get_digits_function, &quot;&lt;min&gt; &lt;max&gt; &lt;tries&gt; &lt;timeout&gt; &lt;terminators&gt; &lt;file&gt; &lt;invalid_file&gt; &lt;var_name&gt; &lt;regexp&gt;&quot;, SAF_NONE);<br>


<br>Thanks guys.<br><font color="#888888"><br>Diego</font><div><div></div><div><br><br><div class="gmail_quote">On Sat, Apr 11, 2009 at 10:38 PM, Diego Viola <span dir="ltr">&lt;<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you give me some examples of how to use play_and_get_digits in mod_dptools I will document it here.<br><br><a href="http://wiki.freeswitch.org/index.php?title=Misc._Dialplan_Tools_play_and_get_digits" target="_blank">http://wiki.freeswitch.org/index.php?title=Misc._Dialplan_Tools_play_and_get_digits</a><br>


<font color="#888888">
<br>Diego</font><div><div></div><div><br><br><div class="gmail_quote">On Sat, Apr 11, 2009 at 10:36 PM, Diego Viola <span dir="ltr">&lt;<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I want to use play_and_get_digits from mod_dptools and have some questions about it.<br><br>I have used playAndGetDigits() in Lua but I see the syntax in mod_dptools is a bit different and I got a bit confused.<br>




<br>I see the syntax in the play_and_get_digits from the mod_dptools is something like this:<br><br>        switch_play_and_get_digits(session, min_digits, max_digits, max_tries, timeout, valid_terminators,<br>                                                           prompt_audio_file, bad_input_audio_file, var_name, digit_buffer, sizeof(digit_buffer), digits_regex}<br>




<br>Can you please explain to me what the session parameter is? And will this allow me to use a phrase macro so I can call my IVR instead of calling a regular file?<br><br>This is how I use the playAndGetDigits in Lua:<br>




<br>digits = session:playAndGetDigits(2, 5, 3, 7000, &quot;#&quot;, &quot;phrase:rac_demo&quot;, &quot;&quot;, &quot;\\d+&quot;);<br><br>I call a phrase macro instead of playing a file, can I do the same with play_and_get_digits from mod_dptools? and please explain me what the session parameter in play_and_get_digits is.<br>




<br>Thanks,<br><font color="#888888"><br>Diego<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>