[sync] Nokia C7-00 or symbian^3

Jan Schneider jan at horde.org
Tue Apr 19 21:53:54 UTC 2011


Zitat von Thomas Trethan <thomas at trethan.net>:

>> i have installed Horde Groupware Webmail Edition 1.29 and i have been
>> doing any test with Nokia E71, E72, E5, all the test were very well. I
>> could sync with SyncML the calendar, notes and guide. After this, i
>> tried sync with a Nokia C7-00 and i could sync notes and guide, but
>> the calendar do not sync, all the entries on the server are discarted
>> by the telephone.
>
> After doing some research I found the reason:
>
> in lib/SyncML/Sync.php in the constructor the parameter $clientURI  
> is "./c:calendar1"; in the devinf the device states "./c:calendar".  
> When Sync.php wants to get the contentType via  
> $device->getPreferredContentTypeClient() those two values don't  
> match and the Type is set defaulty to "text/calendar". According to  
> devinf the mobile phone wants "text/x-vcalendar" which doesn't  
> match. Therefore all received entries are ignored. Furthermore I  
> found out, that the device really seems to send "./c:calendar1" (see  
> debugging wbxml logs), but don't know why...

Which logs?

> However, here's a quick hack to solve the problem in  
> lib/SyncML/Device/Nokia.php: in the function convertServer2Client()  
> add the following code before writing to the log file:
>
> $di = $_SESSION['SyncML.state']->deviceInfo;
> if (stristr($di->Mod, 'C7-00') === false) {
> $contentType = 'text/x-vcalendar';
> }
>
> Regards, Tom
> --
> sync mailing list - Join the hunt: http://horde.org/bounties/#sync
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sync-unsubscribe at lists.horde.org


Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the sync mailing list