Re: CardDAV: synchronize additional phone numbers

Dominik Erdmann <[email protected]> Mon, 16 Mar 2015 09:46:47 +0100
Newsgroups gmane.comp.horde.turba
Message-ID <[email protected]>
Hey,

Am 12.03.2015 um 13:31 schrieb Dominik Erdmann:
>
>> how can I add additional phone numbers which shall be synchronized to
>> Android's address book via CardDAV (using CardDAV-Sync by Marten Gajda)?
>> Only the numbers of the fields homePhone, workPhone, cellPhone will be
>> synchronized. But the fields homePhone2 and workPhone2 will be ignored.
>>
>> I'm using the backends.local.php with the following fields (approximate
>> derived from the default config):
>>
>> [...]
>> 'homePhone' => 'object_homephone',
>> 'homePhone2' => 'object_homephone2',
>> 'homeFax' => 'object_homefax',
>> 'workPhone' => 'object_workphone',
>> 'workPhone2' => 'object_workphone2',
>> 'cellPhone' => 'object_cellphone',
>> [...]
>
> For test purpose I modified the driver turba\lib\Driver.php by adding
> following code (see attachment).
> Now I have the second work phone number in my Android address book
> included.
> Please, can someone explain why this feature isn't included in Turba? Is
> it allowed in vCard spec to add additional numbers with the same type?
>
> What does the "safety mechanism" means which I deleted:
>
> if ($fields &&
>      (!isset($fields['TEL']) ||
>       (isset($fields['TEL']->Params['TYPE']) &&
>        !$this->_hasValEnum($fields['TEL']->Params['TYPE']->ValEnum,
> 'WORK')))) {
>       break;
> }

I found out the feature of the field 'workCellPhone'. So I don't need 
the field 'workPhone2'.

=> The problem is solved!


Dominik
-- 
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]