[jitsi-dev] Create new contact


#1

Hi, for someone of you my issue will be obvious, but I can't figure out how
to add new contact to Jitsi. I was using methods like
UtilActivator.getContactListService().addNewContactToMetaContact(...),
GuiActivator.getContactList().addContact(...) and
ContactListUtils.addContact(...).

If anyone could provide some basic example how to perform adding contact in
Jitsi ?

Thanks in advance!

Best regards,
Lucas


#2

Unfortunately no one answered, so I decided to post method which should be
used to create new contact in Jitsi.

UtilActivator.getContactListService().createMetaContact(ProtocolProviderService,
MetaContactGroup, UserID);

I figured out that adding contact can be executed only when your SIP
account is Online (connected to server for instance FreeSWITCH). Thank you
very much for your attention :wink:

Best regards,
Łukasz Cieśluk

···

2014-05-20 12:16 GMT+02:00 Lukasz Ciesluk <lukaszciesluk@gmail.com>:

Hi, for someone of you my issue will be obvious, but I can't figure out
how to add new contact to Jitsi. I was using methods like
UtilActivator.getContactListService().addNewContactToMetaContact(...),
GuiActivator.getContactList().addContact(...) and
ContactListUtils.addContact(...).

If anyone could provide some basic example how to perform adding contact
in Jitsi ?

Thanks in advance!

Best regards,
Lucas