Skip to content
Snippets Groups Projects
Commit 329d47cd authored by Tristan Matthews's avatar Tristan Matthews
Browse files

sip: added debug message for answer

parent 86118ed0
No related branches found
No related tags found
No related merge requests found
...@@ -81,8 +81,10 @@ void SIPCall::answer() ...@@ -81,8 +81,10 @@ void SIPCall::answer()
throw std::runtime_error("Could not init invite request answer (200 OK)"); throw std::runtime_error("Could not init invite request answer (200 OK)");
// contactStr must stay in scope as long as tdata // 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); sip_utils::addContactHeader(contactHeader_, tdata);
}
if (pjsip_inv_send_msg(inv, tdata) != PJ_SUCCESS) if (pjsip_inv_send_msg(inv, tdata) != PJ_SUCCESS)
throw std::runtime_error("Could not send invite request answer (200 OK)"); throw std::runtime_error("Could not send invite request answer (200 OK)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment