Changeset 3856
- Timestamp:
- 06/28/2012 01:10:41 AM (11 months ago)
- Files:
-
- 1 modified
-
openbts/trunk/SIP/SIPEngine.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
openbts/trunk/SIP/SIPEngine.cpp
r3812 r3856 1154 1154 assert(mINVITE); 1155 1155 osip_message_t *ok = NULL; 1156 // have we received a 100 TRYING message? If so, don't retransmit after timeout 1157 bool recv_trying = false; 1156 1158 while (!timeout.passed()) { 1157 1159 try { … … 1161 1163 } 1162 1164 catch (SIPTimeout& e) { 1163 LOG(NOTICE) << "SIP MESSAGE packet to " << mProxyIP << ":" << mProxyPort << " timedout; resending"; 1164 gSIPInterface.write(&mProxyAddr,mINVITE); 1165 if (!recv_trying){ 1166 LOG(NOTICE) << "SIP MESSAGE packet to " << mProxyIP << ":" << mProxyPort << " timedout; resending"; 1167 gSIPInterface.write(&mProxyAddr,mINVITE); 1168 } else { 1169 LOG(NOTICE) << "SIP MESSAGE packet to " << mProxyIP << ":" << mProxyPort << " timedout; ignoring (got 100 TRYING)"; 1170 } 1165 1171 continue; 1166 1172 } 1167 1173 assert(ok); 1174 if((ok->status_code==100)) { 1175 recv_trying = true; 1176 LOG(INFO) << "received TRYING MESSAGE"; 1177 } 1168 1178 if((ok->status_code==200) || (ok->status_code==202) ) { 1169 1179 mState = Cleared;
![(please configure the [header_logo] section in trac.ini)](http://wush.net/trac/rangepublic/raw-attachment/wiki/WikiStart/PublicReleaseLogo.png)
