Error in an example of FreeSWITCH cookbook
I have FreeSWITCH Version 1.0.6 (hacked-20110607T065231Z) on Centos 5.5 I run script /usr/src/freeswitch-1.0.6/libs/esl/perl/logger.pl - all ok. Script from 59 page of FreeSWITCH cookbook finishes with an error Global symbol "$e" requires explicit package name at ./cdr_to_file.pl line 22. Execution of ./cdr_to_file.pl aborted due to compilation errors. 22 line is my @raw_data = split "\n",$e->serialize(); Vladislav Grishin
You are correct, sir! I'll need you to please file an errata report with PacktPub.com. It looks like a line of code got lost somewhere. In any case, just add this line right before line 22: my $e = $con->recvEvent(); That should do the trick. Not sure what happened with that code sample but I'll ask Packt to fix it. However, I need you to open the errata report. Thanks, MC 2012/2/28 Владислав Гришин <Vladislav.Grishin@vts24.ru>
I have FreeSWITCH Version 1.0.6 (hacked-20110607T065231Z) on Centos 5.5** **
** **
I run script /usr/src/freeswitch-1.0.6/libs/esl/perl/logger.pl - all ok.* ***
** **
Script from 59 page of FreeSWITCH cookbook finishes with an error****
** **
Global symbol "$e" requires explicit package name at ./cdr_to_file.plline 22. ****
Execution of ./cdr_to_file.pl aborted due to compilation errors.****
** **
22 line is ****
** **
my @raw_data = split "\n",$e->serialize();****
** **
** **
Vladislav Grishin****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
participants (2)
-
Michael Collins
-
Владислав Гришин