[Freeswitch-svn] [commit] r4083 - freeswitch/trunk/src/mod/applications/mod_conference

Freeswitch SVN anthm at freeswitch.org
Mon Jan 29 13:05:22 EST 2007


Author: anthm
Date: Mon Jan 29 13:05:22 2007
New Revision: 4083

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
fix conference parse bug

Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	Mon Jan 29 13:05:22 2007
@@ -3145,7 +3145,6 @@
                         }                        
                     }
 
-
                     if (all) {
                         conference_member_itterator(conference, stream, conf_api_sub_commands[i].pfnapicmd, argv[argn+2]);
                     } else if (last) {
@@ -3170,19 +3169,17 @@
                         }
 
                         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;



More information about the Freeswitch-svn mailing list