From 8a9afc7a05a4c80ae60dd064dcc774e25ffd2c34 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Fri, 18 Apr 2014 17:30:11 -0400 Subject: [PATCH] sip/ip: remove verbose logging --- daemon/src/ip_utils.cpp | 1 - daemon/src/sip/sipvoiplink.cpp | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/daemon/src/ip_utils.cpp b/daemon/src/ip_utils.cpp index eba799165e..fde9b5547a 100644 --- a/daemon/src/ip_utils.cpp +++ b/daemon/src/ip_utils.cpp @@ -143,7 +143,6 @@ ip_utils::getLocalAddr(pj_uint16_t family) pj_sockaddr ip_utils::getInterfaceAddr(const std::string &interface, pj_uint16_t family) { - ERROR("getInterfaceAddr: %s %d", interface.c_str(), family); if (interface == DEFAULT_INTERFACE) return getLocalAddr(family); diff --git a/daemon/src/sip/sipvoiplink.cpp b/daemon/src/sip/sipvoiplink.cpp index 1a3acd452c..cd6d094da2 100644 --- a/daemon/src/sip/sipvoiplink.cpp +++ b/daemon/src/sip/sipvoiplink.cpp @@ -489,7 +489,6 @@ pj_bool_t transaction_request_cb(pjsip_rx_data *rdata) } // contactStr must stay in scope as long as tdata - ERROR("transaction_request_cb getContactHeader"); const pj_str_t contactStr(account->getContactHeader()); sip_utils::addContactHeader(&contactStr, tdata); @@ -1061,7 +1060,6 @@ SIPVoIPLink::answer(Call *call) updateSDPFromSTUN(*sipCall, *account, *SIPVoIPLink::instance().sipTransport); } - ERROR("answer getContactHeader"); pj_str_t contact(account->getContactHeader()); sipCall->setContactHeader(&contact); sipCall->answer(); @@ -1125,7 +1123,6 @@ SIPVoIPLink::hangup(const std::string& id, int reason) return; // contactStr must stay in scope as long as tdata - ERROR("hangup getContactHeader"); const pj_str_t contactStr(account->getContactHeader()); sip_utils::addContactHeader(&contactStr, tdata); @@ -1655,7 +1652,9 @@ SIPVoIPLink::SIPStartCall(SIPCall *call) pj_str_t pjContact(account->getContactHeader()); - ERROR("SIPStartCall getContactHeader %s / %s -> %s", std::string(pj_strbuf(&pjContact), pj_strlen(&pjContact)).c_str(), from.c_str(), toUri.c_str()); + const std::string debugContactHeader(pj_strbuf(&pjContact), pj_strlen(&pjContact)); + DEBUG("contact header: %s / %s -> %s", + debugContactHeader.c_str(), from.c_str(), toUri.c_str()); pjsip_dialog *dialog = NULL; @@ -2474,8 +2473,6 @@ void setCallMediaLocal(SIPCall* call, const pj_sockaddr& localIP) if (!account) return; - ERROR("setCallMediaLocal %s", ip_utils::addrToStr(localIP).c_str()); - // Reference: http://www.cs.columbia.edu/~hgs/rtp/faq.html#ports // We only want to set ports to new values if they haven't been set if (call->getLocalAudioPort() == 0) { -- GitLab