[Freeswitch-dev] Lua session:playAndGetDigits regex

Robert Clayton rjcajax at gmail.com
Fri Mar 27 12:19:30 PDT 2009


Michael,

Also note the error message reprints the expression without the escape.

Bob

On Fri, Mar 27, 2009 at 2:29 PM, Michael Collins <msc at freeswitch.org> wrote:

> 2009/3/27 Robert Clayton <rjcajax at gmail.com>:
> > Michael,
> >
> > I liked "(\*|\d{6})" also but when entered in:
> >
> > agent_id = session:playAndGetDigits(1, 3, 2, 10000,'#',
> > 'c:/DictationProject/audio/Validating.wav', '', "(\*|\d{6})");
> >
> > Creates the error:
> >
> > 2009-03-27 14:05:36 [ERR] switch_regex.c:184 switch_regex_match_partial()
> > Regula
> > r Expression Error expression[(*|d{6})] error[nothing to repeat]
> location[1]
> >
> > The escape characters seem to disappear and FS attempts to use the, /* an
> > asterisk character, as * a metecharacter.
>
> for kicks try it with only one or the other, that is, with only
> (\d{6}) or with only (\*) and see if you get that error. I'm curious
> where it's bombing out. I think that test will help us figure out what
> is going on.
> -MC
>
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090327/dcc50622/attachment.html 


More information about the Freeswitch-dev mailing list