Comment 2 for bug 1409125

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

After adding some debug lines, the problem is that sometimes there is no audiocalls or videocalls caps when starting media-hub, so it never really connects the off/on hook signals.

150 void checkAndAddAccount(const Tp::AccountPtr& account)
151 {
152 Tp::ConnectionCapabilities caps = account->capabilities();
153
154 // anything call like, perhaps overkill?
155 if (caps.audioCalls() || caps.videoCalls() || caps.videoCallsWithAudio() || caps.streamedMediaCalls()) {
156 auto tcm = new TelepathyCallMonitor(account);
157 connect(tcm, SIGNAL(offHook()), SLOT(offHook()));
158 connect(tcm, SIGNAL(onHook()), SLOT(onHook()));
159 mCallMonitors.push_back(tcm);
160 }
161 }