[asterisk-commits] oej: branch oej/meetmefixes-1.4 r278617 - /team/oej/meetmefixes-1.4/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 22 08:50:07 CDT 2010


Author: oej
Date: Thu Jul 22 08:50:03 2010
New Revision: 278617

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=278617
Log:
As meetme doesn't compile on my mac in 1.4, this code is not tested yet
Ignore this commit while I try to get time to test on a penguin based system.

Modified:
    team/oej/meetmefixes-1.4/apps/app_meetme.c

Modified: team/oej/meetmefixes-1.4/apps/app_meetme.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/meetmefixes-1.4/apps/app_meetme.c?view=diff&rev=278617&r1=278616&r2=278617
==============================================================================
--- team/oej/meetmefixes-1.4/apps/app_meetme.c (original)
+++ team/oej/meetmefixes-1.4/apps/app_meetme.c Thu Jul 22 08:50:03 2010
@@ -220,6 +220,9 @@
 "conference.  If the conference number is omitted, the user will be prompted\n"
 "to enter one.  User can exit the conference by hangup, or if the 'p' option\n"
 "is specified, by pressing '#'.\n"
+"When using realtime Asterisk will save the system name (from asterisk.conf) of this system\n"
+"in realtime. If a conference with the same already exists but on another server, \n"
+"MEETME_SYSTEMNAME is set to the system name that hosts the meetme and meetme() exits.\n"
 "Please note: The DAHDI kernel modules and at least one hardware driver (or dahdi_dummy)\n"
 "             must be present for conferencing to operate properly. In addition, the chan_dahdi\n"
 "             channel driver must be loaded for the 'i' and 'r' options to operate at all.\n\n"
@@ -1720,7 +1723,7 @@
 	conf->users++;
 	/* Update table */
 	snprintf(members, sizeof(members), "%d", conf->users);
-	ast_update_realtime("meetme", "confno", conf->confno, "members", members , NULL);
+	ast_update_realtime("meetme", "confno", conf->confno, "members", members, "systemname", ast_config_AST_SYSTEM_NAME, NULL);
 	setusercount = 1;
 
 	/* This device changed state now - if this is the first user */
@@ -2551,7 +2554,7 @@
 			conf->users--;
 			/* Update table */
 			snprintf(members, sizeof(members), "%d", conf->users);
-			ast_update_realtime("meetme", "confno", conf->confno, "members", members, NULL);
+			ast_update_realtime("meetme", "confno", conf->confno, "members", members, "systemname", ast_config_AST_SYSTEM_NAME, NULL);
 			if (confflags & CONFFLAG_MARKEDUSER) 
 				conf->markedusers--;
 		}




More information about the asterisk-commits mailing list