chore(ui): replace specific examples with generic placeholders and generalize phone and gateway brands
This commit is contained in:
1 parent
b3c98834c8
commit
a308f5d0ed
5 files changed
+50
-50
No files matched your search
+3
-3
@@ -1145,7 +1145,7 @@ try {
|
||||
}
|
||||
if ($registration_mode === 'receive') {
|
||||
if ($username === '' || $secret === '') {
|
||||
throw new InvalidArgumentException("En mode Réception (ex: passerelle Grandstream HT813 / Livebox), l'Identifiant (Username) et le Mot de passe SIP sont requis pour authentifier la passerelle.");
|
||||
throw new InvalidArgumentException("En mode Réception (ex: passerelle Grandstream HT813, Cisco SPA...), l'Identifiant (Username) et le Mot de passe SIP sont requis pour authentifier la passerelle.");
|
||||
}
|
||||
} else {
|
||||
if ($host === '') {
|
||||
@@ -1294,7 +1294,7 @@ try {
|
||||
$ami->reloadPjsipAndDialplan();
|
||||
} catch (\Throwable $e) {}
|
||||
|
||||
$displayHost = $host !== '' ? "{$host}:{$port}" : "Passerelle locale / HT813";
|
||||
$displayHost = $host !== '' ? "{$host}:{$port}" : "Passerelle locale / FXO";
|
||||
echo json_encode([
|
||||
'success' => true,
|
||||
'message' => "Trunk SIP « {$name} » ({$displayHost}) sauvegardé avec tous ses paramètres PJSIP.",
|
||||
@@ -1455,7 +1455,7 @@ try {
|
||||
$enabled = isset($payload['enabled']) ? (int)!empty($payload['enabled']) : 1;
|
||||
|
||||
if ($name === '') {
|
||||
throw new InvalidArgumentException("Le nom de la Route Sortante est obligatoire (ex: OVH, Livebox, Emergency).");
|
||||
throw new InvalidArgumentException("Le nom de la Route Sortante est obligatoire (ex: National, Mobile, Secours, Emergency).");
|
||||
}
|
||||
|
||||
$trunkSeqRaw = is_array($payload['trunk_sequence'] ?? null) ? $payload['trunk_sequence'] : [];
|
||||
|
||||
Reference in new issue
Block a user