I\'m building a chat system based on ejabberd using an iOS client (and XMPPFramework).
My current chat system supports only one-on-one conversations between users saving
This should be possible with mod_archive_odbc. It's an additional ejabberd module that you can find by checking out http://svn.process-one.net/ejabberd-modules/ with SVN. An example on how to build and install a module on Debian can be found here.