Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Error while creating object


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





PostPosted: Thu Aug 06, 2009 10:56 am    Post subject: [Freeswitch-users] Error while creating object Reply with 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?
Back to top
lakindia89 at gmail.com
Guest





PostPosted: Mon Aug 10, 2009 3:10 am    Post subject: [Freeswitch-users] Error while creating object Reply with quote

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





PostPosted: Mon Aug 10, 2009 6:36 pm    Post subject: [Freeswitch-users] Error while creating object Reply with quote

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





PostPosted: Tue Aug 11, 2009 4:05 am    Post subject: [Freeswitch-users] Error while creating object Reply with quote

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


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();

_______________________________________________
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