From a4d3d778714cfb5bc06b86fb739248071fdad6bf Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 29 Jan 2007 18:05:22 +0000 Subject: [PATCH] fix conference parse bug git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4083 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../applications/mod_conference/mod_conference.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index cd491b1fa0..e96485be72 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -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); - } + stream->write_function(stream, "Non-Existant ID %u\n", id); } + } else { + stream->write_function(stream, conf_api_sub_commands[i].psyntax); } } break;