What is the call_info object? Best way to get help is to provide a simple working (or not working in this case) example of your code. Then I can compile/test and figure it out for ya. It seems like last_event is NULL in this case... Regards, João Mesquita On Tue, Oct 18, 2011 at 8:06 PM, adam harris <admharris@gmx.com> wrote:
I am trying to check if event received was CHANNEL_HANUP
I am doing somthing like this
const char *last_event = esl_event_get_header(call_info->global_handle->last_event,"Event-Name");
if (strcmp(last_event,"CHANNEL_HANGUP")) { exit(0); }
However an error occurs
src/esl_event.c:244: esl_event_get_header_ptr: Assertion `event' failed.
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