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.
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
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
How about using ** as the character sequence to reset, and # as the terminating character. Then, once you have the digit sequence returned by play_and_get_digits, you can strip off everything left to the last ** sequence via a script? Regards HASSAN On Sat, Aug 14, 2010 at 17:14, Nigel Kent <ktngl@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@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<http://mc/compose?to=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://mc/compose?to=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
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@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@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<http://mc/compose?to=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://mc/compose?to=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
-- Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
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@gmail.com> wrote: From: Seven Du <dujinfang@gmail.com> Subject: Re: [Freeswitch-users] PlayAndGetDigits reset input To: "FreeSWITCH Users Help" <freeswitch-users@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@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@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 -- Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn -----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
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
Is there a way to listen for key presses during a live call
bind_meta_app 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 16/08/2010 à 11:25, Nigel Kent a écrit :
Is there a way to listen for key presses during a live call
_______________________________________________ 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
You only need to execute start_dtmf from dialplan: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf Regards Daniel Neubert On 16.08.2010 11:25, Nigel Kent wrote:
Is there a way to listen for key presses during a live call
start_dtmf, according the wiki, only enables inband DTMF detection. "OOB" DTMF detection is enabled by default. You then have to do something with the keypresses, either with your own script talking with event socket, or with bind_meta_app. 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 16/08/2010 à 11:42, Daniel Neubert a écrit :
You only need to execute start_dtmf from dialplan: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf
Regards Daniel Neubert
On 16.08.2010 11:25, Nigel Kent wrote:
Is there a way to listen for key presses during a live call
_______________________________________________ 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
David is right, I'm using "bind_meta_app" for this, and it works like a charm. Regards HASSAN 2010/8/16 David Ponzone <david.ponzone@ipeva.fr>
start_dtmf, according the wiki, only enables inband DTMF detection.
"OOB" DTMF detection is enabled by default.
You then have to do something with the keypresses, either with your own script talking with event socket, or with bind_meta_app.
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 16/08/2010 à 11:42, Daniel Neubert a écrit :
You only need to execute start_dtmf from dialplan: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf
Regards Daniel Neubert
On 16.08.2010 11:25, Nigel Kent wrote:
Is there a way to listen for key presses during a live call
_______________________________________________ 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
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email. Do you have # set as the terminator? /b On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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
Sorry about that. Thanks for the tip Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible. So is my regex pattern correct or is it some other issue --- On Tue, 17/8/10, Brian West <brian@freeswitch.org> wrote: From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:18 In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email. Do you have # set as the terminator? /b On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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
Nigel, how do you want to capture a # if # is the terminator ? :) if you want to capture #, you need to use * as the terminator. 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 17/08/2010 à 17:38, Nigel Kent a écrit :
Sorry about that. Thanks for the tip
Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible.
So is my regex pattern correct or is it some other issue
--- On Tue, 17/8/10, Brian West <brian@freeswitch.org> wrote:
From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:18
In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email.
Do you have # set as the terminator?
/b
On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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
_______________________________________________ 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
I see, how clumsy of me. I have been focusing too much on capturing two #'s. Still is this not possible some way. I want the two ##'s because it is already the common usage in what I want to do so would prefer to keep the same --- On Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr> wrote: From: David Ponzone <david.ponzone@ipeva.fr> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:59 Nigel, how do you want to capture a # if # is the terminator ? :)if you want to capture #, you need to use * as the terminator. David Ponzone Direction Techniqueemail: david.ponzone@ipeva.frtel: 01 74 03 18 97gsm: 06 66 98 76 34 Service Client IPevatel: 0811 46 26 26www.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 17/08/2010 à 17:38, Nigel Kent a écrit : Sorry about that. Thanks for the tip Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible. So is my regex pattern correct or is it some other issue --- On Tue, 17/8/10, Brian West <brian@freeswitch.org> wrote: From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:18 In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email. Do you have # set as the terminator? /b On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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 _______________________________________________ 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 -----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
I have to say I have never seen a ## be used in any IVR ... Has anyone else? /b On Aug 17, 2010, at 11:19 AM, Nigel Kent wrote:
I want the two ##'s because it is already the common usage in what I want to do so would prefer to keep the same
I dont know if it's possible in FS, but did you think about not defining a terminator, defining max-length to 1, and then getting the DTMF one by one, concatenating them in a variable where you would look for ## ? 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 17/08/2010 à 18:19, Nigel Kent a écrit :
I see, how clumsy of me.
I have been focusing too much on capturing two #'s. Still is this not possible some way.
I want the two ##'s because it is already the common usage in what I want to do so would prefer to keep the same
--- On Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr> wrote:
From: David Ponzone <david.ponzone@ipeva.fr> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:59
Nigel, how do you want to capture a # if # is the terminator ? :) if you want to capture #, you need to use * as the terminator.
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 17/08/2010 à 17:38, Nigel Kent a écrit :
Sorry about that. Thanks for the tip
Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible.
So is my regex pattern correct or is it some other issue
--- On Tue, 17/8/10, Brian West <brian@freeswitch.org> wrote:
From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:18
In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email.
Do you have # set as the terminator?
/b
On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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
_______________________________________________ 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
-----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
Are you suggesting using something other then playandgetdigits --- On Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr> wrote: From: David Ponzone <david.ponzone@ipeva.fr> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 16:36 I dont know if it's possible in FS, but did you think about not defining a terminator, defining max-length to 1, and then getting the DTMF one by one, concatenating them in a variable where you would look for ## ? David Ponzone Direction Techniqueemail: david.ponzone@ipeva.frtel: 01 74 03 18 97gsm: 06 66 98 76 34 Service Client IPevatel: 0811 46 26 26www.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 17/08/2010 à 18:19, Nigel Kent a écrit : I see, how clumsy of me. I have been focusing too much on capturing two #'s. Still is this not possible some way. I want the two ##'s because it is already the common usage in what I want to do so would prefer to keep the same --- On Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr> wrote: From: David Ponzone <david.ponzone@ipeva.fr> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:59 Nigel, how do you want to capture a # if # is the terminator ? :)if you want to capture #, you need to use * as the terminator. David Ponzone Direction Techniqueemail: david.ponzone@ipeva.frtel: 01 74 03 18 97gsm: 06 66 98 76 34 Service Client IPevatel: 0811 46 26 26www.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 17/08/2010 à 17:38, Nigel Kent a écrit : Sorry about that. Thanks for the tip Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible. So is my regex pattern correct or is it some other issue --- On Tue, 17/8/10, Brian West <brian@freeswitch.org> wrote: From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:18 In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email. Do you have # set as the terminator? /b On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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 _______________________________________________ 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 -----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 -----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
you could set no terminator instead and just look for the ## with your regex. It's uncommon, so it's only not possible because there has been no demand for it at all. On Tue, Aug 17, 2010 at 12:45 PM, Nigel Kent <ktngl@yahoo.co.uk> wrote:
Are you suggesting using something other then playandgetdigits
--- On *Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr>* wrote:
From: David Ponzone <david.ponzone@ipeva.fr> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 16:36
I dont know if it's possible in FS, but did you think about not defining a terminator, defining max-length to 1, and then getting the DTMF one by one, concatenating them in a variable where you would look for ## ?
David Ponzone Direction Technique email: david.ponzone@ipeva.fr<http://mc/compose?to=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 17/08/2010 à 18:19, Nigel Kent a écrit :
I see, how clumsy of me.
I have been focusing too much on capturing two #'s. Still is this not possible some way.
I want the two ##'s because it is already the common usage in what I want to do so would prefer to keep the same
--- On *Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr<http://mc/compose?to=david.ponzone@ipeva.fr>
* wrote:
From: David Ponzone <david.ponzone@ipeva.fr<http://mc/compose?to=david.ponzone@ipeva.fr>
Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org<http://mc/compose?to=freeswitch-users@lists.freeswitch.org>
Date: Tuesday, 17 August, 2010, 15:59
Nigel, how do you want to capture a # if # is the terminator ? :) if you want to capture #, you need to use * as the terminator.
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 17/08/2010 à 17:38, Nigel Kent a écrit :
Sorry about that. Thanks for the tip
Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible.
So is my regex pattern correct or is it some other issue
--- On *Tue, 17/8/10, Brian West <brian@freeswitch.org>* wrote:
From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:18
In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email.
Do you have # set as the terminator?
/b
On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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
_______________________________________________ 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
-----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://mc/compose?to=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
-----Inline Attachment Follows-----
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<http://mc/compose?to=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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
On Tue, Aug 17, 2010 at 11:14 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
you could set no terminator instead and just look for the ## with your regex. It's uncommon, so it's only not possible because there has been no demand for it at all.
This is essentially what I was suggesting. Use playandgetdigits, have no terminators, and then have your regex capture the trailing ## characters. It will require a bit of logic on your part but I don't see why you couldn't do it. Just remember what I said about the timeout value because your users will have to wait a few seconds after pressing the ## before the system accepts that as the finished input. -MC
Perhaps getDigits ? 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 17/08/2010 à 19:45, Nigel Kent a écrit :
Are you suggesting using something other then playandgetdigits
--- On Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr> wrote:
From: David Ponzone <david.ponzone@ipeva.fr> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 16:36
I dont know if it's possible in FS, but did you think about not defining a terminator, defining max-length to 1, and then getting the DTMF one by one, concatenating them in a variable where you would look for ## ?
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 17/08/2010 à 18:19, Nigel Kent a écrit :
I see, how clumsy of me.
I have been focusing too much on capturing two #'s. Still is this not possible some way.
I want the two ##'s because it is already the common usage in what I want to do so would prefer to keep the same
--- On Tue, 17/8/10, David Ponzone <david.ponzone@ipeva.fr> wrote:
From: David Ponzone <david.ponzone@ipeva.fr> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:59
Nigel, how do you want to capture a # if # is the terminator ? :) if you want to capture #, you need to use * as the terminator.
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 17/08/2010 à 17:38, Nigel Kent a écrit :
Sorry about that. Thanks for the tip
Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible.
So is my regex pattern correct or is it some other issue
--- On Tue, 17/8/10, Brian West <brian@freeswitch.org> wrote:
From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#' To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Date: Tuesday, 17 August, 2010, 15:18
In the future please click NEW message and input the address for the list. You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people's mail readers that thread based on the headers in the email.
Do you have # set as the terminator?
/b
On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:
I want to capture # key in playandgetdigits and copy it to the varible but "\\d+|\/#/" is not working. The varible does not contain the '#' key
_______________________________________________ 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
_______________________________________________ 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
-----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
-----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
On Tue, Aug 17, 2010 at 9:19 AM, Nigel Kent <ktngl@yahoo.co.uk> wrote:
I see, how clumsy of me.
I have been focusing too much on capturing two #'s. Still is this not possible some way.
I want the two ##'s because it is already the common usage in what I want to do so would prefer to keep the same
Well, you can capture everything with a regex of ".*" and then just rely on the timeout. It's the only way to do it without a lot of hassle. If you're into hassle then you have other options: Capture digits one at a time and do fun/crazy logic to see if you have what you need Hack playandgetdigits to allow ## to be a terminator. I'd start with eliminating the terminator characters first and testing it out. You can shorten your timeout value so the user isn't waiting too long after dialing ##. Give it a test drive and see if it will work. -MC
participants (8)
-
Anthony Minessale
-
Brian West
-
Daniel Neubert
-
David Ponzone
-
Michael Collins
-
Nigel Kent
-
Nyamul Hassan
-
Seven Du