After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 351953 - Multiple phone numbers in LDAP address book
Multiple phone numbers in LDAP address book
Status: RESOLVED FIXED
Product: ekiga
Classification: Applications
Component: general
2.0.x
Other All
: Normal enhancement
: ---
Assigned To: Ekiga maintainers
Ekiga maintainers
Depends on: 543106
Blocks:
 
 
Reported: 2006-08-18 17:10 UTC by Jamie McClelland
Modified: 2008-10-11 05:30 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Rough patch (4.56 KB, patch)
2008-10-06 07:25 UTC, Howard Chu
needs-work Details | Review
Better patch (9.54 KB, patch)
2008-10-07 12:37 UTC, Howard Chu
none Details | Review
Minor tweak (9.54 KB, patch)
2008-10-07 12:49 UTC, Howard Chu
none Details | Review

Description Jamie McClelland 2006-08-18 17:10:32 UTC
Right now, if I specify "mobile" in the LDAP properties window for search attribute, the VOIP url is created when the users are listed - so I can click on the number and it is automatically dialed. This is great.

It would be even better if I could specify mobile, telephoneNumber, and homePhone, etc. and have all three show up as a clickable VOIP URL.
Comment 1 Howard Chu 2008-10-06 07:25:47 UTC
Created attachment 120001 [details] [review]
Rough patch

The attached patch retrieves multiple attributes from the LDAP server. Currently the set of attributes it returns is hard-coded, but when we come up with a reasonable UI for configuring things, it should be straightforward to clean this up.

I copied the menu presentation from evolution-contact.cpp. I think it's rather ugly, but don't know the code base well enough to suggest anything else at the moment.
Comment 2 Snark 2008-10-06 08:45:35 UTC
Uh... std::string* looks awful : what about a std::set<std::string> ?!
Comment 3 Howard Chu 2008-10-06 09:20:37 UTC
(In reply to comment #2)
> Uh... std::string* looks awful : what about a std::set<std::string> ?!
> 
Sure.

This was a really shoddy first attempt just to make sure I understood how the code was put together. The hardcoded attribute names are unnecessary too; I was following the ATTR_FOO..ATTR_NUMBER approach of the evolution-contact code but we can just parse the call_attribute parameter instead.
Comment 4 Snark 2008-10-06 09:37:11 UTC
We have a way to store a list of strings with forms ; you can for example have a look at lib/engine/presence/local-roster/local-presentity.cpp, where it's used to edit the groups a presentity belongs to.
Comment 5 Howard Chu 2008-10-07 12:37:56 UTC
Created attachment 120115 [details] [review]
Better patch

This patch overlaps some of the same areas that my patch for Bug#543106 changed, so you need to apply that patch first.

I've added a config node for the attribute to use for the contact name, but there's no UI to set it yet, so it will always default to "cn". You can of course use gconf-editor or something to override it.
Comment 6 Howard Chu 2008-10-07 12:49:15 UTC
Created attachment 120118 [details] [review]
Minor tweak

Had some leftover cruft from the previous attempt that wasn't needed any more.

By the way, should probably mark this bug as dependent on #543106 now; I don't have permission to do that myself.
Comment 7 Howard Chu 2008-10-07 12:53:34 UTC
(By the way, in case it wasn't clear, this version now treats the call_attribute config item as a comma-separated list of attribute names. So you can retrieve whatever phone number attributes you're interested in...)
Comment 8 Snark 2008-10-07 19:58:25 UTC
Ok, let's dig bug #543106 first.
Comment 9 Howard Chu 2008-10-10 20:35:51 UTC
Cool, you can mark this bug Fixed now too.
Comment 10 Snark 2008-10-11 05:30:13 UTC
Ok, thanks.