[Freeswitch-users] Freeswitch core dumped, when setting callback to events

Anthony Minessale anthony.minessale at gmail.com
Mon Nov 9 08:34:58 PST 2009


1) install gdb
2) run support_d/fscore_db in the tree from the working directory of the
core.
3) if you are not on svn trunk, "make current" and start over.


On Mon, Nov 9, 2009 at 5:53 AM, lakshmanan ganapathy
<lakindia89 at gmail.com>wrote:

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


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091109/1561093e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list