I just checked the source (switch_ivr_play_say.c, function name 'switch_play_and_get_digits') and I do not see any indication that a failure to collect digits after max tries will automatically disconnect the call. This means you'll need to handle the failure condition in your dialplan or call a Lua/Perl/Javascript script to do the logic. In this scenario I favor a simple Lua script that calls PAGD and checks the value. You can hangup on the caller if they don't enter a PIN.<div>
<br></div><div>-MC<br><br><div class="gmail_quote">On Sun, Feb 6, 2011 at 1:18 PM, Madovsky <span dir="ltr"><<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff">
<div><font size="2">sorry I think I really didn't undertand the
play_and_get_digits concept.</font></div>
<div><font size="2">is anyone can help ?</font></div>
<div><font size="2"></font> </div>
<div><font size="2">I just want to use this app to check a pin code, hangup if
wrong and continue</font></div>
<div><font size="2">dialplan if ok</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Thanks</font></div>
<blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px" dir="ltr"><div class="im">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="font:10pt arial;background:#e4e4e4"><b>From:</b>
<a title="infos@madovsky.org" href="mailto:infos@madovsky.org" target="_blank">Madovsky</a>
</div>
<div style="font:10pt arial"><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>
</div>
</div><div><div></div><div class="h5"><div style="font:10pt arial"><b>Sent:</b> Sunday, February 06, 2011 1:01
PM</div>
<div style="font:10pt arial"><b>Subject:</b> Re: play_and_get_digits
question</div>
<div><br></div>
<div><font size="2">or maybe this channel var </font></div>
<div><font size="2">read_result</font></div>
<div><font size="2">is the result of play_and_get_digits ?</font></div>
<blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px" dir="ltr">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="font:10pt arial;background:#e4e4e4"><b>From:</b>
<a title="infos@madovsky.org" href="mailto:infos@madovsky.org" target="_blank">Madovsky</a>
</div>
<div style="font:10pt arial"><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>
</div>
<div style="font:10pt arial"><b>Sent:</b> Sunday, February 06, 2011 12:43
PM</div>
<div style="font:10pt arial"><b>Subject:</b> Re: play_and_get_digits
question</div>
<div><br></div>
<div><font size="2">Ok I think I misunderstood the concept of var where digits
should be put in.</font></div>
<div><font size="2">it's with this var I need to ckeck after this
application.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">self forum thank you ;)</font></div>
<blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px" dir="ltr">
<div style="font:10pt arial">----- Original Message ----- </div>
<div style="font:10pt arial;background:#e4e4e4"><b>From:</b>
<a title="infos@madovsky.org" href="mailto:infos@madovsky.org" target="_blank">Madovsky</a>
</div>
<div style="font:10pt arial"><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>
</div>
<div style="font:10pt arial"><b>Sent:</b> Sunday, February 06, 2011 12:29
PM</div>
<div style="font:10pt arial"><b>Subject:</b> play_and_get_digits
question</div>
<div><br></div>
<div><font size="2">I have this lines in my dialplan</font></div>
<div><font size="2"></font> </div>
<div><font size="2"> <action
application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo
phrase:bad_foo foo
${foo}"/><br> <action
application="transfer" data="otherext XML features"/></font></div>
<div><font size="2"></font> </div>
<div><font size="2">if I don't press any DTMF, after 4 loops the dialplan
continues,</font></div>
<div><font size="2">but I thought that it was automatically hangup in case
of no digits bad digits...</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Did I forget something ?</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Thanks</font></div>
<div><font size="2"><br>Franck</font></div>
<div><font size="2"><br></font></div></blockquote></blockquote></div></div></blockquote></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>