multiple jid with same account or rename jid

48 Views Asked by At

Hi I am working on requirement where I am using ejabbered and want to implement afunctionality in which

1: I want to rename the jid from '[email protected]' to '[email protected]'
OR
2: Multiple jids associated to same account , ex('[email protected]' and '[email protected]')
1

There are 1 best solutions below

0
Badlop On

1: I want to rename the jid from '[email protected]' to '[email protected]'

Right now nothing like that is implemented, as far as I know. If you use SQL storage, it wouldn't be much difficult for you to write some SQL code that traverses the corresponding database tables and replaces one JID with the other.

Of course, the contacts of those renamed accounts should logout and login to see the roster changes.

Relevant tables: users, last, rosterusers, rostergroups, spool, archive, archive_prefs, vcard, ...

2: Multiple jids associated to same account , ex('[email protected]' and '[email protected]')

Something like that is not implemented at all.