[Freeswitch-users] PlayAndGetDigits reset input

Nigel Kent ktngl at yahoo.co.uk
Sat Aug 14 07:26:33 PDT 2010


That a good idea. Have (#) as a terminator and test for (#) as the last entered digit but I have further looked into my requirement and I would need to catch the key presses (##) on a active call also. Any ideas on that


--- On Sat, 14/8/10, Seven Du <dujinfang at gmail.com> wrote:

From: Seven Du <dujinfang at gmail.com>
Subject: Re: [Freeswitch-users] PlayAndGetDigits reset input
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Date: Saturday, 14 August, 2010, 13:49

You can get the input digits immediately as long as you desired sequence ending with a "terminator" key(say #), then you will get all the digits in a channel var you can test against if it matches you desired sequence or not and decided if you want to start over the play_and_get_digits again.  


On Sat, Aug 14, 2010 at 7:14 PM, Nigel Kent <ktngl at yahoo.co.uk> wrote:

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





-- 
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn


-----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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100814/099beb2f/attachment.html 


More information about the FreeSWITCH-users mailing list