From 329d47cdb19617cf8e0093593fbd03bd298918f8 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Tue, 27 Aug 2013 13:35:31 -0400 Subject: [PATCH] sip: added debug message for answer --- daemon/src/sip/sipcall.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/src/sip/sipcall.cpp b/daemon/src/sip/sipcall.cpp index aaf7306c1d..da2768662b 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)"); -- GitLab