fix(trunks): ne pas forcer from_user si vide pour preserver le Caller ID Name dans From (v1.6.4)

This commit is contained in:
sorcier committed 2026-11-05 12:21:25 +01:00
1 parent 5e80461d12
commit 587511bd67
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -295,7 +295,7 @@ class ConfigGenerator
}
$context = trim((string)($trunk['context'] ?? 'from-external')) ?: 'from-external';
$fromUser = trim((string)($trunk['from_user'] ?? '')) ?: $username;
$fromUser = trim((string)($trunk['from_user'] ?? ''));
$fromDomain = trim((string)($trunk['from_domain'] ?? '')) ?: $host;
$callerId = trim((string)($trunk['outbound_callerid'] ?? ''));
$sendPai = ((int)($trunk['send_pai'] ?? 1) === 1) ? 'yes' : 'no';