return NULL;
}
-
switch_core_new_memory_pool(&pool);
node = switch_core_alloc(pool, sizeof(*node));
sql = switch_mprintf("select count(*) from fifo_outbound where fifo_name = '%q'", name);
fifo_execute_sql_callback(mutex, sql, sql2str_callback, &cbt);
node->member_count = atoi(outbound_count);
- if (node->member_count > 0) {
- node->has_outbound = 1;
- } else {
- node->has_outbound = 0;
- }
+ node->has_outbound = (node->member_count > 0) ? 1 : 0;
switch_safe_free(sql);
node->importance = importance;