mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-05-10 12:00:03 +00:00
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:
parent
40e14f52a3
commit
7178e8367e
31 changed files with 2068 additions and 242 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue