How do I get freeswitch variable which has DTMF values.
Dear All, I am doing IVR by using perl ESL libraries. I have used ESL::IVR module. I get the DTMF by using playAndGetDigits subroutine which is defined in ESL::IVR.pm. The DTMF digit stored in freeswitch "digit" variable. To get the freeswitch variable I used getVar subroutine which is defined in ESL::IVR.pm file. When I print that digits, Perl program prints empty value while playing the menu itself. If I need to get the DTMF value I need to wait the perl program. My question is why the Perl program prints the empty value before executing the getVar function? How can get the DTMF value by using getVar function without waiting in the Perl program? Please any one help me in this problem.... Thanks, Velusamy.
Or use the socket without async so that it blocks till the action is complete. /b On Sep 25, 2009, at 12:13 AM, velusamy velu wrote:
To get the freeswitch variable I used getVar subroutine which is defined in ESL::IVR.pm file. When I print that digits, Perl program prints empty value while playing the menu itself. If I need to get the DTMF value I need to wait the perl program.
Dear Sir, If I disable the async mode in socket, the playAndGetDigits doesn't exit after getting the DTMF value. It exit after time out seconds. But I need to exit when DTMF digit is got. My subroutine call is, $conn->playAndGetDigits(1,1,1,8000,'#',"$play_list","ivr/ivr-please.wav","res","\\d+"); Is there any way to overcome this problem? Please help me... On Fri, Sep 25, 2009 at 10:52 AM, Brian West <brian@freeswitch.org> wrote:
Or use the socket without async so that it blocks till the action is complete.
/b
On Sep 25, 2009, at 12:13 AM, velusamy velu wrote:
To get the freeswitch variable I used getVar subroutine which is defined in ESL::IVR.pm file. When I print that digits, Perl program prints empty value while playing the menu itself. If I need to get the DTMF value I need to wait the perl program.
_______________________________________________ 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
I beg to differ on that one.. what distro are you on? I use this all over the place and it works so i'm concerned about this. /b On Sep 25, 2009, at 1:55 AM, velusamy velu wrote:
Dear Sir, If I disable the async mode in socket, the playAndGetDigits doesn't exit after getting the DTMF value. It exit after time out seconds. But I need to exit when DTMF digit is got. My subroutine call is, $conn->playAndGetDigits (1,1,1,8000,'#',"$play_list","ivr/ivr-please.wav","res","\\d+");
Is there any way to overcome this problem?
Please help me...
Dear Sir, Please pardon me for this question. Now I corrected my mistake. It is working fine. Thank you vrey much for your valuable help.. On Fri, Sep 25, 2009 at 12:30 PM, Brian West <brian@freeswitch.org> wrote:
I beg to differ on that one.. what distro are you on? I use this all over the place and it works so i'm concerned about this. /b
On Sep 25, 2009, at 1:55 AM, velusamy velu wrote:
Dear Sir, If I disable the async mode in socket, the playAndGetDigits doesn't exit after getting the DTMF value. It exit after time out seconds. But I need to exit when DTMF digit is got. My subroutine call is, $conn->playAndGetDigits(1,1,1,8000,'#',"$play_list","ivr/ivr-please.wav","res"," \\d+");
Is there any way to overcome this problem?
Please help me...
_______________________________________________ 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)
-
Brian West
-
velusamy velu