Merge pull request #556 in FS/freeswitch from ~ZHANGST/freeswitch:bugfix/FS-8341-dirtributor-return-err to master

* commit '4ce46043c3107c8b5a051d801e4a6c99253e8557':
  FS-8341 [mod_distributor] fix gateway choose bug
This commit is contained in:
Brian West 2015-10-20 08:37:02 -05:00
commit 42803902d6
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ static struct dist_node *find_next(struct dist_list *list, int etotal, char **ex
list->last = -1;
}
match = NULL;
matches = 0;
for (np = list->nodes; np; np = np->next) {
if (np->cur_weight < list->target_weight) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "%s %d/%d\n", np->name, np->cur_weight, list->target_weight);