Changeset 3883

Show
Ignore:
Timestamp:
07/10/2012 07:06:25 PM (11 months ago)
Author:
kurtis.heimerl
Message:

We no longer repeat INVITEs when we get a 100 TRYING.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • openbts/trunk/SIP/SIPEngine.cpp

    r3857 r3883  
    495495        catch (SIPTimeout& e) {  
    496496                LOG(DEBUG) << "timeout"; 
    497                 mState = Timeout; 
     497                //if we got a 100 TRYING (SIP::Proceeding) 
     498                //don't time out 
     499                if (mState != SIP::Proceeding){ 
     500                        mState = Timeout; 
     501                } 
    498502                return mState; 
    499503        } 
     
    503507        saveResponse(msg); 
    504508        switch (status) { 
    505                 case 100:       // Trying - this maybe should go to ringing too -kurtis 
     509                case 100:       // Trying - this means the proxy is up; don't need to reinvite 
    506510                        mState = Proceeding; 
    507511                        break; 
    508512                case 180:       // Ringing 
    509513                case 183:       // Progress -  
    510                         //We keep sending invited until we  
    511                         //enter Ringing, so 183 need to do that -kurtis 
    512514                        mState = Ringing; 
    513515                        break;