View previous topic :: View next topic |
Author |
Message |
lakindia89 at gmail.com Guest
|
Posted: Thu Aug 06, 2009 10:56 am Post subject: [Freeswitch-users] Error while creating object |
|
|
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? |
|
Back to top |
|
|
lakindia89 at gmail.com Guest
|
Posted: Mon Aug 10, 2009 3:10 am Post subject: [Freeswitch-users] Error while creating object |
|
|
Can any one please say what I did wrong here?
regards,
Lakshmanan G.
lakshmanan wrote:
Quote: |
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 |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Mon Aug 10, 2009 6:36 pm Post subject: [Freeswitch-users] Error while creating object |
|
|
On Mon, Aug 10, 2009 at 3:00 AM, lakshmanan <lakindia89@gmail.com (lakindia89@gmail.com)> wrote:
Quote: |
Can any one please say what I did wrong here?
|
Maybe this instead?
my $sess=&freeswitch::DTMF->new(); |
|
Back to top |
|
|
lakindia89 at gmail.com Guest
|
Posted: Tue Aug 11, 2009 4:05 am Post subject: [Freeswitch-users] Error while creating object |
|
|
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 <msc@freeswitch.org (msc@freeswitch.org)> wrote:
|
|
Back to top |
|
|
|