mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
bugfix #21: multiple teams target
This commit is contained in:
@@ -37,12 +37,13 @@ function compareTasks(t1, t2) {
|
||||
if (t1.type !== t2.type) return false;
|
||||
switch (t1.type) {
|
||||
case 'phone':
|
||||
return t1.number === t1.number;
|
||||
return t1.number === t2.number;
|
||||
case 'user':
|
||||
return t1.name === t2.name;
|
||||
case 'teams':
|
||||
return t2.name === t1.name;
|
||||
return t1.number === t2.number;
|
||||
case 'sip':
|
||||
return t2.sipUri === t1.sipUri;
|
||||
return t1.sipUri === t2.sipUri;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user