Hi after updating to latest git today I can not bind on events anymore: EventConsumer con = new EventConsumer("all", null); 2010-05-19 14:04:32.984375 [ERR] switch_cpp.cpp:81 Cannot bind to ALL
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
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
participants (2)
-
babak yakhchali
-
Patrick Lists