SIP Profiles: Added Enabled select box to manage the profile state.

This commit is contained in:
Nate Jones
2015-05-02 04:53:45 +00:00
parent b442960964
commit 3d654ad634
5 changed files with 77 additions and 8 deletions
+10 -1
View File
@@ -85,7 +85,7 @@
case "internal":
$sip_profile_description = "The Internal profile by default requires registration which is used by the endpoints. ";
$sip_profile_description .= "By default the Internal profile binds to port 5060. ";
break;
break;
case "internal-ipv6":
$sip_profile_description = "The Internal IPV6 profile binds to the IP version 6 address and is similar to the Internal profile.\n";
break;
@@ -181,4 +181,13 @@
}
}
//if empty, set sip_profile_enabled = true
if ($domains_processed == 1) {
$sql = "update v_sip_profiles set ";
$sql .= "sip_profile_enabled = 'true' ";
$sql .= "where sip_profile_enabled is null ";
$sql .= "or sip_profile_enabled = '' ";
$db->exec(check_sql($sql));
unset($sql);
}
?>