diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php index ad79a9acde..dff6fdda6b 100644 --- a/app/extensions/app_config.php +++ b/app/extensions/app_config.php @@ -191,6 +191,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'call_timeout'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'call_group'; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'callgroup'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index cea0fb0e10..a4bed538d5 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -87,6 +87,7 @@ else { $range = check_str($_POST["range"]); $autogen_users = check_str($_POST["autogen_users"]); $toll_allow = check_str($_POST["toll_allow"]); + $call_timeout = check_str($_POST["call_timeout"]); $call_group = check_str($_POST["call_group"]); $hold_music = check_str($_POST["hold_music"]); $auth_acl = check_str($_POST["auth_acl"]); @@ -268,6 +269,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if (permission_exists('extension_toll')) { $sql .= "toll_allow, "; } + if (strlen($call_timeout) > 0) { + $sql .= "call_timeout, "; + } $sql .= "call_group, "; $sql .= "hold_music, "; $sql .= "auth_acl, "; @@ -315,6 +319,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if (permission_exists('extension_toll')) { $sql .= "'$toll_allow', "; } + if (strlen($call_timeout) > 0) { + $sql .= "'$call_timeout', "; + } $sql .= "'$call_group', "; $sql .= "'$hold_music', "; $sql .= "'$auth_acl', "; @@ -443,6 +450,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if (permission_exists('extension_toll')) { $sql .= "toll_allow = '$toll_allow', "; } + if (strlen($call_timeout) == 0) { + $sql .= "call_timeout = '$call_timeout', "; + } $sql .= "call_group = '$call_group', "; $sql .= "hold_music = '$hold_music', "; $sql .= "auth_acl = '$auth_acl', "; @@ -621,6 +631,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $vm_keep_local_after_email = $row["vm_keep_local_after_email"]; $user_context = $row["user_context"]; $toll_allow = $row["toll_allow"]; + $call_timeout = $row["call_timeout"]; $call_group = $row["call_group"]; $hold_music = $row["hold_music"]; $auth_acl = $row["auth_acl"]; @@ -640,6 +651,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //set the defaults if (strlen($limit_max) == 0) { $limit_max = '5'; } + if (strlen($call_timeout) == 0) { $call_timeout = '30'; } //begin the page content require_once "includes/header.php"; @@ -1227,10 +1239,21 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; - echo " Call Group:\n"; + echo " Call Timeout:\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo "
\n"; + echo "Enter the call timeout.\n"; + echo "\n"; + echo "\n"; + + echo "\n"; + echo "\n"; + echo " Call Group:\n"; + echo "\n"; + echo "\n"; + echo " \n"; echo "
\n"; echo "Enter the user call group here. Groups available by default: sales, support, billing\n"; echo "\n"; diff --git a/app/extensions/resources/classes/extension.php b/app/extensions/resources/classes/extension.php index a71ada6da2..5682fe1ff2 100644 --- a/app/extensions/resources/classes/extension.php +++ b/app/extensions/resources/classes/extension.php @@ -235,7 +235,9 @@ $xml .= " \n"; break; } - + if (strlen($row['call_timeout']) > 0) { + $xml .= " \n"; + } $xml .= " \n"; $xml .= " \n";