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 650112 - Allow to call phone number of contacts
Allow to call phone number of contacts
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.33.x
Other Linux
: Normal enhancement
: 3.2
Assigned To: empathy-maint
empathy-maint
: 655452 (view as bug list)
Depends on:
Blocks: 657438
 
 
Reported: 2011-05-13 14:53 UTC by Guillaume Desmottes
Modified: 2011-08-29 09:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
export empathy_account_has_uri_scheme_tel() (3.54 KB, patch)
2011-08-26 12:58 UTC, Guillaume Desmottes
none Details | Review
add EmpathyAccountSelectorDialog (10.24 KB, patch)
2011-08-26 12:58 UTC, Guillaume Desmottes
none Details | Review
Allow to call phone number of contacts (7.89 KB, patch)
2011-08-26 12:58 UTC, Guillaume Desmottes
none Details | Review

Description Guillaume Desmottes 2011-05-13 14:53:08 UTC
Now that we can access the addressbook using Folks, Empathy should be able to call contacts having a phone number using SIP accounts.

I don't think we should automatically display those contacts in the contact list, but maybe they could be displayed in live search?

We could also improve the "New call dialog" and display them there.

Also, do we need a "Use this account for phone call" account option as on the N900?
Comment 1 Travis Reitter 2011-06-01 23:46:17 UTC
(In reply to comment #0)
> Now that we can access the addressbook using Folks, Empathy should be able to
> call contacts having a phone number using SIP accounts.
> 
> I don't think we should automatically display those contacts in the contact
> list, but maybe they could be displayed in live search?

I assume you mean you'll want to filter out non-chat-/call-able Individuals. But any Individuals that have, eg, both EDS and Telepathy Personas should show up in the regular contact list. You don't need to show irrelevant details (eg, postal address) in any of your views, but you should use the EDS avatar, alias, etc.

EDS will be the primary backend, which will mean that user edits are stored there, so they should be preferred. If you just use the values on the Individual (rather than specifically iterating their TpfPersonas), you'll be doing the right thing automatically.

> Also, do we need a "Use this account for phone call" account option as on the
> N900?

Probably, since the source account can sometimes determine whether the other person will accept the call (in case you call from an account they're not familiar with, don't want to pick up from at work, etc.). And especially since calling accounts can sometimes have a monetary cost per call/time.
Comment 2 Guillaume Desmottes 2011-08-01 12:32:43 UTC
*** Bug 655452 has been marked as a duplicate of this bug. ***
Comment 3 robert 2011-08-24 17:10:32 UTC
I'd like to see these contacts as callable (although of course offline, unless merged with a callable & online contact) in the contact list too, when I do a type-ahead search.
Comment 4 robert 2011-08-24 17:11:20 UTC
(In reply to comment #3)
> I'd like to see these contacts as callable (although of course offline, unless
> merged with a callable & online contact) in the contact list too, when I do a
> type-ahead search.

Wait, that's exactly what you said. Yes; please do it. :D
Comment 5 Guillaume Desmottes 2011-08-25 09:44:47 UTC
(In reply to comment #0)
> Also, do we need a "Use this account for phone call" account option as on the
> N900?

This part is done: bug #657220
Comment 6 Guillaume Desmottes 2011-08-25 15:10:33 UTC
Let's start with the simple case: a TP contact linked with an EDS one, you right click on it from your contact list and want to call him.

Here is what I have so far: http://people.collabora.com/~cassidy/phone.jpg

My plan is to add a "Call ..." entry per phone number for this contact iff user has at least one "phone enabled" account connected. If not those are unsensitive.

I'm not sure how I should deal with the "more than one phone account connected" case. Add a sub-menu to pick the account to use to place the call? A popup asking once we have clicked?
Comment 7 Guillaume Desmottes 2011-08-26 12:58:01 UTC
Created attachment 194824 [details] [review]
export empathy_account_has_uri_scheme_tel()
Comment 8 Guillaume Desmottes 2011-08-26 12:58:06 UTC
Created attachment 194825 [details] [review]
add EmpathyAccountSelectorDialog

Dialog asking user to pick an account from a pre-defined list.
Comment 9 Guillaume Desmottes 2011-08-26 12:58:09 UTC
Created attachment 194826 [details] [review]
Allow to call phone number of contacts
Comment 10 Xavier Claessens 2011-08-29 08:23:32 UTC
Review of attachment 194826 [details] [review]:

::: libempathy-gtk/empathy-individual-menu.c
@@ +266,3 @@
+    }
+
+  g_list_free_full (accounts, (GDestroyNotify) g_object_ref);

tp_account_manager_get_valid_accounts() returns the container, so you don't have to unref them here. And you made a typo anyway with _ref instead of _unref.

@@ +281,3 @@
+  result = (accounts != NULL);
+
+  g_list_free_full (accounts, (GDestroyNotify) g_object_ref);

s/ref/unref/

@@ +355,3 @@
+    }
+
+  g_list_free_full (accounts, (GDestroyNotify) g_object_ref);

unref
Comment 11 Xavier Claessens 2011-08-29 08:24:54 UTC
Review of attachment 194825 [details] [review]:

::: libempathy-gtk/empathy-account-selector-dialog.c
@@ +90,3 @@
+          COL_NAME, tp_account_get_display_name (account),
+          -1);
+    }

gtk_list_store_insert_with_values() instead of _append() + _set()
Comment 12 Guillaume Desmottes 2011-08-29 08:53:38 UTC
All fixed in http://cgit.collabora.com/git/user/cassidy/empathy/log/?h=call-tel-650112
Comment 13 Guillaume Desmottes 2011-08-29 09:49:05 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.