diff --git a/daemon/src/managerimpl.cpp b/daemon/src/managerimpl.cpp
index 547714302138c329401b19803cf20b1f73389174..a929f1e5d4d0104b9d511137fd7f5ea87d6e4307 100644
--- a/daemon/src/managerimpl.cpp
+++ b/daemon/src/managerimpl.cpp
@@ -1329,8 +1329,13 @@ void ManagerImpl::saveConfig()
 //THREAD=Main
 void ManagerImpl::sendDtmf(const std::string& id, char code)
 {
-    std::string accountid(getAccountFromCall(id));
     playDtmf(code);
+
+    // return if we're not "in" a call
+    if (id.empty())
+        return;
+
+    std::string accountid(getAccountFromCall(id));
     getAccountLink(accountid)->carryingDTMFdigits(id, code);
 }