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@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@freeswitch.org> wrote:
From: Michael Collins <msc@freeswitch.org> Subject: Re: [Freeswitch-users] PlayAndGetDigits reset input To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Friday, 13 August, 2010, 20:25
On Fri, Aug 13, 2010 at 1:46 AM, Nigel Kent <ktngl@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org