Dear all,<br>I did the below code, to callback a function when CHANNEL_EXECUTE_COMPLETE event comes.<br>I executed the script for the 1st time and I got nothing.<br>When I executed the script for the 2nd time, it ended with Sedmentation fault with core dumped.<br>
<br>I was unable to attach the core dump file with this mail.<br>Please specify how to send files to freeswitch user mailing list if need be.<br><br>The freeswitch log is here:<br> <a href="http://pastebin.freeswitch.org/11038">http://pastebin.freeswitch.org/11038</a><br>
<br>#!/usr/bin/perl<br>use strict;<br>use Data::Dumper;<br>our $session;<br>$session->answer();<br>my $events=new freeswitch::EventConsumer("CHANNEL_EXECUTE_COMPLETE");<br>$events->pop(1);<br>$events->swig_e_callback_set("playvoice");<br>
sub playvoice()<br>{<br> freeswitch::consoleLog("INFO","Call back function called\n");<br>}<br>return 1;<br><br>