aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-04-02 23:55:57 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-04-02 23:55:57 +0000
commitbad7a7d715a44f3b76da44895b4443c50b9ef111 (patch)
tree64b211784bed78d7dfd54e53223fbe9b5f7ab49b /apps
parent135b05634ce9cd6791825952c539cfa5b9d999e2 (diff)
Export MEETMEBOOKID and fix pin-less conferences with realtime conferences
(closes issue #16866) Reported by: DEA Patches: rt-meetme-options.txt uploaded by DEA (license 3) Tested by: DEA Review: https://reviewboard.asterisk.org/r/582/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256019 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_meetme.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 73be47145..1217b39c7 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -3477,6 +3477,11 @@ bailoutandtrynormal:
/* Return the number of seconds the user was in the conf */
snprintf(meetmesecs, sizeof(meetmesecs), "%d", (int) (time(NULL) - user->jointime));
pbx_builtin_setvar_helper(chan, "MEETMESECS", meetmesecs);
+
+ /* Return the RealTime bookid for CDR linking */
+ if (rt_schedule) {
+ pbx_builtin_setvar_helper(chan, "MEETMEBOOKID", conf->bookid);
+ }
}
ast_free(user);
AST_LIST_UNLOCK(&confs);
@@ -4051,6 +4056,14 @@ static int conf_exec(struct ast_channel *chan, const char *data)
/* No pin required */
allowretry = 0;
+ /* For RealTime conferences without a pin
+ * should still support loading options
+ */
+ if (!ast_strlen_zero(cnf->useropts)) {
+ char *opts = ast_strdupa(cnf->useropts);
+ ast_app_parse_options64(meetme_opts, &confflags, optargs, opts);
+ }
+
/* Run the conference */
res = conf_run(chan, cnf, &confflags, optargs);
}