[Freeswitch-users] playandgetdigits regex to get '#'
Nigel Kent
ktngl at yahoo.co.uk
Tue Aug 17 10:45:51 PDT 2010
Are you suggesting using something other then playandgetdigits
--- On Tue, 17/8/10, David Ponzone <david.ponzone at ipeva.fr> wrote:
From: David Ponzone <david.ponzone at ipeva.fr>
Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#'
To: "FreeSWITCH Users Help" <freeswitch-users at 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 at 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 at ipeva.fr> wrote:
From: David Ponzone <david.ponzone at ipeva.fr>
Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#'
To: "FreeSWITCH Users Help" <freeswitch-users at 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 at 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 at freeswitch.org> wrote:
From: Brian West <brian at freeswitch.org>
Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#'
To: "FreeSWITCH Users Help" <freeswitch-users at 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 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
_______________________________________________
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
-----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
-----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/20100817/b64b278d/attachment.html
More information about the FreeSWITCH-users
mailing list