Commit Graph

382 Commits

Author SHA1 Message Date
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
Kurtis Heimerl
847b05e885 transceiver, uhd: exit informatively if no devices are found
Perform a UHD device search before constructing the object,
and inform the user if no device is found.

No device found is the most common reason for the transceiver
to fail with the dreaded error "assuming TRX is dead".

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2699 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:26:04 +00:00
Kurtis Heimerl
8b45fb52ef transceiver, uhd: reject usrp1 if compiled with uhd support
This configuration is invalid because of FPGA based timestamp
support for the USRP1 in the UHD driver.

Kindly inform the user to recompile with libusrp support from
GNU Radio.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2698 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:26:01 +00:00
Kurtis Heimerl
224f125cb9 transceiver, uhd: runtime check for setting master clock rate
Before setting the master clock rate, make sure that the
device is capable of being set. For now, assume that devices
that operate with default clock rates above 64 MHz,
specifically USRP2/N200/N210, cannot be set at 52 MHz.

Inform the user that these devices can be used with the
compile time option of host based resampling.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2697 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-28 06:25:58 +00:00
Kurtis Heimerl
827b4fdfac Woops, typo
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2693 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:38:45 +00:00
Kurtis Heimerl
3afb9ecd93 changing config scripts to explitly target UHD/USRP1
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2692 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:36 +00:00
Kurtis Heimerl
a0aa6c9206 transceiver, resamp: enlarge transmit resampler output buffer
It was possible to reach a state where a resampled burst would
overrun the transmit output buffer and corrupt the global
allocated signal vectors. The result was a segmentation fault
when attempting to access heap allocated signal vectors since
the pointers were garbage.

Whether the segfault occured or not appears to depend on the
memory location of the signal vector pointers, since it does
not occur on all systems.

Double buffer size to accomodate an incoming burst plus up to
a full chunk that may be remaining from the previous resampling
operation.

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

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2691 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-11-26 03:19:33 +00:00
Kurtis Heimerl
bfe288e32e transceiver: enable USRP1 firmware binary install
Not sure why this functionality is commented out.

Make install places the FPGA firmware image in:

  /usr/local/share/usrp/rev2/
  /usr/local/share/usrp/rev4/

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

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