[#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 (1825 days ago)
Due
Updated 06/12/2008 (1805 days ago)
Assigned 05/25/2008 (1823 days ago)
Resolved 06/12/2008 (1805 days ago)
Attachments
Milestone
Patch No

History
06/12/2008 10:09:56 PM Jan Schneider Comment #11
State ⇒ Resolved
Reply to this comment
Fixed for Turba 2.2.1.
06/12/2008 09:50:16 PM 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 09:49:17 AM 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

[Hide Quoted Text]
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/05/2008 02:49:52 AM 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/05/2008 12:50:36 AM 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/05/2008 12:49:13 AM 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 08:56:48 PM Jan Schneider Comment #4
Queue ⇒ Turba
Version ⇒ HEAD
Reply to this comment
This is a Turba issue.
05/25/2008 08:55:56 PM 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 02:23:30 PM Jan Schneider Comment #2
State ⇒ Duplicate
Reply to this comment
Duplicate of bug 6574.
05/23/2008 10:04:34 AM anders (dot) lund (at) uninett (dot) no Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ Phone numbers not syncronized
Type ⇒ Bug
Priority ⇒ 2. Medium
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.