[enhancement] add ringing time before autoreplay
Hi there,
thanks for this nice software. I'm currently using it to get in touch with my mom, that can no longer handle the mobile phone. I activated the autoanswer option and everything works great except for one thing: there is no ringing time. It would be very helpful to have a few seconds of ringtone to notify the recipient of the incoming call. I achieved this very easily, by just adding some sleep time before the auto-answer:
diff --git a/src/manager.cpp b/src/manager.cpp
index 582bbc012..3e436a8e8 100644
--- a/src/manager.cpp
+++ b/src/manager.cpp
@@ -2541,7 +2541,7 @@ Manager::ManagerPimpl::processIncomingCall(const std::string& accountId, Call& i
});
} else if (autoAnswer_ || account->isAutoAnswerEnabled()) {
dht::ThreadPool::io().run(
- [this, incomCall = incomCall.shared_from_this()] { base_.answerCall(*incomCall); });
+ [this, incomCall = incomCall.shared_from_this()] { sleep(9); base_.answerCall(*incomCall); });
} else if (currentCall && currentCall->getCallId() != incomCallId) {
// Test if already calling this person
if (currentCall->getAccountId() == account->getAccountID()
Are you interested in this option? I'm not sure I can code it through both the deamon and the gui, but I know C++ and QML so I may just need some directions on the structure of the code.