< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Bug in handleBadRequest


Byron,

 

Looking at Roberts problem, I noticed the following – probably why we can’t figure out why the 400.  I suspect the 400 is due to a bad content length – but fixing this will help determine.

 

Scott

 

 

error->getReason should read badReg->getReason

 

bool

TransactionState::handleBadRequest(const resip::SipMessage& badReq, TransactionController& controller)

{

   assert(badReq.isRequest() && badReq.method() != ACK);

   try

   {

      SipMessage* error = Helper::makeResponse(badReq,400);

      error->header(h_StatusLine).reason()+="(" + error->getReason() + ")";

      Tuple target(badReq.getSource());