diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-14 20:26:36 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-14 20:26:36 +0000 |
commit | 396e88ef475ebed4884a205fb5d8ae74b0d17a26 (patch) | |
tree | a6abbbbb32eaf5c064ca4320700ffa81320155c2 /apps | |
parent | 672a49db64aaf964de9ca9f93eb5eb0d1f86e24a (diff) |
Merged revisions 206567 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r206567 | tilghman | 2009-07-14 15:14:45 -0500 (Tue, 14 Jul 2009) | 6 lines
Document all meetme realtime fields, and in the process, make some field lengths more consistent.
(closes issue #15493)
Reported by: lasko
Patches:
meetme.diff uploaded by lasko (license 833)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@206598 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_meetme.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index c2c6f3e75..9e3753809 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -584,7 +584,7 @@ static int rt_log_members; #define MAX_CONFNUM 80 #define MAX_PIN 80 -#define OPTIONS_LEN 32 +#define OPTIONS_LEN 100 enum announcetypes { CONF_HASJOIN, @@ -1816,7 +1816,7 @@ static int rt_extend_conf(char *confno) struct timeval now; struct ast_tm tm; struct ast_variable *var, *orig_var; - char bookid[8]; + char bookid[51]; if (!extendby) { return 0; @@ -3357,13 +3357,13 @@ static struct ast_conference *find_conf_realtime(struct ast_channel *chan, char int maxusers = 0; struct timeval now; char recordingfilename[256] = ""; - char recordingformat[10] = ""; + char recordingformat[11] = ""; char currenttime[19] = ""; char eatime[19] = ""; - char bookid[19] = ""; + char bookid[51] = ""; char recordingtmp[AST_MAX_EXTENSION] = ""; - char useropts[OPTIONS_LEN]; /* Used for RealTime conferences */ - char adminopts[OPTIONS_LEN]; + char useropts[OPTIONS_LEN + 1]; /* Used for RealTime conferences */ + char adminopts[OPTIONS_LEN + 1]; struct ast_tm tm, etm; struct timeval endtime = { .tv_sec = 0 }; const char *var2; @@ -3427,11 +3427,11 @@ static struct ast_conference *find_conf_realtime(struct ast_channel *chan, char } else if (!strcasecmp(var->name, "bookId")) { ast_copy_string(bookid, var->value, sizeof(bookid)); } else if (!strcasecmp(var->name, "opts")) { - ast_copy_string(useropts, var->value, sizeof(char[OPTIONS_LEN])); + ast_copy_string(useropts, var->value, sizeof(char[OPTIONS_LEN + 1])); } else if (!strcasecmp(var->name, "maxusers")) { maxusers = atoi(var->value); } else if (!strcasecmp(var->name, "adminopts")) { - ast_copy_string(adminopts, var->value, sizeof(char[OPTIONS_LEN])); + ast_copy_string(adminopts, var->value, sizeof(char[OPTIONS_LEN + 1])); } else if (!strcasecmp(var->name, "recordingfilename")) { ast_copy_string(recordingfilename, var->value, sizeof(recordingfilename)); } else if (!strcasecmp(var->name, "recordingformat")) { |