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:
1 parent
5e80461d12
commit
587511bd67
2 files changed
+3
-2
No files matched your search
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user