[Freeswitch-users] mod_managed bind problem

babak yakhchali babak.freeswitch at gmail.com
Wed May 19 22:11:51 PDT 2010


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




More information about the FreeSWITCH-users mailing list