Commit 329d47cd authored by Tristan Matthews's avatar Tristan Matthews
Browse files

sip: added debug message for answer

parent 86118ed0
......@@ -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)");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment