fix(cluster): purge subscription_persistence in AstDB replication to prevent dead BLF dialogues

This commit is contained in:
sorcier committed 2026-11-07 01:49:10 +01:00
1 parent d1d42f75b5
commit 4bd0f8b095
3 files changed
+10 -2

No files matched your search

+2
View File
@@ -527,6 +527,8 @@ class ClusterManager
if (file_exists($tmpAstdb) && filesize($tmpAstdb) > 0) {
$integrity = trim(shell_exec("sqlite3 " . escapeshellarg($tmpAstdb) . " 'PRAGMA integrity_check;' 2>/dev/null") ?? '');
if ($integrity === 'ok') {
// Purger les souscriptions persistantes PJSIP de l'archive (incompatibles entre instances Asterisk)
shell_exec("sqlite3 " . escapeshellarg($tmpAstdb) . " \"DELETE FROM astdb WHERE key LIKE '/subscription_persistence/%';\" 2>/dev/null || true");
$hasAstdb = true;
} else {
@unlink($tmpAstdb);