Hi All,
I've opened issue XX-6825 - the following scenario breaks unique ImId rule:
- user 201 without ImId is created - it will get the default ImId 201
- user 202 is created and ImId set with 201
This will result in user 201 and user 202 having the same ImId - 201.
This is due to the fact that the default ImId is calculated using ImAccount but
is not saved as user ImId.
A simple solution would be to make User.getImId to retrieve ImAccount.getImId
value if AddressBookEntry.getImId is empty - and to have the default ImId saved
in the database as well (checking if unique will resume to existing mechanism,
by selecting count of users with same ImId account)
A new column can be added in address_book_entry table if we need to store also
the default ImId value.
Please let me know if you see any drawback on this,
Thanks,
George
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/