From fc11da0de73b7831fa3b9b08baf40010df2fbd8c Mon Sep 17 00:00:00 2001 From: Kurtis Heimerl Date: Fri, 26 Oct 2012 06:25:32 +0000 Subject: [PATCH] r4209 in private: Changes in SIP logging. * Change "cannot parse" message to "out of place" and downgrade it. * When we get a re-INVITE, log at the CRIT level. git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4346 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- SIP/SIPInterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SIP/SIPInterface.cpp b/SIP/SIPInterface.cpp index cf80d27..d4c3663 100644 --- a/SIP/SIPInterface.cpp +++ b/SIP/SIPInterface.cpp @@ -258,7 +258,7 @@ void SIPInterface::drive() mSIPMap.write(call_num, msg); } catch(SIPException) { - LOG(WARNING) << "cannot parse SIP message: " << mReadBuffer; + LOG(NOTICE) << "discarded out-of-place SIP message: " << mReadBuffer; } } @@ -383,7 +383,8 @@ bool SIPInterface::checkInvite( osip_message_t * msg) } //if this is not the saved invite, it's a RE-invite. Respond saying we don't support it. if (!transaction->sameINVITE(msg)){ - /* don't cancel the call */ + /* don't cancel the call */ + LOG(CRIT) << "got reinvite. transaction: " << *transaction << " SIP re-INVITE: " << msg; transaction->MODSendERROR(msg, 488, "Not Acceptable Here", false); /* I think we'd need to create a new transaction for this ack. Right now, just assume the ack makes it back. if not, we'll hear another INVITE */