Hello Georg, hello Jason!
Thank you both for your interesting answers.
As far as I understand obex is now integrated in bluez5:
(see Release of BlueZ 5.0)
Thus my confusion about the test script in ofono!
So, if I'm running off-topic, I will move to the bluez mailing-list.
Anyway, following the hints of Jason I exported the dbus session
address (because I don't use X) and set the dbus policies in
bluetooth.conf. I paired and trusted my phone.
Running the bluez/test/pbap-client script or the Georg's code leads to:
> org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez.obex
> was not provided by any .service files
while the ofono/test/test-phonebook returns:
> org.freedesktop.DBus.Error.UnknownMethod: Method "Import" with
> signature "" on interface "org.ofono.Phonebook" doesn't
Because obex is under org.bluez I don't think I need the obexd-client
Debian package, do I?