Author: sayer
Date: 2009-02-17 22:16:35 +0100 (Tue, 17 Feb 2009)
New Revision: 1284
Modified:
trunk/apps/webconference/WebConference.cpp
trunk/apps/webconference/etc/webconference.conf
Log:
added ignore_pin config option
Modified: trunk/apps/webconference/WebConference.cpp
===================================================================
--- trunk/apps/webconference/WebConference.cpp 2009-02-17 19:43:32 UTC (rev
1283)
+++ trunk/apps/webconference/WebConference.cpp 2009-02-17 21:16:35 UTC (rev
1284)
@@ -69,6 +69,7 @@
int WebConferenceFactory::ParticipantExpiredDelay;
int WebConferenceFactory::RoomExpiredDelay;
int WebConferenceFactory::RoomSweepInterval;
+bool WebConferenceFactory::ignore_pin = false;
int WebConferenceFactory::onLoad()
{
@@ -170,7 +171,10 @@
// default: 10s
ParticipantExpiredDelay = cfg.getParameterInt("participants_expire_delay",
10);
}
+ ignore_pin = cfg.getParameter("ignore_pin")=="yes";
+ DBG("Ignore PINs enabled: %s\n", ignore_pin?"yes":"no");
+
if (cfg.getParameter("rooms_expire") == "no") {
RoomExpiredDelay = -1;
} else {
@@ -220,7 +224,8 @@
rooms[room].adminpin = adminpin;
res = &rooms[room];
} else {
- if (!it->second.adminpin.empty() &&
+ if ((!ignore_pin) &&
+ (!it->second.adminpin.empty()) &&
(it->second.adminpin != adminpin)) {
// wrong pin
} else {
Modified: trunk/apps/webconference/etc/webconference.conf
===================================================================
--- trunk/apps/webconference/etc/webconference.conf 2009-02-17 19:43:32 UTC
(rev 1283)
+++ trunk/apps/webconference/etc/webconference.conf 2009-02-17 21:16:35 UTC
(rev 1284)
@@ -41,8 +41,17 @@
#
# master_password=verysecret
+# ignore_pin sets whether room admin PINs are checked when
+# accessing rooms. If you are for example trust anyone who
+# can access the interface, this could be set to "yes" to allow
+# all to look into all conference rooms.
+#
+# default: no
#
+# ignore_pin=yes
+
#
+#
# feedback and statistics
feedback_file=/var/log/sems-webconference-feedback.txt
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev