[Freeswitch-users] esl_event_get_header error

João Mesquita jmesquita at freeswitch.org
Thu Oct 20 02:52:24 MSD 2011


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 at 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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111019/6c4dbe52/attachment.html 


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