[Freeswitch-dev] switch_channel_add_state_handler not work under ubuntu

Xijing Dai dxj19831029 at gmail.com
Thu Sep 13 20:25:04 MSD 2012


hey

i have release 1.2.1 code base,
the state handler is called in Windows, but not in Ubuntu 12.04

here is the code:

static switch_state_handler_table_t channel_event_handlers = {
> /*.on_init */ NULL,
> /*.on_routing */ NULL,
> /*.on_execute */ NULL,
> /*.on_hangup */ channel_on_hangup,
> /*.on_exchange_media */ NULL,
> /*.on_soft_execute */ NULL,
> /*.on_consume_media */ NULL,
> /*.on_hibernate */ NULL,
> /*.on_reset */ NULL,
> /*.on_park */ NULL,
> /*.on_reporting */ NULL,
> /*.on_destroy */ NULL
> };
> ......
> if (switch_channel_add_state_handler(hook_channel,
> &channel_event_handlers) < 0)
>       {
>     switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session),
> SWITCH_LOG_ERROR, "state handler added failed\n");
>       }
> .......
>
>

Anyone knows why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120914/c417536c/attachment.html 


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