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
This commit is contained in:
Kurtis Heimerl
2012-10-26 06:25:32 +00:00
parent 56b62e49b0
commit fc11da0de7

View File

@@ -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 */