funambol / syncML progress?

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

philjohn
Posts: 28
Joined: Thu Jan 04, 2007 2:31 am
Contact:

Postby philjohn » Fri Jul 27, 2007 5:11 am

Thanks tomster, I don't know about the "brainy mug" part, I just love a challenge, and getting my head around the funambol API docs was quite fun. Plus I've wanted to sync to my Windows Mobile device since I got it in February 8)

The current progress is that we have partial (quick) syncs working from server->phone. The phone->server bit has been quite tricky as the libraries funambol provide for converting/extracting data from ical had a couple of bugs in (understandable as they are undergoing quite massive refactoring). I've reported them to funambol, but in the meantime have put in some fixes as Funambol provide the source in CVS.

That's taken the best part of three days to work on, but now today I can get on with adding items into scalix, at which point Calendar sync will be complete.

Contact sync should be much simpler, as vCard is an easier format than vCalendar/iCalendar (with there only being one "real" version of it).

Still hope to have an early alpha ready this evening/weekend for people to play with (provided real life doesn't get in the way first! I'm lucky my boss wants this functionality and is letting me work on the project :D

philjohn
Posts: 28
Joined: Thu Jan 04, 2007 2:31 am
Contact:

Call for testers

Postby philjohn » Fri Jul 27, 2007 10:55 am

Ok,

we've now got calendars converting from various formats into the Funambol internal data model (to extract data that scalix needs in the header of the message) so adding should only be about an hour away.

We then just need updating and merging (merging is pretty easy since Funambol data model provides methods to do it for us).

What does this all mean?

It means we're getting very close to having a working funambol connector and I need testers.

If you'd like to be a tester please PM me with your details (version of scalix, devices you will be using to sync etc.). Please only PM if you can do some serious testing and feed back on any problems you find as I'm sure there will be differences in setup that could throw spanners into the works somewhat. You should also be fairly well versed in setting up a funambol server and installing a connector module, as I can't really help with that (so many variables, but there's documentation on the funambol site that should guide you, if in doubt find a windows box and use the installer, that's what I've develped on).

It should also be noted that you should really use a "sacrificial" account to work with as I can offer no warranty that this will not destroy your data (it hasn't so far for me, but YMMV).

phil.

---------------------------------------------------------------------------------------------
Update:

Adding took a little longer than anticipated, both because real life got in the way and because there are a few niggly little bugs in the package Funambol provide to convert between various calendar formats (SIF (internal funambol XML format), iCal and vCal).

In the end I've made a fork of the funambol pim conversion library to make my changes in (I'll be submitting them back upstream at some point as well).

I've just run a few tests on the latest build and we have the following working, syncing from server to phone (new items), syncing from phone to server (new items), deleting items on server updating on phone. Deleting on phone is not deleting on the server, but I expect it's because Funambol does a "soft" delete (i.e., only "delete" for that single client device).

All that's left is updating (not too hard), and merging (slightly harder, but the library I've forked apparently handles this internally, we'll have to see if it needs a few fixes).

Once that's done the calendaring side is complete, and I just have to override a few methods for the contacts side (contacts being easier than calendars, no timezones and alarms to deal with!) and we've got a working connector.

I've requested a sourceforge account for the effort so that we can keep bug reports in an organised place, plus people can get involved if they so wish :wink:

afassl
Posts: 31
Joined: Sun Jan 14, 2007 8:17 am
Location: Cologne, Germany
Contact:

Scalix & Funambol running on one Server

Postby afassl » Thu Aug 02, 2007 10:03 am

Hello,

just got my Funambol Linux-Package at
http://www.funambol.com/opensource/downloads.html

Installation was very easy - but be aware - both Scalix Webaccess and Funambol are using by default the same tomcat ports. Scalix is more complex in its configuration, so I'll recommend to modify the funambol setup. So don't start funambol after installation!!!!! Nor Scalix neither Funambol will function after the installation.

Very fast walk-through (ever used them for adventures? :-) ), at least a basic knowlegde of the how-about of a tomcat server is a big advantage.

1) cd /opt/Funambol/tools/tomcat/conf
2) edit server.xml
3) change the shutdown port from 8005 to 8007
4) change the ajp 1.3 connector ports from 8009 (redirect 8443) to 8010 (redirect 8445)
5) change the connector port from 8080 (redirect 8443) to 8081 (redirect 8445)
6) don't forget to change in the admin tool the port from 8080 to 8081

It is possible to let your clients talk via an apache server to funambol, you only need to configure a virtual host like this:
<VirtualHost <server-ip> >
servername <host.domain.tld> (your dns name)
ProxyPass /funambol ajp://host.domain.tld:8010/funambol/
LogLevel Warn
ErrorLog /var/log/httpd/funambol_error (or where you want your logs)
CustomLog /var/log/httpd/funambol_access combined
</VirtualHost>

Restart your apache, that's it.

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Postby phuel » Thu Aug 02, 2007 10:36 am

Were you even able to sync your contacts and calendar? Email just works fine on my WM6 device

philjohn
Posts: 28
Joined: Thu Jan 04, 2007 2:31 am
Contact:

Postby philjohn » Fri Aug 03, 2007 4:01 am

Calendar and contacts will come with my connector for funambol being released to testers sometime over the next few days.

I've had to iron out lots of calendar conversion and timezone issues, plus put some fixes into the data cache "borrowed" from the Domino connector (it was making two full folder download requests for every single sync, to get the state before and after...putting a bit of a strain on the poor Scalix IMAP server).


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 3 guests