diff --git a/src/manager.cpp b/src/manager.cpp
index c9ce4c0fd285bfb04a60c9ed3782c3c15dadfabf..3937c06186ff669e4419fe3effd22fefc60115de 100644
--- a/src/manager.cpp
+++ b/src/manager.cpp
@@ -1662,7 +1662,7 @@ Manager::sendCallTextMessage(const std::string& callID,
     } else {
         auto call = getCallFromCallID(callID);
         if (not call) {
-            RING_ERR("Failed to send message to %s: inexistant call ID", call->getCallId().c_str());
+            RING_ERR("Failed to send message to %s: inexistant call ID", callID.c_str());
             return;
         }