We have our FreePBX system syncing with our Active Directory server, which everything seems to be working just fine there, new people get added, deleted people get removed, etc.
Recently we began to notice these Entry items that show up at the top of the list. there are 6 in total. In freepbx there are no corresponding items that match the numbers. They do not represent the extension. When you view the details they are empty, you can not dial to the entry. We are using Digium D60 phones. ALL of the phones show the same items. Has anyone came across this? I have skimmed the forums the last couple of weeks and havent came up with anything resembling this issue.
I have found the issue and have been able to resolve it.
Cause of issue:
This may or may not be limited to the Active Directory Sync, but, when a user is removed from the AD server BEFORE they are removed from the directory listings, they will not be cleared out of the directory lists. Instead you will have an orphaned entry. The ID of the user in the database is the Entry Number shown in the image above.
Resolution:
Once this has occured the only way I was able to remove the entries was to use the cli with an account with access to the asterisk database.
Example mysql code:
DELETE FROM asterisk.contactmanager_group_entries WHERE (id = ‘130’);
Moving forward, to prevent this from happening would be to make sure you have removed the user from any directory groups / listings BEFORE removing them from Active Directory.