Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How do I get freeswitch variable which has DTMF values.


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
velu.technical at gmai...
Guest





PostPosted: Fri Sep 25, 2009 12:22 am    Post subject: [Freeswitch-users] How do I get freeswitch variable which ha Reply with quote

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.
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Sep 25, 2009 12:30 am    Post subject: [Freeswitch-users] How do I get freeswitch variable which ha Reply with quote

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:

Quote:
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
Back to top
velu.technical at gmai...
Guest





PostPosted: Fri Sep 25, 2009 2:05 am    Post subject: [Freeswitch-users] How do I get freeswitch variable which ha Reply with quote

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 (brian@freeswitch.org)> wrote:
Quote:
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:

Quote:
    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 (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Sep 25, 2009 2:10 am    Post subject: [Freeswitch-users] How do I get freeswitch variable which ha Reply with quote

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:
Quote:
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...
Back to top
velu.technical at gmai...
Guest





PostPosted: Fri Sep 25, 2009 2:33 am    Post subject: [Freeswitch-users] How do I get freeswitch variable which ha Reply with quote

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 (brian@freeswitch.org)> wrote:
Quote:
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:

Quote:
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 (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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services