You may need to do \\d+ instead of \d+ in your expression.<div>-MC<br><br><div class="gmail_quote">On Mon, Mar 21, 2011 at 10:46 PM, deniro <span dir="ltr"><<a href="mailto:ayhkor@gmail.com">ayhkor@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div> </div>
<div>I am unable to get the pin number and pass it to $digits ($digits comes blank)</div>
<div>appreciate any feedback</div>
<div>thx</div>
<div>deniro--</div>
<div> </div>
<div> </div>
<div>my($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","","^7\d{4}\$");</div>
<div>or</div>
<div>my($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","", "<a>\d</a>+");<br>freeswitch::console_log("info", "<strong><font color="#ff0000">Got dtmf: .. $digits ..</font></strong>\n");</div>
<div> </div>
<div>freeswitch console </div>
<div>2011-03-22 01:29:26.208664 [INFO] switch_cpp.cpp:1177<font color="#000099"><strong> <font color="#ff0000">Got dtmf: .. ..<br></font></strong></font>2011-03-22 01:29:26.208664 [ERR] mod_perl.c:72 [require '/opt/freeswitch/scripts/<a href="http://fs1.pl" target="_blank">fs1.pl</a>';]<br>
/opt/freeswitch/scripts/<a href="http://fs1.pl" target="_blank">fs1.pl</a> did not return a true value at (eval 2) line 1.<br></div>
<div>
<div>each case getting "that was invalid PIN"</div>
<div>entering pin starting with 7 maximum 5 digits in first case</div>
<div>or any digits upto maximum 5 digits in second case</div>
<div>tried also putting "#" at the end when dialing</div>
<div> </div>
<div>none worked</div>
<div> </div>
<div> </div></div>
<div> </div>
<div> </div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>