kusuzhu / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

Call history (de: Anrufliste) -> address book #698

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
HTC Desire, Froyo 2.2

What steps will reproduce the problem?
1. Call anybody, that exists in you addressbook
2. or dail a number existing in Adressbook
3. While calling/talking Sipdriod shows the contact name out of Adressbook, 
instead of  the number.
4. afterwards, in the call history there is allways just the number as an new, 
unknown contact.

What is the expected output? What do you see instead?
expected: contact names in the call history
instead: just the number as an new, unknown contact

What version of the product are you using? On what device/operating system?
HTC Desire, Froyo

Which SIP server are you using? What happens with PBXes?
PBXes

Which type of network are you using?
all

Original issue reported on code.google.com by Martin.S...@gmail.com on 16 Oct 2010 at 10:35

GoogleCodeExporter commented 8 years ago
Hi, I know how to fix it programatically.
If any dev is reading this -

I had the same issue on my HTC Desire [Froyo, LeeDroid 2.2d ROM]

in class: org.sipdroid.sipua.phone.Connection
go to method: addCall()

1. Change
 ContentValues values =  new ContentValues(5);
to:
 ContentValues values = null;
 if (ci != null) {
     values = new ContentValues(9);
 } else {
      values = new ContentValues(5);
 }

within 
if (ci != null) { .... }
add:
values.put(Data.RAW_CONTACT_ID, ci.person_id);

It'll make the entry in the Calls table to refer to it's data in the Contacts 
table and thus name'll be displayed.

Original comment by maximus....@gmail.com on 2 Nov 2010 at 9:34

GoogleCodeExporter commented 8 years ago
up

this one is still verry disturbing.

Original comment by Martin.S...@gmail.com on 20 Nov 2010 at 9:32

GoogleCodeExporter commented 8 years ago
No news on this issue in many months now ... Has this drifted out of sight, or 
is it really very complicated ?

Original comment by hm.gglm...@gmail.com on 2 Jul 2011 at 5:50

GoogleCodeExporter commented 8 years ago
Why cant you fix this when you've been provided with the patch above!?

This is sooo frustrating... 

Original comment by jonas.fa...@gmail.com on 9 Dec 2011 at 9:09

GoogleCodeExporter commented 8 years ago
Some feedback about Maximus proposal from a test we did on CSipSimple 
(http://code.google.com/p/csipsimple/issues/detail?id=1491).
This solution doesn't work. The raw_contact_id is not a field of the call log 
database (at least on HTC Desire S). 
You're maybe right about the fact that HTC did a crappy database extension on 
call logs. But since we have not the source code of HTC sense we can't guess 
what magical parameter they expect.

To all others, don't blame sipdroid or any other opensource sip application 
about the fact we're not able to fix that. 
Blame HTC for making a closed source changes to android that break the official 
android SDK way to manage call logs. The only thing we can do is trying to 
workaround HTC crappy stuff. If somebody has another proposal to patch things 
I'll be pleased to test it in CSipSimple and I'll of course report here so that 
SipDroid developers can also include the fix in SipDroid :)

Original comment by r3gis...@gmail.com on 25 Feb 2012 at 12:42

GoogleCodeExporter commented 8 years ago

Original comment by pmerl...@googlemail.com on 17 May 2012 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by pmerl...@googlemail.com on 21 May 2012 at 12:06