Re: [Freeswitch-users] Error while creating object

2009-08-11 Thread lakshmanan ganapathy
Thanks for your replay.
I've tried that. But it says following error message.

2009-08-11 14:23:09 [ERR] mod_perl.c:69 Perl_safe_eval() [require
'/usr/local/freeswitch/conf/test.pl';]
Undefined subroutine freeswitch::DTMF called at
/usr/local/freeswitch/conf/test.pl line 6.Compilation failed in require at
(eval 2) line 1.

Please help me to solve this issue!!!

On Tue, Aug 11, 2009 at 4:59 AM, Michael Collins m...@freeswitch.org wrote:



 On Mon, Aug 10, 2009 at 3:00 AM, lakshmanan lakindi...@gmail.com wrote:


 Can any one please say what I did wrong here?


 Maybe this instead?
 my $sess=freeswitch::DTMF-new();

 ___
 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


Re: [Freeswitch-users] Error while creating object

2009-08-10 Thread lakshmanan

Can any one please say what I did wrong here?

regards,
Lakshmanan G.


lakshmanan wrote:
 
 Hi all,
 Greets.
 
 I am in the process of controlling the freeswitch with perl.
 I have read about mod_perl and I wrote some scripts to test which works
 fine.
 Yesterday I tried to access the digit_set function.
 So I create an object for the freeswitch::DTMF.
 But it reported the following error.
 
 2009-08-06 15:53:46 [ERR] mod_perl.c:69 Perl_safe_eval() [require
 '/usr/local/freeswitch/conf/test.pl';]
 No matching function for overloaded 'new_DTMF' at
 /usr/local/freeswitch/perl/freeswitch.pm line 197.
 Compilation failed in require at (eval 2) line 1.
 
 Here is my code.
 
 #!/usr/bin/perl
 use strict;
 use freeswitch;
 our $session;
 $session-execute(bridge,user/1010);
 my $sess=freeswitch::DTMF::new;
 return 1;
 
 The bridge is working fine. But while creating the object it said error.
 
 Can any one explain why this happens and how can I correct it?
 
 ___
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-while-creating-object-tp24849065p24895716.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


___
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


Re: [Freeswitch-users] Error while creating object

2009-08-10 Thread Michael Collins
On Mon, Aug 10, 2009 at 3:00 AM, lakshmanan lakindi...@gmail.com wrote:


 Can any one please say what I did wrong here?


Maybe this instead?
my $sess=freeswitch::DTMF-new();
___
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] Error while creating object

2009-08-06 Thread lakshmanan ganapathy
Hi all,
Greets.

I am in the process of controlling the freeswitch with perl.
I have read about mod_perl and I wrote some scripts to test which works
fine.
Yesterday I tried to access the digit_set function.
So I create an object for the freeswitch::DTMF.
But it reported the following error.

2009-08-06 15:53:46 [ERR] mod_perl.c:69 Perl_safe_eval() [require
'/usr/local/freeswitch/conf/test.pl';]
No matching function for overloaded 'new_DTMF' at
/usr/local/freeswitch/perl/freeswitch.pm line 197.
Compilation failed in require at (eval 2) line 1.

Here is my code.

#!/usr/bin/perl
use strict;
use freeswitch;
our $session;
$session-execute(bridge,user/1010);
my $sess=freeswitch::DTMF::new;
return 1;

The bridge is working fine. But while creating the object it said error.

Can any one explain why this happens and how can I correct it?
___
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