On 05/20/2010 07:11 AM, babak yakhchali wrote:
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
If this is a bug please report it at http://jira.freeswitch.org preferably with a patch against latest git master. Regards, Patrick