playAndGetDigits not working?
I am unable to get the pin number and pass it to $digits ($digits comes blank) appreciate any feedback thx deniro-- my($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","","^7\d{4}\$"); or my($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","", "\d <file://d/>+"); freeswitch::console_log("info", "*Got dtmf: .. $digits ..*\n"); freeswitch console 2011-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 case or any digits upto maximum 5 digits in second case tried also putting "#" at the end when dialing none worked
You may need to do \\d+ instead of \d+ in your expression. -MC On Mon, Mar 21, 2011 at 10:46 PM, deniro <ayhkor@gmail.com> wrote:
I am unable to get the pin number and pass it to $digits ($digits comes blank) appreciate any feedback thx deniro--
my($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","","^7\d{4}\$"); or my($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 console 2011-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 case or any digits upto maximum 5 digits in second case tried also putting "#" at the end when dialing
none 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
still same. not working what else can it be? thx On Tue, Mar 22, 2011 at 1:20 PM, Michael Collins <msc@freeswitch.org> wrote:
You may need to do \\d+ instead of \d+ in your expression. -MC
On Mon, Mar 21, 2011 at 10:46 PM, deniro <ayhkor@gmail.com> wrote:
I am unable to get the pin number and pass it to $digits ($digits comes blank) appreciate any feedback thx deniro--
my($digits)=$session->playAndGetDigits(1,5,1,8000,"#","conference/conf-pin.wav","ivr/ivr-that_was_an_invalid_entry.wav","","^7\d{4}\$"); or my($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 console 2011-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 case or any digits upto maximum 5 digits in second case tried also putting "#" at the end when dialing
none 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
_______________________________________________ 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
On Tue, Mar 22, 2011 at 4:07 PM, deniro <ayhkor@gmail.com> wrote:
still same. not working what else can it be? thx
Pastebin your whole script, please and link here. http://pastebin.freeswitch.org
-MC
ok, I got that working $session->anwer() fixed the problem I am now able to join the conference but in freeswitch console I am receiving following when I joined the conf (it is constantly flowing on the screeen) What is this and how to fix it? thx 2011-03-22 23:51:21.740402 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.740402 [ERR] mod_local_stream.c:402 Unknown source default 2011-03-22 23:51:21.760297 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.760297 [ERR] mod_local_stream.c:402 Unknown source default 2011-03-22 23:51:21.779849 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.779849 [ERR] mod_local_stream.c:402 Unknown source default On Tue, Mar 22, 2011 at 7:20 PM, Michael Collins <msc@freeswitch.org> wrote:
On Tue, Mar 22, 2011 at 4:07 PM, deniro <ayhkor@gmail.com> wrote:
still same. not working what else can it be? thx
Pastebin your whole script, please and link here. http://pastebin.freeswitch.org
-MC
_______________________________________________ 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
ok, got this one fixed too installed moh files thx On Tue, Mar 22, 2011 at 11:54 PM, deniro <ayhkor@gmail.com> wrote:
ok, I got that working $session->anwer() fixed the problem
I am now able to join the conference but in freeswitch console I am receiving following when I joined the conf (it is constantly flowing on the screeen) What is this and how to fix it? thx
2011-03-22 23:51:21.740402 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.740402 [ERR] mod_local_stream.c:402 Unknown source default 2011-03-22 23:51:21.760297 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.760297 [ERR] mod_local_stream.c:402 Unknown source default 2011-03-22 23:51:21.779849 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.779849 [ERR] mod_local_stream.c:402 Unknown source default
On Tue, Mar 22, 2011 at 7:20 PM, Michael Collins <msc@freeswitch.org>wrote:
On Tue, Mar 22, 2011 at 4:07 PM, deniro <ayhkor@gmail.com> wrote:
still same. not working what else can it be? thx
Pastebin your whole script, please and link here. http://pastebin.freeswitch.org
-MC
_______________________________________________ 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
Confirm that you have all of the moh files installed for all sampling rates: "make cd-moh-install" -MC On Tue, Mar 22, 2011 at 8:54 PM, deniro <ayhkor@gmail.com> wrote:
ok, I got that working $session->anwer() fixed the problem
I am now able to join the conference but in freeswitch console I am receiving following when I joined the conf (it is constantly flowing on the screeen) What is this and how to fix it? thx
2011-03-22 23:51:21.740402 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.740402 [ERR] mod_local_stream.c:402 Unknown source default 2011-03-22 23:51:21.760297 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.760297 [ERR] mod_local_stream.c:402 Unknown source default 2011-03-22 23:51:21.779849 [WARNING] mod_local_stream.c:393 Unknown source moh, trying 'default' 2011-03-22 23:51:21.779849 [ERR] mod_local_stream.c:402 Unknown source default
On Tue, Mar 22, 2011 at 7:20 PM, Michael Collins <msc@freeswitch.org>wrote:
On Tue, Mar 22, 2011 at 4:07 PM, deniro <ayhkor@gmail.com> wrote:
still same. not working what else can it be? thx
Pastebin your whole script, please and link here. http://pastebin.freeswitch.org
-MC
_______________________________________________ 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
_______________________________________________ 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
participants (2)
-
deniro
-
Michael Collins