20 May
2010
20 May
'10
5:11 a.m.
Hi again After debuggning freeswitch i found out the problem is that nod_index is not initialized and if (node_index <= SWITCH_EVENT_ALL && switch_event_bind_removable(__FILE__, event_id, subclass_name, event_handler, this, &enodes[node_index]) == SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "bound to %s %s\n", event_name, switch_str_nil(subclass_name)); the first part of if condition is always evaluated to false node_index <= SWITCH_EVENT_ALL when I initialize nod_index to 0 in event consumer constructor it seems working