Michael,<br><br>Simple Working Reference:<br>agent_id = session:playAndGetDigits(1, 6, 2, 10000,"#", "c:/DictationProject/audio/Validating.wav", "", "23"); <br><br>Entering 45 returned nothing as expected, entering 23 returned 23 as expected.<br>
-------------------------------------------------------------------------<br><br>Literal asterisk using parentheses:<br>agent_id = session:playAndGetDigits(1, 6, 2, 10000,"#", "c:/DictationProject/audio/Validating.wav", "", "(\*)"); <br>
<br>Entering a single asterisk and waiting for timeout, and the timeout occurred as expected.<br>Error created:<br>2009-03-27 14:59:47 [ERR] switch_regex.c:184 switch_regex_match_partial() Regular Expression Error expression[(*)] error[nothing to repeat] location[1]<br>
<br>Entering a single asterisk and a
terminating #, the asterisk created an immediate timeout as expected.<br>Error created:<br>2009-03-27 15:00:26 [ERR] switch_regex.c:184 switch_regex_match_partial() Regular Expression Error expression[(*)] error[nothing to repeat] location[1]<br>
-------------------------------------------------------------------------<br><br>Literal asterisk without parentheses:<br>agent_id = session:playAndGetDigits(1, 3, 2, 10000,'#', 'c:/DictationProject/audio/Validating.wav', '', "\*"); <br>
<br>Entering a single asterisk and waiting for timeout, and the timeout occurred as expected.<br>Error created:<br>2009-03-27 15:02:14 [ERR] switch_regex.c:184 switch_regex_match_partial() Regular Expression Error expression[*] error[nothing to repeat] location[0]<br>
<br>Entering a single asterisk and a
terminating #, the asterisk created an immediate timeout as expected.<br>Error created:<br>2009-03-27 15:02:58 [ERR] switch_regex.c:184 switch_regex_match_partial() Regular Expression Error expression[*] error[nothing to repeat] location[0]<br>
-------------------------------------------------------------------------<br><br>The error message correctly denoted the proper positions if the asterisk is being evaluated as a metacharacter, as well as looking for something to repeat.<br>
<br>Bob<br><br><div class="gmail_quote">On Fri, Mar 27, 2009 at 2:29 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">2009/3/27 Robert Clayton <<a href="mailto:rjcajax@gmail.com">rjcajax@gmail.com</a>>:<br>
</div><div class="im">> Michael,<br>
><br>
> I liked "(\*|\d{6})" also but when entered in:<br>
><br>
> agent_id = session:playAndGetDigits(1, 3, 2, 10000,'#',<br>
> 'c:/DictationProject/audio/Validating.wav', '', "(\*|\d{6})");<br>
><br>
> Creates the error:<br>
><br>
> 2009-03-27 14:05:36 [ERR] switch_regex.c:184 switch_regex_match_partial()<br>
> Regula<br>
> r Expression Error expression[(*|d{6})] error[nothing to repeat] location[1]<br>
><br>
> The escape characters seem to disappear and FS attempts to use the, /* an<br>
> asterisk character, as * a metecharacter.<br>
<br>
</div>for kicks try it with only one or the other, that is, with only<br>
(\d{6}) or with only (\*) and see if you get that error. I'm curious<br>
where it's bombing out. I think that test will help us figure out what<br>
is going on.<br>
<div><div></div><div class="h5">-MC<br>
<br>
_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>