Add a field to the database to store the required pin length.

This commit is contained in:
Mark Crane
2012-10-20 00:39:21 +00:00
parent 1c3d638bfe
commit c754e43e2d
2 changed files with 57 additions and 36 deletions
+40 -36
View File
@@ -118,26 +118,30 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign'; $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_dialplans'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_dialplans';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'dialplan_uuid'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'dialplan_uuid';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_name'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_name';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enter the conference center name.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the conference center name.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_extension'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_extension';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enter the conference center extension number.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the conference center extension number.';
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_pin_length';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the pin length.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_description'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_description';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enter the center description.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the center description.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_enabled'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_enabled';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enable or disable the conference center.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enable or disable the conference center.';
$y = 1; //table array index $y = 1; //table array index
$z = 0; //field array index $z = 0; //field array index
@@ -158,58 +162,58 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Conference UUID'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Conference UUID';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'meeting_uuid'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'meeting_uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Meeting UUID'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Meeting UUID';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Select the conference profile.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the conference profile.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'record'; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'record';
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'recording'; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'recording';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Select whether to record the conference.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select whether to record the conference.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'max_members'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'max_members';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Limit number of people in the conference.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Limit number of people in the conference.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'wait_mod'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'wait_mod';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Wait for the moderator to join before starting the conference.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Wait for the moderator to join before starting the conference.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'announce'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'announce';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Introduce participants as they enter the conference.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Introduce participants as they enter the conference.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'enter_sound'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enter_sound';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'The sound played when someone enters the conference.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'The sound played when someone enters the conference.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'mute'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'mute';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Mute participants on entering the conference.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Mute participants on entering the conference.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'created'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'created';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Date when the conference was created.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Date when the conference was created.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'created_by'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'created_by';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'The user that created the conference session.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'The user that created the conference session.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'enabled'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'enabled';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Select to enable or disable the session.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select to enable or disable the session.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'description'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'description';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Description.for the conference session.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Description.for the conference session.';
$z++; $z++;
$y = 2; //table array index $y = 2; //table array index
@@ -231,23 +235,23 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'meeting_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'meeting_uuid';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'profile';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Select the conference profile.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the conference profile.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'recording'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'recording';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Conference Recording'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Conference Recording';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'start_epoch'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'start_epoch';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'start_epoch'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'start_epoch';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'end_epoch'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'end_epoch';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'end_epoch'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'end_epoch';
$z++; $z++;
$y = 4; //table array index $y = 4; //table array index
@@ -275,41 +279,41 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'meeting_uuid'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'meeting_uuid';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'username'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'username';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Extension number.'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Extension number.';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_name'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_name';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'caller_id_name'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'caller_id_name';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_number'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'caller_id_number';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'caller_id_number'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'caller_id_number';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Call UUID'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Call UUID';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'moderator'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'moderator';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Moderator'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Moderator';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'network_addr'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'network_addr';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'network address'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'network address';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'start_epoch'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'start_epoch';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'start_epoch'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'start_epoch';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'end_epoch'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'end_epoch';
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'end_epoch'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'end_epoch';
$z++; $z++;
/* /*
@@ -321,7 +325,7 @@
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary'; $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
@@ -330,7 +334,7 @@
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign'; $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_uuid'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'conference_center_uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
@@ -339,7 +343,7 @@
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign'; $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_conference_centers'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_conference_centers';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'conference_uuid'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'conference_uuid';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
$z++; $z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_uuid'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_uuid';
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
@@ -348,7 +352,7 @@
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign'; $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_users'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_users';
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'user_uuid'; $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'user_uuid';
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
*/ */
?> ?>
@@ -48,6 +48,7 @@ else {
$dialplan_uuid = check_str($_POST["dialplan_uuid"]); $dialplan_uuid = check_str($_POST["dialplan_uuid"]);
$conference_center_name = check_str($_POST["conference_center_name"]); $conference_center_name = check_str($_POST["conference_center_name"]);
$conference_center_extension = check_str($_POST["conference_center_extension"]); $conference_center_extension = check_str($_POST["conference_center_extension"]);
$conference_center_pin_length = check_str($_POST["conference_center_pin_length"]);
$conference_center_description = check_str($_POST["conference_center_description"]); $conference_center_description = check_str($_POST["conference_center_description"]);
$conference_center_enabled = check_str($_POST["conference_center_enabled"]); $conference_center_enabled = check_str($_POST["conference_center_enabled"]);
@@ -117,6 +118,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//if (strlen($dialplan_uuid) == 0) { $msg .= "Please provide: Dialplan UUID<br>\n"; } //if (strlen($dialplan_uuid) == 0) { $msg .= "Please provide: Dialplan UUID<br>\n"; }
if (strlen($conference_center_name) == 0) { $msg .= "Please provide: Name<br>\n"; } if (strlen($conference_center_name) == 0) { $msg .= "Please provide: Name<br>\n"; }
if (strlen($conference_center_extension) == 0) { $msg .= "Please provide: Extension<br>\n"; } if (strlen($conference_center_extension) == 0) { $msg .= "Please provide: Extension<br>\n"; }
if (strlen($conference_center_pin_length) == 0) { $msg .= "Please provide: PIN Length<br>\n"; }
//if (strlen($conference_center_order) == 0) { $msg .= "Please provide: Order<br>\n"; } //if (strlen($conference_center_order) == 0) { $msg .= "Please provide: Order<br>\n"; }
//if (strlen($conference_center_description) == 0) { $msg .= "Please provide: Description<br>\n"; } //if (strlen($conference_center_description) == 0) { $msg .= "Please provide: Description<br>\n"; }
if (strlen($conference_center_enabled) == 0) { $msg .= "Please provide: Enabled<br>\n"; } if (strlen($conference_center_enabled) == 0) { $msg .= "Please provide: Enabled<br>\n"; }
@@ -147,6 +149,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "dialplan_uuid, "; $sql .= "dialplan_uuid, ";
$sql .= "conference_center_name, "; $sql .= "conference_center_name, ";
$sql .= "conference_center_extension, "; $sql .= "conference_center_extension, ";
$sql .= "conference_center_pin_length, ";
$sql .= "conference_center_description, "; $sql .= "conference_center_description, ";
$sql .= "conference_center_enabled "; $sql .= "conference_center_enabled ";
$sql .= ")"; $sql .= ")";
@@ -157,6 +160,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$dialplan_uuid', "; $sql .= "'$dialplan_uuid', ";
$sql .= "'$conference_center_name', "; $sql .= "'$conference_center_name', ";
$sql .= "'$conference_center_extension', "; $sql .= "'$conference_center_extension', ";
$sql .= "'$conference_center_pin_length', ";
$sql .= "'$conference_center_description', "; $sql .= "'$conference_center_description', ";
$sql .= "'$conference_center_enabled' "; $sql .= "'$conference_center_enabled' ";
$sql .= ")"; $sql .= ")";
@@ -209,6 +213,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql = "update v_conference_centers set "; $sql = "update v_conference_centers set ";
$sql .= "conference_center_name = '$conference_center_name', "; $sql .= "conference_center_name = '$conference_center_name', ";
$sql .= "conference_center_extension = '$conference_center_extension', "; $sql .= "conference_center_extension = '$conference_center_extension', ";
$sql .= "conference_center_pin_length = '$conference_center_pin_length', ";
//$sql .= "conference_center_order = '$conference_center_order', "; //$sql .= "conference_center_order = '$conference_center_order', ";
$sql .= "conference_center_description = '$conference_center_description', "; $sql .= "conference_center_description = '$conference_center_description', ";
$sql .= "conference_center_enabled = '$conference_center_enabled' "; $sql .= "conference_center_enabled = '$conference_center_enabled' ";
@@ -284,6 +289,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$dialplan_uuid = $row["dialplan_uuid"]; $dialplan_uuid = $row["dialplan_uuid"];
$conference_center_name = $row["conference_center_name"]; $conference_center_name = $row["conference_center_name"];
$conference_center_extension = $row["conference_center_extension"]; $conference_center_extension = $row["conference_center_extension"];
$conference_center_pin_length = $row["conference_center_pin_length"];
$conference_center_order = $row["conference_center_order"]; $conference_center_order = $row["conference_center_order"];
$conference_center_description = $row["conference_center_description"]; $conference_center_description = $row["conference_center_description"];
$conference_center_enabled = $row["conference_center_enabled"]; $conference_center_enabled = $row["conference_center_enabled"];
@@ -342,6 +348,17 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo " Pin Length:\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='conference_center_pin_length' maxlength='255' value=\"$conference_center_pin_length\">\n";
echo "<br />\n";
echo "Enter the required PIN length.\n";
echo "</td>\n";
echo "</tr>\n";
/* /*
if (if_group("admin") || if_group("superadmin")) { if (if_group("admin") || if_group("superadmin")) {
if ($action == "update") { if ($action == "update") {