[Freeswitch-users] esl_event_get_header error

adam harris admharris at gmx.com
Wed Oct 19 03:06:47 MSD 2011


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.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list