You may need to do \\d+ instead of \d+ in your expression.
I am unable to get the pin number and pass it to $digits ($digits comes blank)appreciate any feedbackthxdeniro--my($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","","^7\d{4}\$");ormy($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","", "\d+");
freeswitch::console_log("info", "Got dtmf: .. $digits ..\n");freeswitch console2011-03-22 01:29:26.208664 [INFO] switch_cpp.cpp:1177 Got dtmf: .. ..
2011-03-22 01:29:26.208664 [ERR] mod_perl.c:72 [require '/opt/freeswitch/scripts/fs1.pl';]
/opt/freeswitch/scripts/fs1.pl did not return a true value at (eval 2) line 1.each case getting "that was invalid PIN"entering pin starting with 7 maximum 5 digits in first caseor any digits upto maximum 5 digits in second casetried also putting "#" at the end when dialingnone worked
_______________________________________________
FreeSWITCH-users mailing list
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