diff --git a/daemon/src/sip/sipcall.cpp b/daemon/src/sip/sipcall.cpp index aaf7306c1d2c1aafda61508b2c44f997d3708c83..da2768662bed7932445f0e42292e367268eaffe4 100644 --- a/daemon/src/sip/sipcall.cpp +++ b/daemon/src/sip/sipcall.cpp @@ -81,8 +81,10 @@ void SIPCall::answer() throw std::runtime_error("Could not init invite request answer (200 OK)"); // contactStr must stay in scope as long as tdata - if (not contactHeader_.empty()) + if (not contactHeader_.empty()) { + DEBUG("Answering with contact header: %s", contactHeader_.c_str()); sip_utils::addContactHeader(contactHeader_, tdata); + } if (pjsip_inv_send_msg(inv, tdata) != PJ_SUCCESS) throw std::runtime_error("Could not send invite request answer (200 OK)");