Blegh
This commit is contained in:
parent
bf6ed36211
commit
66be141aad
|
|
@ -223,6 +223,9 @@ class FreepbxManager {
|
||||||
const existingExtsSet = new Set(exts.map(ext => parseInt(ext.user.extension, 10)));
|
const existingExtsSet = new Set(exts.map(ext => parseInt(ext.user.extension, 10)));
|
||||||
const existingExts = Array.from(existingExtsSet).sort((a, b) => a - b);
|
const existingExts = Array.from(existingExtsSet).sort((a, b) => a - b);
|
||||||
|
|
||||||
|
// Filter out extensions that are less than the starting extension
|
||||||
|
const filteredExts = existingExts.filter(ext => ext >= startExt);
|
||||||
|
|
||||||
if (process.env.DEBUG == 'true') {
|
if (process.env.DEBUG == 'true') {
|
||||||
console.log(`Existing extensions: ${existingExts.join(', ')}`);
|
console.log(`Existing extensions: ${existingExts.join(', ')}`);
|
||||||
console.log(`Starting extension: ${startExt}`);
|
console.log(`Starting extension: ${startExt}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue