[Freeswitch-users] playandgetdigits regex to get '#'

Anthony Minessale anthony.minessale at gmail.com
Tue Aug 17 11:14:13 PDT 2010


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 at yahoo.co.uk> wrote:

> 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 Technique
> email: david.ponzone at 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 at ipeva.fr<http://mc/compose?to=david.ponzone@ipeva.fr>
> >* wrote:
>
>
> From: David Ponzone <david.ponzone at ipeva.fr<http://mc/compose?to=david.ponzone@ipeva.fr>
> >
> Subject: Re: [Freeswitch-users] playandgetdigits regex to get '#'
> To: "FreeSWITCH Users Help" <freeswitch-users at 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 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 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://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 at 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 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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100817/4c3fc8a2/attachment-0001.html 


More information about the FreeSWITCH-users mailing list