diff --git a/app/dialplan/resources/switch/conf/dialplan/240_page.xml b/app/dialplan/resources/switch/conf/dialplan/240_page.xml
index c8ac3d8e7d..0c080a2213 100644
--- a/app/dialplan/resources/switch/conf/dialplan/240_page.xml
+++ b/app/dialplan/resources/switch/conf/dialplan/240_page.xml
@@ -3,8 +3,9 @@
-
+
+
diff --git a/app/dialplan/resources/switch/conf/dialplan/250_page-extension.xml b/app/dialplan/resources/switch/conf/dialplan/250_page-extension.xml
index 613767304a..ef0ee75364 100644
--- a/app/dialplan/resources/switch/conf/dialplan/250_page-extension.xml
+++ b/app/dialplan/resources/switch/conf/dialplan/250_page-extension.xml
@@ -2,8 +2,9 @@
-
+
+
diff --git a/resources/install/scripts/page.lua b/resources/install/scripts/page.lua
index d8f9737cf2..4e88d2850b 100644
--- a/resources/install/scripts/page.lua
+++ b/resources/install/scripts/page.lua
@@ -51,7 +51,7 @@ if ( session:ready() ) then
sounds_dir = session:getVariable("sounds_dir");
destinations = session:getVariable("destinations");
if (destinations == nil) then
- destinations = session:getVariable("extension_list");
+ destinations = session:getVariable("extension_list");
end
destination_table = explode(",",destinations);
caller_id_name = session:getVariable("caller_id_name");
@@ -129,7 +129,7 @@ if ( session:ready() ) then
sub_table = explode("-",value);
for destination=sub_table[1],sub_table[2] do
--get the destination required for number-alias
- destination = api:execute("user_data", destination .. "@" .. domain_name .. " attr id");
+ destination = api:execute("user_data", destination .. "@" .. domain_name .. " attr id");
--prevent calling the user that initiated the page
if (sip_from_user ~= destination) then
@@ -172,7 +172,12 @@ if ( session:ready() ) then
--send main call to the conference room
if (destination_count > 0) then
- session:execute("conference", "page-"..destination_number.."@page+flags{endconf}");
+ if (session:getVariable("moderator") ~= nil and session:getVariable("moderator") == "true") then
+ moderator_flag = ",moderator";
+ else
+ moderator_flag = "";
+ end
+ session:execute("conference", "page-"..destination_number.."@page+flags{endconf"..moderator_flag.."}");
else
session:execute("playback", "tone_stream://%(500,500,480,620);loops=3");
end
diff --git a/resources/templates/conf/autoload_configs/conference.conf.xml b/resources/templates/conf/autoload_configs/conference.conf.xml
index 33ee4374e2..641aa741ae 100644
--- a/resources/templates/conf/autoload_configs/conference.conf.xml
+++ b/resources/templates/conf/autoload_configs/conference.conf.xml
@@ -1,4 +1,4 @@
-
+
@@ -6,7 +6,7 @@
-
+
@@ -45,7 +45,7 @@
-
-
+
@@ -148,7 +148,7 @@
-
+
@@ -172,6 +172,8 @@
+
+
@@ -198,6 +200,8 @@
+
+
@@ -224,6 +228,8 @@
+
+
@@ -257,6 +263,8 @@
+
+