mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user