[Freeswitch-users] play_and_get_digits - with no invalid entry
Ali Pey
alipey at gmail.com
Thu Sep 5 17:21:14 MSD 2013
Hi Denis,
Thank you for the response. I did something similar, I uses "none" for the
failure_route and it doesn't play anything since it can't find the file. It
would not work with an empty string "" though. Your solution sounds more
elegant.
The wiki says the minimum accepted value for min is 1 and in my testing it
would not accept either.
Thanks again,
Ali Pey
On Thu, Sep 5, 2013 at 2:53 AM, Denis Gasparin
<denis.gasparin at edistar.com>wrote:
> Hi.
>
> For invalid file you could try to put "silence_stream://10": it "plays" a
> silence for ten milliseconds.
>
> I used the play_and_get_digits dialplan application and it accepts 0 for
> min: i think perl implementation should be the same (have to look source
> code).
>
> Denis Gasparin
>
> ------------------------------
>
> *Da: *"Ali Pey" <alipey at gmail.com>
> *A: *"FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> *Inviato: *Mercoledì, 4 settembre 2013 20:15:32
> *Oggetto: *[Freeswitch-users] play_and_get_digits - with no invalid entry
>
>
> Hello,
>
> I need to play a prompt and get any digits if entered, but if there is no
> digit entered, simply continue. Basically I don't have any minimum entry
> required and there is no invalid entry.
>
> I use playAndGetDigits in my perl code but it doesn't accept 0 for min or
> an empty string for invalid_file.
>
> How can I achieve this behaviour?
> Regards,
> Ali
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130905/f8306361/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list