[#6744] Phone numbers not syncronized
Summary Phone numbers not syncronized
Queue Turba
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners Jan Schneider <jan (at) horde (dot) org>
Requester anders (dot) lund (at) uninett (dot) no
Created 05/23/2008 (137 days ago)
Due
Updated 06/12/2008 (117 days ago)
Assigned 05/25/2008 (135 days ago)
Resolved 06/12/2008 (117 days ago)
Attachments
Milestone
Patch No

History
06/12/2008 CVS Commit Comment #12 Reply to this comment
06/12/2008 Jan Schneider Comment #11
State ⇒ Resolved
Reply to this comment
Fixed for Turba 2.2.1.
06/12/2008 CVS Commit Comment #10 Reply to this comment
06/12/2008 CVS Commit Comment #9 Reply to this comment
Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/turba/lib/Driver.php?r1=1.196&r2=1.197&ty=u
06/05/2008 anders (dot) lund (at) uninett (dot) no Comment #8 Reply to this comment
This seems to work better, yes. From Nokia N95 this gives:

"Tel. (home)" on N95 <-> "Home Phone" in Horde
"Tel. (business)" on N95 <-> "Work Phone" in Horde

It partly seems to work if I include Thunderbird Addressbook in this 
scenario as well. But some strange behaviour seem to be present when I 
do this. (Work Phone not present after I've done N95 -> Horde, and 
then Horde -> Thunderbird for example.) This might be because of some 
other problem. Don't know yet, and haven't had any time to look more 
into that.

So closer to what I want. Good.

- Anders

Same problem here with Nokia E51.

It has to do with the "VOICE" parameter, that turba/lib/Driver does
not understand.

Insert the following code at line 1524, before "} elseif
(count($item['params']) <= 1) {"

                 } elseif (isset($item['params']['VOICE'])) {
                     if (isset($item['params']['WORK'])) {
                         $hash['workPhone'] = $item['value'];
                     } elseif (isset($item['params']['HOME'])) {
                         $hash['homePhone'] = $item['value'];
                     } else {
                         $hash['phone'] = $item['value'];
                     }
06/04/2008 jbliesener (at) bliesener (dot) de Comment #7 Reply to this comment
The same file turba/lib/Driver.php contains another error that 
prohibits importing home telephone numbers from the Motorola V3:

                 } elseif (count($item['params']) <= 1) {
                     // There might be e.g. SAT;WORK which must not
                     // overwrite WORK.
                     if (isset($item['params']['WORK'])) {
                         $hash['workPhone'] = $item['value'];
                     } elseif (isset($item['params']['WORK'])) {   // 
<--- THIS SHOULD BE 'HOME'
                         $hash['homePhone'] = $item['value'];
                     } elseif (count($item['params']) == 0) {
                         $hash['phone'] = $item['value'];
                     }

Regards, Jörg
                 }
                 break;

06/04/2008 jbliesener (at) bliesener (dot) de Comment #6 Reply to this comment
It has to do with the "VOICE" parameter, that turba/lib/Driver does
not understand.
Sorry, I was talking about turba/lib/Driver.php


06/04/2008 jbliesener (at) bliesener (dot) de Comment #5 Reply to this comment
Same problem here with Nokia E51.

It has to do with the "VOICE" parameter, that turba/lib/Driver does 
not understand.

Insert the following code at line 1524, before "} elseif 
(count($item['params']) <= 1) {"

                 } elseif (isset($item['params']['VOICE'])) {
                     if (isset($item['params']['WORK'])) {
                         $hash['workPhone'] = $item['value'];
                     } elseif (isset($item['params']['HOME'])) {
                         $hash['homePhone'] = $item['value'];
                     } else {
                         $hash['phone'] = $item['value'];
                     }

05/25/2008 Jan Schneider Comment #4
Queue ⇒ Turba
Reply to this comment
This is a Turba issue.
05/25/2008 Jan Schneider Comment #3
State ⇒ Assigned
Assigned to Jan Schneider
Reply to this comment
Not a duplicate. The other bug is about converting from SIF-C to vCard.
05/25/2008 Jan Schneider Comment #2
State ⇒ Duplicate
Reply to this comment
Duplicate of bug 6574.
05/23/2008 anders (dot) lund (at) uninett (dot) no Comment #1
Patch ⇒
Milestone ⇒
Queue ⇒ SyncML
Summary ⇒ Phone numbers not syncronized
Type ⇒ Bug
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Reply to this comment
I've been trying to use syncml to syncronize contacts, but it doesn't 
seem to work with other phone numbers than cell phone. Using Horde 
Groupware &#65279;Webmail Edition 1.1 RC4.

/tmp/sync/data.txt has:

Input received from client (text/x-vcard):
BEGIN:VCARD
VERSION:2.1
REV:20080523T071425Z
N:B;A;;;
TEL;CELL:1
TEL;VOICE:4
X-CLASS:private
TEL;CELL;HOME:2
TEL;CELL;WORK:3
TEL;VOICE;HOME:5
TEL;VOICE;WORK:6
END:VCARD

(using SyncML library from CVS to get more output in data.txt)

This is when a contact has been created on a Nokia N95. After sync 
only cellPhone seems to be handled correctly.