13 Sep
2012
13 Sep
'12
4:25 p.m.
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?