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 }
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 checkAndAddAcco unt(const Tp::AccountPtr& account) apabilities caps = account- >capabilities( ); WithAudio( ) || caps.streamedMe diaCalls( )) { nitor(account) ; push_back( tcm);
151 {
152 Tp::ConnectionC
153
154 // anything call like, perhaps overkill?
155 if (caps.audioCalls() || caps.videoCalls() || caps.videoCalls
156 auto tcm = new TelepathyCallMo
157 connect(tcm, SIGNAL(offHook()), SLOT(offHook()));
158 connect(tcm, SIGNAL(onHook()), SLOT(onHook()));
159 mCallMonitors.
160 }
161 }