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
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
_________________________________________________________________________
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