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.
sorry I think I really didn't undertand the play_and_get_digits concept.is anyone can help ?I just want to use this app to check a pin code, hangup if wrong and continuedialplan if okThanksSent: Sunday, February 06, 2011 1:01 PMSubject: Re: play_and_get_digits questionor maybe this channel varread_resultis the result of play_and_get_digits ?----- Original Message -----From: MadovskySent: Sunday, February 06, 2011 12:43 PMSubject: Re: play_and_get_digits questionOk I think I misunderstood the concept of var where digits should be put in.it's with this var I need to ckeck after this application.self forum thank you ;)----- Original Message -----From: MadovskySent: Sunday, February 06, 2011 12:29 PMSubject: play_and_get_digits questionI have this lines in my dialplan<action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo phrase:bad_foo foo ${foo}"/>
<action application="transfer" data="otherext XML features"/>if I don't press any DTMF, after 4 loops the dialplan continues,but I thought that it was automatically hangup in case of no digits bad digits...Did I forget something ?Thanks
Franck
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org