Commit Graph

382 Commits

Author SHA1 Message Date
Kurtis Heimerl
638e412f99 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
05ea53e57f 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
8a62a1c971 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
fc11da0de7 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
56b62e49b0 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
Thomas Tsou
c804babe1d 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
6cb6fd1fb7 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
d11974d660 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
559eedfb17 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
b742914460 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
d3af77f81f 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
56d93e6c0a 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
744777e60b 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
182fde503d 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
Thomas Tsou
2f8ea379e2 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
Thomas Tsou
29f700aca8 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
Thomas Tsou
6545a18831 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
6344347af0 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
e27757e1b6 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
18accf3dc8 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
Kurtis Heimerl
c884251468 Public release now works with g++4.7. In 4.7, unistd.h is no longer imported by default
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3918 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-07-22 05:09:00 +00:00
Kurtis Heimerl
0c199eb886 We no longer repeat INVITEs when we get a 100 TRYING.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3883 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-07-11 00:06:25 +00:00
Donald Kirker
3011a608a1 Simple script for looping the OpenBTS process to catch crashes and restarts.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3858 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-28 21:02:07 +00:00
Kurtis Heimerl
7e34fd52d6 removed notice about not caring about 100 trying messages. RFCs be damned, the proxies use them.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3857 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-28 06:10:45 +00:00
Kurtis Heimerl
f8ef9a060b SIP MESSAGES now wait when they receive a 100 TRYING, rather than repeating themselves.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3856 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-28 06:10:41 +00:00
Kurtis Heimerl
a567e3d3d1 testing push on new laptop
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3851 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-24 18:45:16 +00:00
Kurtis Heimerl
6b648a8399 Fixes #991 in public. We now appropriately handle rejections of our SIP MESSAGE content
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3812 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-19 21:33:26 +00:00
Kurtis Heimerl
af13ea7902 Fixed #932 and #905 in public. OpenBTS now responds negatively to SIP
re-invites, though the specific effect of this depends on the client
 sending the re-invite. In the case of FS, it causes the RTP stream to
 break. We also now complain when invites time out, sending an alert to the
 user about the proxy status.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3810 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-19 20:22:20 +00:00
Kurtis Heimerl
2fe7dd1ec4 Fixed sendsms bug, needed to move to non-interactive version
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3728 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-05 23:53:38 +00:00
Kurtis Heimerl
9a5f9b1ef0 Alexander's build fixes
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3722 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-05 01:42:14 +00:00
Kurtis Heimerl
4041066c6b missed a config variable
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3711 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-06-02 23:52:03 +00:00
Kurtis Heimerl
4e4552d65f attempting to fix #937 in public, basically forgot to check if sip_method exists.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3700 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-05-31 02:44:12 +00:00
Kurtis Heimerl
f889334bb7 Missed a small number of files
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3691 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-05-31 00:05:26 +00:00
Kurtis Heimerl
27aee75dd5 New-style socketed CLI support. Hooray histories!
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3690 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-05-31 00:05:22 +00:00
Kurtis Heimerl
fa00372820 Adding MultiARFCN support to RAD1 radio.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3689 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-05-31 00:05:17 +00:00
Kurtis Heimerl
13ece1dbae Adding MultiARFCN support to core.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3688 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-05-31 00:05:12 +00:00
Kurtis Heimerl
32c86513e3 $ dropped by the network by retransmitting.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3677 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-05-28 01:07:16 +00:00
Harvind Samra
2f40797d0f FPGA source code.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3457 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-04-15 05:11:26 +00:00
Kurtis Heimerl
2c1c69d9e4 moved subscriberRegistry code around SIPInterface so that it only updates on an outgoing REGISTER, INVITE, or MESSAGE
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3361 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-24 22:38:08 +00:00
Kurtis Heimerl
13c55a6167 fixed FreeSWITCH scripts to now be more generic and handle errors better.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3359 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-24 07:04:21 +00:00
Kurtis Heimerl
3b32f8f1a4 Had error code backwards for SR, caused spurious SR failure messages. Fixed.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3356 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-23 06:25:20 +00:00
Kurtis Heimerl
793ff7e859 Made FreeSWITCH dialplan more generic
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3341 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-19 00:50:28 +00:00
Thomas Tsou
4aeadf0706 transceiver, usrp1: fix transmit gain setting bug
Transmit gain setting would deceptively set the receive
gain instead. Since transmit attenuation is a combination
of RF gain and digital scaling, this major copy/paste bug
may have gone unnoticed by many users.

Reported-by: Robin Coxe <coxe@close-haul.com>
Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3309 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-03-13 04:05:30 +00:00
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