fix conference parse bug

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4083 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-01-29 18:05:22 +00:00
parent ee16b51a42
commit a4d3d77871
1 changed files with 5 additions and 8 deletions

View File

@ -3145,7 +3145,6 @@ switch_status_t conf_api_dispatch(conference_obj_t *conference, switch_stream_ha
}
}
if (all) {
conference_member_itterator(conference, stream, conf_api_sub_commands[i].pfnapicmd, argv[argn+2]);
} else if (last) {
@ -3170,19 +3169,17 @@ switch_status_t conf_api_dispatch(conference_obj_t *conference, switch_stream_ha
}
switch_mutex_unlock(conference->member_mutex);
} else {
} else if (id) {
conf_api_member_cmd_t pfn = (conf_api_member_cmd_t)conf_api_sub_commands[i].pfnapicmd;
conference_member_t *member = conference_member_get(conference, id);
if (member != NULL) {
pfn(conference_member_get(conference, id), stream, argv[argn+2]);
} else {
if (id == 0) {
stream->write_function(stream, conf_api_sub_commands[i].psyntax);
} else {
stream->write_function(stream, "Non-Existant ID %u\n", id);
}
}
} else {
stream->write_function(stream, conf_api_sub_commands[i].psyntax);
}
}
break;