Commit graph

139 commits

Author SHA1 Message Date
Thomas Tsou
2b7204d8c7 transceiver, uhd: output timestamps on monontonic error
The "Loss of monotonic time" error occurs when a timestamp
arrives from the device that is earlier in time than the
previous timestamp. The output is an ALERT level message
generally accompanied by a transmit side timeout from the
device.

UHD: Loss of monotonic time
UHD: Loss of monotonic time
UHD: Device send timed out

Add to the error description the timestamp values that
generated the error and output with ALERT rather than
ERR log.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3307 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-13 02:20:01 +00:00
Kurtis Heimerl
d0a80878e8 Fixes #580 in public. We had some transactions getting stuck in the transaction table, but no longer. We more aggressively clear the table.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3300 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-10 02:42:55 +00:00
Kurtis Heimerl
f52e2498ad Harvind found a bug in BitVector.cpp:
Basically the unpack method and fillField method assume MSB-first bit packing.   The unpack method calls fillField for each byte that needs to be unpacked.  The problem occurs on its final call to fillField when it has a partial byte to unpack; it uses the LSB bits instead of the MSB bits.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3288 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-08 07:13:15 +00:00
Kurtis Heimerl
73fd4c986c Fixes #718 in public. We now have a user agent header in all of our sip packets.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3270 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-06 07:46:17 +00:00
Kurtis Heimerl
8d0a9799ef Fixes #734 in public, , as well as rearchitects a number of SIP
control flows. Basically, there was a small bug where I forgot to listen
 for an OK, which caused transactions to stick around too long and fuck
 everything up. That was quickly fixed, but my compulsion required me to
 reorganize the code to avoid such errors in the future. I implemented
 another new feature as well, we now respond with a 480 Temporarily
 Unavailable message (rather than cancel) when canceling an INCOMING call.
 The prior behavior was incorrect.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3264 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-05 03:53:57 +00:00
Kurtis Heimerl
915aa7b1f7 Fixed canceling bug in Public. I'm missing my personal radio (loaned to class) and so it's not well tested... something is up with FS and cancels.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3244 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-28 01:30:24 +00:00
Kurtis Heimerl
7244fa7271 Fixes #499 in public. If our ACK was missed, the switch would resend an OK and we didn't respond to it. We do now.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3237 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-25 21:46:49 +00:00
Kurtis Heimerl
ec026dfe2e Fixes #692 in public. This updates the SR (ip/port) for a user on every SIP transaction. Also standardizes SR interface to use just strings, no more external char*. Will modify actual SR later.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3236 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-25 21:07:11 +00:00
Kurtis Heimerl
3f264a9e86 Fixes #711 in private. We now check RTP ports before allocation, to ensure they're not already in use.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3225 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-24 07:59:11 +00:00
Kurtis Heimerl
56dd0dd9df Fixing RRLP timeouts during LUR. We now query for RRLP after the LUR has completed but before the channel is closed.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3202 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-18 09:21:48 +00:00
Thomas Tsou
e4c8e51849 transceiver, uhd: fix build error due to log level
Previous commit r3181 used a 2.6 logging level.

  ALARM->ALERT

Fix for 2.8 levels.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3187 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-14 17:58:11 +00:00
Thomas Tsou
19d877d7c7 transceiver, uhd: display device information on make failure
The failure "UHD make failed" implies that a suitable device
was found, but construction failed. Output the the found
target device information along with message.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3181 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-14 01:52:10 +00:00
Kurtis Heimerl
e9ad038a99 So that's why GSMConfig() is defined in GSMConfig.h
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3170 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-10 02:59:22 +00:00
Kurtis Heimerl
752ed629d5 Lightweight formatting issues
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3167 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-10 01:54:25 +00:00
Kurtis Heimerl
1078c8ea64 Removing a magic number
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3166 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-10 01:52:11 +00:00
Kurtis Heimerl
a1609072d7 Brandon Creighton's patch: A lot of refactoring, but separates global object creation from initialization. Allows for logging of database initialization failures.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3165 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-10 01:45:41 +00:00
Kurtis Heimerl
2f2d75383c Fixes #693 in public. Basically, refactoring to force all SR messages through the SR class. Also fixed a memory leak in the SR itself.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3163 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-09 08:06:16 +00:00
Kurtis Heimerl
f255bf728c Fixes r168 in public. This involves the handling of "481 Call leg/transaction does not exist. Basically, we occasionally get this in response to a BYE or CANCEL (as it's been closed on the switch side). This was almost certainly fixed in a previous commit. I've updated the log message to clarify that the connection is cleared when we receive a 481.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3150 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-05 02:53:38 +00:00
Kurtis Heimerl
75541d23a3 Fixing compilation issue on Ubuntu 11.04
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3147 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-04 23:29:16 +00:00
Kurtis Heimerl
5c9902b5b5 Fixes #484 in public. We now cache failed RRLP queries per-IMEI in the SR. This also means that the SR now stores the most recent IMEI for a specific IMSI.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3146 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-04 23:29:12 +00:00
Kurtis Heimerl
fab60f9793 Bug with running RAD1 transceiver with public release. Used wrong location of OpenBTS.db for some reason
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3141 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-03 23:30:06 +00:00
Kurtis Heimerl
ad69cfe494 Remedying #538 in the public release
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3139 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-03 22:46:10 +00:00
Harvind Samra
39220cc85f Tweaks to enhance performance.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3127 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-02-01 18:57:42 +00:00
Harvind Samra
8a8c1bc33a Power attenuation argument should be in dB, not a linear value.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3126 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-30 23:50:02 +00:00
Kurtis Heimerl
286eec5e07 handling GPRS suspension requests
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3124 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-30 00:16:56 +00:00
Harvind Samra
c5cc69e793 Missing include.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3095 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 21:15:39 +00:00
Harvind Samra
09bfdd4d41 Incorporate external gConfig object.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3094 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 21:11:44 +00:00
Harvind Samra
da3d5e8055 Make VCTCXO truly configurable from config file. Previously hard-coded.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3093 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 20:54:19 +00:00
Kurtis Heimerl
270d7627d6 Fixes #666, Missing SubscriberRegistry.Port in example config
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3092 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-24 20:53:10 +00:00
Kurtis Heimerl
34fd50b0f6 Small stuff I forgot to reset.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3050 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-17 08:31:15 +00:00
Kurtis Heimerl
f364c01bc4 David's suggestions to the RRLP stuff. Tested and working.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3049 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-17 08:31:11 +00:00
Kurtis Heimerl
f02bdb14e3 RRLP Additions: New config fields enable RRLP messages before mobile terminated calls and SMS.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3048 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-17 08:31:06 +00:00
Kurtis Heimerl
6dd0e7c1fc Fixes #501 in the public release.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3037 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-12 08:13:03 +00:00
Kurtis Heimerl
cb2ea1b55b Fixes #34 in public release. We now have different states for the MTDCanceling and canceled calls now end in a canceled state. Also a few other hardening bug fixes.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3018 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-10 22:57:53 +00:00
Thomas Tsou
b10465449b transceiver, uhd: alert user on unrecoverable errors
Unrecoverable device errors include send and receive
timeouts and mangled packets. Other device errors, such
as non-monotonic timestamps are sometimes recoverable
through a soft restart.

These fatal are generally limited to development
versions of UHD driver or device firmware, but can occur
in release versions.

Alert user on such device errors along with current UHD
version.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3012 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-09 18:11:34 +00:00
Kurtis Heimerl
f98838c76a Fixed Bug #172, OpenBTS now sends CANCEL messages when there is no active call (instead of BYE)
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3006 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-09 01:01:12 +00:00
Kurtis Heimerl
fcbedbb000 Small typo fix
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2996 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-07 09:41:27 +00:00
Kurtis Heimerl
a2fa801062 Bug #173-public. Now appropriately responds to a SIP CANCEL with a SIP OK. Still won't respond if that OK is dropped.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2995 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-07 09:41:24 +00:00
Kurtis Heimerl
8ba4a6a7ae bug #238-private. OpenBTS segfaults when receving an empty SMS destined to go out as text/plain. It no longer segfaults, but does not successfully send the message.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2969 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-05 02:25:08 +00:00
Thomas Tsou
e15178ef3a transceiver, uhd: add check for uhd version requirement
The UHD property tree used for device identification only
exists in the 003.002.000 and newer API.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2949 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-01-03 20:38:19 +00:00
Kurtis Heimerl
54e663c127 Locking gethostbyname call, as Alexander notes that it is not thread safe
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2865 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-24 02:53:10 +00:00
Kurtis Heimerl
725cff522e Reverted bad function header. There are no timing inversion deadlocks, I made those up.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2836 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-17 00:05:31 +00:00
Kurtis Heimerl
27a8acc789 Alexander's change. Fixes MTC bug by supporting 64bit processors in Timeval. Math was bad.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2835 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-17 00:03:24 +00:00
Kurtis Heimerl
cb51d6b0b2 more documentation
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2823 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-15 06:30:52 +00:00
Kurtis Heimerl
150ab7edde Fixing Thomas's MTC receive bug. We don't have a ticket for it, but there seemed to be a timing inversion deadlock in Interthread.h. We mostly duck it, instead of solving it.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2822 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-15 06:23:39 +00:00
Kurtis Heimerl
82da24cd30 Matching UHD changes in gnuradio
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2817 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-15 00:50:16 +00:00
Harvind Samra
89f86e44cb Fix stack overflow bug that was killing transceiver.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2816 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-14 23:48:53 +00:00
Kurtis Heimerl
bbb06804db Fixed the GSMTAP layer, it's correctly generating packets now.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2784 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-09 22:15:21 +00:00
Kurtis Heimerl
2b163f33fe Changed the RRLP test scripts to use the default Ubuntu/Apache cgi-bin locatons.
Changed the RRLP test scripts to provide instructions on their use. 

Changed the RRLP test scripts and OpenBTS default SQL to use Sather Tower as the default location for RRLP traffic.

Remove the sendrrlp command from the OpenBTS CLI



git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2744 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-12-06 00:53:30 +00:00
Kurtis Heimerl
a456e9d968 transceiver52M: bump critial errors to ALERT level
Device errors regarding properties such as sample
rate or frequency tuning are almost always fatal and
lead to the common error "assuming TRX is dead".
Make sure that these errors are clearly presented to
the user.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2700 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:26:08 +00:00