[jitsi-dev] patch proposal: external contact search engine


#1

Hi,

I'd like to post a patch for Jitsi on JIRA regarding a small enhancement to the contact search field, ei., the possibility to launch an external command with the user's search string in order to lookup more contacts (or more details regarding a contact) than with the built-in search methods (ldap, etc.).

Can I open a JIRA feature request for this?
(the patch may be useful to other users)

Thanks,

Vieri


#2

Hey Vieri,

Nice! So basically you defined a new contact source, right?

Could you please be more specific as to how it works? What is the format
that contacts need to be returned in?

Emil

···

On 10.05.12 12:54, Vieri wrote:

Hi,

I'd like to post a patch for Jitsi on JIRA regarding a small enhancement to the contact search field, ei., the possibility to launch an external command with the user's search string in order to lookup more contacts (or more details regarding a contact) than with the built-in search methods (ldap, etc.).

Can I open a JIRA feature request for this?
(the patch may be useful to other users)

Thanks,

Vieri


#3

Hi Emil,

Actually, it's a lot simpler than you think.
However, sometimes simplicity is what some sys admins need ;-).

Basically, add a new icon in the search field. When clicked, launch a user-defined program and pass it as argument the user's search string.
Do whatever you want with that search string (eg., launch a web browser and call a PHP script which in turn displays the results and phone numbers href'ed as sip: URIs, etc.).

Anyway, I posted the following feature request on JIRA:

http://java.net/jira/browse/JITSI-1041

I attached icons, patches and an example screenshot.

Hope it's useful to someone.

Thanks,

Vieri

···

--- On Thu, 5/10/12, Emil Ivov <emcho@jitsi.org> wrote:

Nice! So basically you defined a new contact source, right?

Could you please be more specific as to how it works? What
is the format
that contacts need to be returned in?


#4

Nice! So basically you defined a new contact source, right?

Could you please be more specific as to how it works? What
is the format
that contacts need to be returned in?

Hi Emil,

Actually, it's a lot simpler than you think.
However, sometimes simplicity is what some sys admins need ;-).

Basically, add a new icon in the search field. When clicked, launch a user-defined program and pass it as argument the user's search string.
Do whatever you want with that search string (eg., launch a web browser and call a PHP script which in turn displays the results and phone numbers href'ed as sip: URIs, etc.).

Anyway, I posted the following feature request on JIRA:

http://java.net/jira/browse/JITSI-1041

I attached icons, patches and an example screenshot.

Hope it's useful to someone.

I understand. Thanks for explaining and thanks for contributing!

I think this could be a very useful idea but I'd really prefer it to be
implemented as a contact source. This won't prevent people from
launching browsers if they wish but it would allow for a much better
Jitsi integration as the Users wouldn't need to push a button and the
results would automatically appear in the contact list.

Anyone interested in implementing this?

Emil

P.S. I've updated the issue with the above comment

···

On 11.05.12 17:13, Vieri wrote:

--- On Thu, 5/10/12, Emil Ivov <emcho@jitsi.org> wrote:

Thanks,

Vieri

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
Jitsi
emcho@jitsi.org PHONE: +33.1.77.62.43.30
http://jitsi.org FAX: +33.1.77.62.47.31


#5

You mean something like a built-in JSON or AJAX querying module that contacts an external web service each time the user types in the search field. And when the result comes back in, display it within the current built-in contact tree (supposing elements like contact pictures can be displayed) or within a new built-in embedded HTML browser.

That could be interesting...

Thanks,

Vieri

···

--- On Fri, 5/11/12, Emil Ivov <emcho@jitsi.org> wrote:

I think this could be a very useful idea but I'd really
prefer it to be
implemented as a contact source. This won't prevent people
from
launching browsers if they wish but it would allow for a
much better
Jitsi integration as the Users wouldn't need to push a
button and the
results would automatically appear in the contact list.


#6

I think this could be a very useful idea but I'd really prefer it
to be implemented as a contact source. This won't prevent people
from launching browsers if they wish but it would allow for a much
better Jitsi integration as the Users wouldn't need to push a
button and the results would automatically appear in the contact
list.

You mean something like a built-in JSON or AJAX querying module that
contacts an external web service each time the user types in the
search field. And when the result comes back in, display it within
the current built-in contact tree (supposing elements like contact
pictures can be displayed) or within a new built-in embedded HTML
browser.

Jitsi already has a "Contact Source" mechanism that works this way.
LDAP, Microsoft Outlook, Google Contacts, Apple Address Book, and the
Call History, are all integrated via this mechanism.

All we need to do for this to work would be to define a syntax that the
external command should return (we could reuse one of the existing ones)
and then just execute it from within a class that implements "Contact
Source"

Cheers,
Emil

···

On 11.05.12 17:30, Vieri wrote:

--- On Fri, 5/11/12, Emil Ivov <emcho@jitsi.org> wrote:

That could be interesting...

Thanks,

Vieri

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
Jitsi
emcho@jitsi.org PHONE: +33.1.77.62.43.30
http://jitsi.org FAX: +33.1.77.62.47.31