Commit Graph

212 Commits

Author SHA1 Message Date
kurtis.heimerl
1966d63282 Patch 4545 in private:
Added support for performance-reporting counters.

and

Patch 4588 in private:
For some reason, ReportingTest won't build on all systems.  Since it is not part of the actuall application, I am commenting it out from the Makefile.am for now.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4627 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-12-16 06:06:32 +00:00
kurtis.heimerl
7dae2589a5 r4589 in private:
Renamed GSM.CCCH.PCH.Reserve to GSM.Channels.SDCCHReserve and fixed bugs in the comparison and startup test.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4614 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-12-11 08:07:00 +00:00
kurtis.heimerl
da7b841405 r4605 in private:
Make the sending of 100 Trying optional for SIP MESSAGE, even though it violates RFC3428.
Closes #1194.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4613 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-12-11 06:11:23 +00:00
ttsou
3cb2e405b3 transceiver52m: reset energy threshold on receive gain changes
The adaptive energy detection threshold does not scale relative
to signal level. In other words, the adjustment factor will be
the same whether the at 40% of signal level or 4%. If the receive
gain is reduced by a large amount, suppose 20 dB, the receiver
may take minutes to adjust to the new level.

When the receive gain is changed, reset the threshold back to
the initial level. This reduces issues of runtime gain adjustment
and prevents blocking bursts while the threhold level slowly
adjusts.

Signed-off-by: Thomas Tsou <tom@tsou.cc>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4595 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-12-06 15:43:55 +00:00
kurtis.heimerl
28d6c3c0fc Fixed DTMF to follow the protocol instead of the hacky ortp business.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4523 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-24 10:32:27 +00:00
kurtis.heimerl
adbe838ec8 missed something in one of the socket patches. now works as expected
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4516 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:38:04 +00:00
kurtis.heimerl
77d4c1ae8e Alexander's patches:
1)I did an experiment and compiled OpenBTS with clang yesterday, which
immediately highlighted two potential bugs in the Transceiver52 code.
I'm not sure they are indeed bugs and not the intended behavior, but
they look very much like that. The first one is below and the second
one is in the following mail.

GSM::Time() arguments are defined like #define USB_LATENCY_INTRVL
(10,0), which means that they are expanded into GSM::Time((10,0)).
This expression is a GSM::Time() with a single parameter where (10,0)
return value of the last argument, 0 in this case. I.e.
GSM::Time((10,0)) is equivalent to  GSM::Time(0). I think this was not
the intention.

2) Printing \n after every complex number breaks output when you want to
print it in a single line, e.g. in many debug output.

I do not claim any copyright over this change, as it's very basic.
Looking forward to see it merged into mainline.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4515 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:37:32 +00:00
kurtis.heimerl
03c9f9e8f0 r4426 in private:
Check for transceiver with a "ping", not be waiting for the clock.
The fixes in the socket class seem to have solved this problem.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4514 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:36:49 +00:00
kurtis.heimerl
b0030ba5ca r4425 in private:
Double check the FD set to be sure that the correct FD was really touched.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4513 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:36:18 +00:00
kurtis.heimerl
0c699308a1 r4408 in private:
Add code from David to keep the transceiver running when OpenBTS crashes and check if it is running when starting up.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4512 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:35:46 +00:00
kurtis.heimerl
877221b813 r4317 in private:
Add a few SIP message fixes. Add function that may be used for accepting out of order 200 and 487 messages.

Note that some of this was pushed earlier for compilation reasons

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4511 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:34:42 +00:00
kurtis.heimerl
5a553b7209 r4299 in private:
Adds error checking in SIPMessages

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4510 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:34:10 +00:00
kurtis.heimerl
763e975fc4 First half of r4299 in private:
adds printing deeper version information.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4509 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:33:34 +00:00
kurtis.heimerl
0c1a306efc Oh kay. Lots of patches trying to catch up to mainline:
r4232: Major change in hos entries are removed from a TransactionTable.

>From now on, the only place were entries are actually removed is in TransactionTable::innerRemove.
Anywhere else, the remove methods just set a flag to tag the entry for later removal be innerRemove.
This allows us to survive situations where we try to touch transactions that have been removed already.  We still log at the ERR level, but no more segfaults.

Updated all of the TransactionTable "find" methods to not return pointers to dead or removed tranactions.

Updated find-by-channel search to return the transaction entry with the highest transaction number, which fixes a bug that sometimes picked up the wrong transaction records during EA TCH assignment.

r4253: New exception class for when someone tries to use a "removed" transaction.

r4254: Updated copyright notice.

r4265: Unlock TransactionEntry::mLock while blocked on SIP message FIFOs in SIPEngine.  This does wonders to reduce lock contention and make everything more snappy.

Use Mutex::tryLock in TransactionEntry::dead and if lock is held, assume that it is not dead.  This also does a lot to reduce lock contention.

r4294: Change Um congestion response back to SIP 503.

r4295: When deleting an entry that has failed to respond to paging, send a SIP 480 response so the switch knows that transaction is dead.

r4412: Fixed bug that was causing SIPInterface to crash when the IMSI cannot be extracted from the To: header.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4497 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-22 05:30:27 +00:00
kurtis.heimerl
191b471cea r4252 in private:
Clarifying comment on removal of SIP FIFOs.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4496 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-22 05:29:12 +00:00
kurtis.heimerl
35175100bc r4218 in private:
Put dead transaction checks into 2 groups - 30-seconds and 180-seconds.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4495 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-22 05:28:36 +00:00
kurtis.heimerl
e1c82bba99 Alexander noted a few errant "+"s that had snuck in from a previous manual merge. seems to have no effect, but now removed
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4489 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-15 00:10:56 +00:00
kurtis.heimerl
624c416eb1 Alexander's patch #1:
This patch makes a step towards using a system-wide sqlite3 lib. It
moves sqlite3util.cpp/.h to CommonLibs and leaves only original
sqlite3 files in the sqlite3 dir of OpenBTS.

I do not claim any copyright over this change, as it's very basic.
Looking forward to see it merged into mainline.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4467 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-14 03:51:51 +00:00
kurtis.heimerl
ab45f2ac53 r4436 in private:
Change the order in which RRLP messages are sent. Request, then provide assistance (if needed), then request.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4463 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-11 10:31:05 +00:00
kurtis.heimerl
4e4fdd667e alexander's patch #2: A few typos in comments
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4460 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-11 10:16:26 +00:00
kurtis.heimerl
da5ebbee41 Alexander's patch #3: Configuration Tests should not include crashing
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4459 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-11 10:15:43 +00:00
kurtis.heimerl
cda6feb4ff updating copywrite/authors
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4364 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-27 10:25:06 +00:00
kurtis.heimerl
b7bb57ea8b increased the start timeout, UHD takes longer to start
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4357 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:27:23 +00:00
kurtis.heimerl
aa27084570 moving to the new transaction tabe, very slowly
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4356 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:27:14 +00:00
kurtis.heimerl
84d720869a r4231 in private: If we receive messages in the middle of channel assignment, run them through the GSM dispatcher. Responses are still not going back on the correct channel, but even this is a huge improvement in clearing up calls after early cancellation.
Add a handler for L3 CC Statu message, and terminate the call if the message indicates an error.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4355 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:27:04 +00:00
kurtis.heimerl
e0e50a09af r4230 in private: Do not create a new transaction if a call error condition can be identified early enough in SIPInterface::checkInvite.
r4229 in private: Added accessor for L3 CC Call State element.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4354 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:26:55 +00:00
kurtis.heimerl
ef2b2b16a0 r4229 in private:
Added accessor for L3 CC Call State element.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4353 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:26:43 +00:00
kurtis.heimerl
bfd107cdc1 r4228 in private:
Fixed typo in message name string.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4352 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:26:34 +00:00
kurtis.heimerl
b4d56abf78 r4227 in private:
Added accessors for more L3 CC diagnostic fields.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4351 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:26:24 +00:00
kurtis.heimerl
f2fc9a09d9 r4216 and 4217 in private:
Make multiple attempts at TCH channel assignment.  (Yes, I saw this do something useful during one test.)
Log abmormal Disconnect and Release at NOTICE level.

Accessors for Cause element in L3 CC Release.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4350 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:26:15 +00:00
kurtis.heimerl
60bcb9a68b r4214 in private:
Add accessor for Cause element in L3 CC Disconnect.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4349 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:26:06 +00:00
kurtis.heimerl
a1fdb279cc merged private Config to public: r4211:
Changes to ConfigurationTable class.  Cleaner locking operations, fewer messages for normal operations, ALERT logging for truly abnormal operations.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4348 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:25:56 +00:00
kurtis.heimerl
938abf784b r4145 and 4210 in private:
Don't go the ringing state until we really get the 180 response.
Log potetial re-INVITEs.

Simpler version of SIPEngine::sameINVITE just checks CSeq, on the assumption that CallID already matched when we searched the transaction table.

Faster and does not rely on string conversion.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4347 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:25:42 +00:00
kurtis.heimerl
888365a5b9 r4209 in private:
Changes in SIP logging.
 * Change "cannot parse" message to "out of place" and downgrade it.
 * When we get a re-INVITE, log at the CRIT level.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4346 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:25:32 +00:00
kurtis.heimerl
b5d1ecc618 r4226 in private: Added a comment pointing out a potential memory leak.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4345 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-26 06:25:20 +00:00
ttsou
d72d2e3e00 Transceiver52M: UHD: Setup option to pass arguments from command line
UHD accepts optional 'args' that can be used for device descriptions
such as IP address, device type, etc. Allow these to be passed in on
the transceiver command line as the third argument (number of supported
carriers is the second argument). This option benefits those who may
have multiple UHD devices attached to a single system.

This option is not yet supported by GSM core and requires starting the
transceiver independently on the command line. This option has no
effect when USRP1 is used.

Signed-off-by: Thomas Tsou <tom@tsou.cc>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4315 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-10-22 00:07:14 +00:00
kurtis.heimerl
27a86c672b r4167 in private:
On cancellation of inbound MTC, respond with 486 Busy Here instead of 480 Temporarily Unavailable.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4177 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-24 20:02:48 +00:00
kurtis.heimerl
73af0c871a r4166 in private:
Check to see if the channel is really active before issuing 486 Busy Here response.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4176 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-24 20:02:45 +00:00
kurtis.heimerl
025297617b r4164 in private:
Make gTransactionTable.clearDeadEntries() much less agressive.  See ticket #1128 for an example of the problem that can cause.

Also includes commented-out code for a method on TransactionTable to detect busy users, but we didn't need it.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4175 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-24 20:02:41 +00:00
kurtis.heimerl
93ace94352 r4162 in private:
Detect busy users and respond with 486 Busy Here.
This fixes one complaint, but is a stop-gap until we implement a proper multi-transaction state machine in GSM L3.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4174 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-24 20:02:36 +00:00
kurtis.heimerl
d2871d763f r4161 in private:
SIPEngine::instigator now based on a flag instead of a string comparison.

For some reason that we need to understand, string comparisons on oSIP messages are really not reliable.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4173 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-24 20:02:32 +00:00
kurtis.heimerl
b212619d7a r4160 in private: Change in level of a logging message.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4172 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-24 20:02:28 +00:00
kurtis.heimerl
329cc1f73c Fixed #146 in public. We now update the TMSI table on all outgoing transactions as well as when we receive an answer to a paging request
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4159 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-23 22:42:58 +00:00
kurtis.heimerl
3875d7a566 adding regex back into MobilityManagement for OpenRegistration. It's in the manual, we should have it in the code.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4151 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-09-21 20:07:40 +00:00
ttsou
a31d590429 transceiver: uhd: prevent output of underrun message at ERROR level
The appearance of underruns on B100 due to the latency transmit
window scares people. These should not be logged at ERROR level
because the events are generally not real errors. So use the same
behaviour of USRP1 of not logging these events. The presence of
underrun events can be determined by changes in the latency window
that is shown with log level set at INFO.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3988 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-08-08 23:30:23 +00:00
ttsou
dd6dc92ada transceiver: uhd: allow underrun flag to reset during timing alignment
Allowing the underrun flag to reset will prevent a single event from
causing large jumps in the transmit latency threshold. This should
keep unreasonable timing latencies from occurring (e.g. latencies of
20+ frames).

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3981 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-08-08 00:51:34 +00:00
ttsou
c153a56801 transceiver: b100: raise minimum transmit latency value
Put a floor on the transmit latency of the B100 in order to suppress
underruns in typical conditions. Empirical data from a handful of
relatively recent machines shows that the B100 will underrun when
the transmit threshold is reduced to a time of 6 and a half frames,
so we set a minimum 7 frame threshold.

The overall benefit should be marginal and may increase the
possibility of bursts arriving stale (after the trasmit deadline),
but will reduce the number of alarming UHD related messages that
appear in the log file.

This patch is UHD and B100 specific - USRP1 is unaffected.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3980 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-08-08 00:51:31 +00:00
kurtis.heimerl
27f4a2f920 Fixed #40 in public. We now handle CMServiceAbort correctly.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3973 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-07-31 23:07:04 +00:00
kurtis.heimerl
059eea60af Set state to fail instead of throwing a timeout in MOSMSWaitForSubmit
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3925 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-07-24 05:55:51 +00:00
kurtis.heimerl
0623af8295 Fixed null pointer in MOSMSSubmit.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3923 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-07-24 05:29:37 +00:00