syncing commonlibs with Many thanks to Michael Iedema for these patches, makes config a lot better.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@5655 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl 2013-05-31 21:47:25 +00:00
parent 40e14f52a3
commit 7178e8367e
31 changed files with 2068 additions and 242 deletions

View file

@ -207,7 +207,7 @@ void SIPInterface::write(const struct sockaddr_in* dest, osip_message_t *msg)
LOG(INFO) << "write " << firstLine;
LOG(DEBUG) << "write " << str;
if (random()%100 < gConfig.getNum("Test.SIP.SimulatedPacketLoss",0)) {
if (random()%100 < gConfig.getNum("Test.SIP.SimulatedPacketLoss")) {
LOG(NOTICE) << "simulating dropped outbound SIP packet: " << firstLine;
free(str);
return;
@ -237,7 +237,7 @@ void SIPInterface::drive()
return;
}
mReadBuffer[numRead] = '\0';
if (random()%100 < gConfig.getNum("Test.SIP.SimulatedPacketLoss",0)) {
if (random()%100 < gConfig.getNum("Test.SIP.SimulatedPacketLoss")) {
LOG(NOTICE) << "simulating dropped inbound SIP packet: " << mReadBuffer;
return;
}