Bug 8508 - Integration with System Contacts isn't working
: Integration with System Contacts isn't working
Status: NEW
Product: The One Ring
General
: unspecified
: N900 Maemo
: Low normal with 7 votes (vote)
: ---
Assigned To: Ed Page
: general
:
:
: int-160586 int-160585
:
  Show dependency tree
 
Reported: 2010-01-25 20:15 UTC by Ed Page
Modified: 2010-04-06 06:21 UTC (History)
2 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Ed Page (reporter) 2010-01-25 20:15:02 UTC
SOFTWARE VERSION:
0.7.0-4

Sofia-Sip and Spirit-Skype allow you to use a contacts phone number with their
CM's.  As far as I can tell, The One Ring does the same thing.  For some reason
it isn't working

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7)
Gecko/20100106 Ubuntu/9.04 (jaunty) Shiretoko/3.5.7
Comment 1 Ed Page (reporter) 2010-01-30 02:34:54 UTC
I'm at a loss as to what needs to be done.  I posted on maemo-developers to see
if anyone has a clue
Comment 2 Ed Page (reporter) 2010-02-02 15:42:02 UTC
Some refreshers for trying to talk to libmcclient
http://talk.maemo.org/showthread.php?p=506822#post506822
http://wiki.maemo.org/PyMaemo/Accessing_APIs_without_Python_bindings
Comment 3 Ed Page (reporter) 2010-02-02 15:43:33 UTC
In explanation of my previous links I added
"""
Hi,
Try to add "SecondaryVCardFields=TEL" to the main section of your profile.
Or you could set/unset it for an account at run-time using libmcclient.

-Artem
"""

I tried the SecondaryVCardFields and it didn't seem to do anything.  Next I'm
going to have to write libmcclient bindings and try it that way.  This isn't
going to be fun which is why I haven't done it yet.
Comment 4 Ed Page (reporter) 2010-03-03 04:56:54 UTC
Thought I'd link to my maemo-dev post from a couple months ago
http://lists.maemo.org/pipermail/maemo-developers/2010-January/024272.html
Threading got a bit messed up so here is the reply
http://lists.maemo.org/pipermail/maemo-developers/2010-January/024276.html

I need to follow up with this.
Comment 5 Ed Page (reporter) 2010-03-06 23:25:57 UTC
Made another query on the maemo-dev mailing list about why this isn't working
Comment 6 MKazia 2010-03-09 16:10:47 UTC
I'm guessing this has something to do with the Configuration UI 'haze-plugin'
that is used for TOR. The Configuration UI used for SIP is 'osso-accounts'
which has an advanced option 'Use for telephone numbers'.
Does anyone know where we can take a peek at source for osso-accounts ?
Comment 7 Ed Page (reporter) 2010-03-09 16:14:45 UTC
(In reply to comment #6)
> I'm guessing this has something to do with the Configuration UI 'haze-plugin'
> that is used for TOR. The Configuration UI used for SIP is 'osso-accounts'
> which has an advanced option 'Use for telephone numbers'.
> Does anyone know where we can take a peek at source for osso-accounts ?

Thats a very good point.  You should be able to get this feature through
setting a flag in ".profile" file.  You can also set it through DBus (in some
magic incantation that I am unaware of but has been wrapped in a library that
doesn't have Python bindings).  I wouldn't be surprised if osso-accounts is
handling setting this flag through dbus.  I think RTComm (including
osso-accounts) is one of those things that is closed source.

Soon (tonight?) I'll probably give up waiting and just file a bug against them
for not respecting the setting in my ".profile" file.
Comment 8 MKazia 2010-03-09 18:45:07 UTC
(In reply to comment #7)
> You can also set it through DBus (in some
> magic incantation that I am unaware of but has been wrapped in a library that
> doesn't have Python bindings).  I wouldn't be surprised if osso-accounts is
> handling setting this flag through dbus.  I think RTComm (including
> osso-accounts) is one of those things that is closed source.

If you are looking for the code in libmcclient for
mc_account_compat_set_secondary_vcard_fields so that you can code in python
maybe this will help.

TpProxyPendingCall *
mc_account_compat_set_secondary_vcard_fields (McAccount *account,
                          const gchar * const *fields,
                          tp_cli_dbus_properties_callback_for_set callback,
                          gpointer user_data,
                          GDestroyNotify destroy,
                          GObject *weak_object)
{
    GValue value = { 0 };

    g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL);
    g_value_init (&value, G_TYPE_STRV);
    g_value_set_static_boxed (&value, fields);
    return tp_cli_dbus_properties_call_set (account, -1,
    MC_IFACE_ACCOUNT_INTERFACE_COMPAT, "SecondaryVCardFields", &value,
    callback, user_data, destroy, weak_object);
}
Comment 9 Ed Page (reporter) 2010-03-10 05:26:09 UTC
Thanks.  I'll look into that

I don't know why I didn't just run "dbus-monitor" on restarting my SIP account.
 I'll have to also give that a try.
Comment 10 Ed Page (reporter) 2010-03-13 17:44:05 UTC
*sigh* so by manually setting that property (because what's the point of
reading it from a config file?) I see that its only applying it to one of my
actions, calls, and not sms.  I've set only the chat field and it doesn't take.

Making calls with system contacts should appear in 0.8.6
Comment 11 Ed Page (reporter) 2010-03-13 18:16:54 UTC
While waiting on 9519 and 9520 and with the fact that at least calls are now
working (to appear in 0.8.6), I'm dropping the priority.