Commit Graph

231 Commits

Author SHA1 Message Date
kurtis.heimerl
b0f5d61bf5 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
7830f252c6 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
ttsou
e3e46bfdaa 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
ttsou
85af322c86 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
3b59423f2b 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
244d386259 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
42c752e17a 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
8ee3d8cc72 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
8903e165b4 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
36b618f773 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
9b4eb3882b 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
fcc6e2695c 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
08d0c31ece 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
e40ef91546 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
hsamra
dd86fabbea 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
hsamra
1740f4612a 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
f9f3351570 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
hsamra
9c2e13f6d0 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
hsamra
e3705ba8b5 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
hsamra
ac850c971e 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
d8ac7dd2bb 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
179f724153 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
9ec878c0aa 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
4325a7ede2 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
041e211b2c 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
64656ed5b5 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
ttsou
e67a296a62 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
c4c41c65b6 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
c614ad4a4d 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
fb00b2c122 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
0118e2495f 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
ttsou
a1c232e6e4 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
2e30767716 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
bee9289aa0 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
410a0cc329 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
3129fc2bca 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
26dfc03365 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
fbcf858e51 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
hsamra
99f3951339 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
a5e733d4ba 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
6e071a08ad 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
ee7ae4045e 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
7fd5601849 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
431d6765e2 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
92dd118e0e 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
0a9999a546 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
dccc045113 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
f532434dc0 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
5078692fd7 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
kurtis.heimerl
01c8396bb0 transceiver, resamp: insert missing filter values
With transceiver integration, the resampling filter files were
dropped. This created a working resampling implementation for
the USRP2 / N200, but with spectrum irregulaties that likely
caused issues at longer range operation. Simply reinsert the
filter files and modify the filter initialization to use them.

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

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