Allow the format outputted by meetme list to be used for meetme commands (like kick) (issue #7322 reported by darkskiez)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-06-09 18:52:51 +00:00
parent c38c7a1f46
commit 9d9a6da961

View File

@@ -2011,20 +2011,25 @@ static int conf_exec(struct ast_channel *chan, void *data)
return res;
}
static struct ast_conf_user* find_user(struct ast_conference *conf, char *callerident) {
static struct ast_conf_user* find_user(struct ast_conference *conf, char *callerident)
{
struct ast_conf_user *user = NULL;
char usrno[1024] = "";
int cid;
if (conf && callerident) {
user = conf->firstuser;
while (user) {
snprintf(usrno, sizeof(usrno), "%d", user->user_no);
if (strcmp(usrno, callerident) == 0)
return user;
user = user->nextuser;
}
if (!conf || !callerident) {
return NULL;
}
return NULL;
sscanf(callerident, "%i", &cid);
user = conf->firstuser;
while (user) {
if (user->user_no == cid)
break;
user = user->nextuser;
}
return user;
}
/*--- admin_exec: The MeetMeadmin application */