Michael,<br><br>Simple Working Reference:<br>agent_id = session:playAndGetDigits(1, 6, 2, 10000,&quot;#&quot;, &quot;c:/DictationProject/audio/Validating.wav&quot;, &quot;&quot;, &quot;23&quot;); <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,&quot;#&quot;, &quot;c:/DictationProject/audio/Validating.wav&quot;, &quot;&quot;, &quot;(\*)&quot;); <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,&#39;#&#39;, &#39;c:/DictationProject/audio/Validating.wav&#39;, &#39;&#39;, &quot;\*&quot;); <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">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</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 &lt;<a href="mailto:rjcajax@gmail.com">rjcajax@gmail.com</a>&gt;:<br>
</div><div class="im">&gt; Michael,<br>
&gt;<br>
&gt; I liked &quot;(\*|\d{6})&quot; also but when entered in:<br>
&gt;<br>
&gt; agent_id = session:playAndGetDigits(1, 3, 2, 10000,&#39;#&#39;,<br>
&gt; &#39;c:/DictationProject/audio/Validating.wav&#39;, &#39;&#39;, &quot;(\*|\d{6})&quot;);<br>
&gt;<br>
&gt; Creates the error:<br>
&gt;<br>
&gt; 2009-03-27 14:05:36 [ERR] switch_regex.c:184 switch_regex_match_partial()<br>
&gt; Regula<br>
&gt; r Expression Error expression[(*|d{6})] error[nothing to repeat] location[1]<br>
&gt;<br>
&gt; The escape characters seem to disappear and FS attempts to use the, /* an<br>
&gt; 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&#39;m curious<br>
where it&#39;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>