[Freeswitch-users] PlayAndGetDigits reset input

David Ponzone david.ponzone at ipeva.fr
Sat Aug 14 09:15:07 PDT 2010


Nigel,

Many solutions were given (listen to the whole seq and strip everyhing  
at the left of the **/##, or listen one dtmf at a time, concat that to  
previous dtmf, check if last 2 are **/##, if so empty the variable, go  
on listening to dtmf until required length/string is matched).
Basically, the right solution(s) probably relies on how you may detect  
the the sequence entered is finished: terminator ? max length ?  
timeout ?

David Ponzone  Direction Technique
email: david.ponzone at ipeva.fr
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
www.ipeva.fr  -   www.ipeva-studio.com

Ce message et toutes les pièces jointes sont confidentiels et établis  
à l'intention exclusive de ses destinataires. Toute utilisation ou  
diffusion non autorisée est interdite. Tout message électronique est  
susceptible d'altération. IPeva décline toute responsabilité au  
titre de ce message s'il a été altéré, déformé ou falsifié. Si  
vous n'êtes pas destinataire de ce message, merci de le détruire  
immédiatement et d'avertir l'expéditeur.




Le 14/08/2010 à 13:14, Nigel Kent a écrit :

> I think what you suggest would be better - to listen for the digits.
>
> Do you have any resource or tips that I can check to see how to  
> implement listening and catching a desired sequence
>
> --- On Fri, 13/8/10, Michael Collins <msc at freeswitch.org> wrote:
>
> From: Michael Collins <msc at freeswitch.org>
> Subject: Re: [Freeswitch-users] PlayAndGetDigits reset input
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> Date: Friday, 13 August, 2010, 20:25
>
>
>
> On Fri, Aug 13, 2010 at 1:46 AM, Nigel Kent <ktngl at yahoo.co.uk> wrote:
> Using PlayAndGetDigits I want to give option to the user to reset  
> their input by entering a certain key sequence (##)
>
> How can I make PlayAndGetDigits reprocess immediatly if this key  
> squenqence is pressed.
>
> I don't believe playandgetdigits does this. You will have to listen  
> for ## (or whatever) and then loop back and re-execute  
> playandgetdigits.
> -MC
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> 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
>
> _______________________________________________
> 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/20100814/869deb84/attachment-0001.html 


More information about the FreeSWITCH-users mailing list