View Single Post
Posts: 44 | Thanked: 73 times | Joined on Dec 2009 @ Freiburg, Germany
#17
Originally Posted by hawaii View Post
@gilead; doesn't seems to work with any location and any theater I put in. What's the call you're using to initiate an outgoing dial?
I use:


if (!QDBusConnection::systemBus().isConnected()) {
ShowError(tr("Unable to call theater by phone: communication bus not available."));
return;
}
QDBusInterface iface("com.nokia.csd.Call", "/com/nokia/csd/call", "com.nokia.csd.Call", QDBusConnection::systemBus());
if (!iface.isValid()) {
ShowError(tr("Unable to call theater by phone: phone service not available."));
return;
}
QString phone_number = TrimPhoneNumber(cinema.GetTelephone());
QDBusReply<QDBusObjectPath> reply = iface.call("CreateWith", phone_number, 0);
if (!reply.isValid()) {
std::cout << qPrintable(reply.error().message()) << ": <" << qPrintable(phone_number) << ">" << std::endl;
ShowError(tr("Unable to call theater by phone: call failed."));
return;
}

The last call (iface.call) is failing for you. I don't know why - I assume TrimPhoneNumber() does not the right thing. Please send me some locations and theater names you tried. I would like to see if the phone numbers are correctly trimmed.

Regards, Jochen