41 Commits

Author SHA1 Message Date
Ivan Kluchnikov
3ab2e31435 Implemented TestCall function to CLI and CallControl.
Function initiates a test call to a given IMSI with a given paging time.
When connection to a mobile is up, it opens UDP socket, which could be used to send and recieve L3 frames to/from the mobile.
2013-01-05 13:57:15 +04:00
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
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
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
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
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
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
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
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
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
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
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
bbc25c6a10 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
55d1bf25a4 $ 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
kurtis.heimerl
324ef54ca4 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
2b47eed455 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
3d4ec90bd1 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
09a051fcaa 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
a954b789f0 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
8e2b41f8cf 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
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
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
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
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
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
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
dburgess
f7647c258d Remove Makefile.in from SVN. Doesn't belong here.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2309 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-10-12 07:47:02 +00:00
dburgess
ba821c5f85 Fixed the license notices.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2305 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-10-12 01:23:28 +00:00
dburgess
508962442c Putting the actual OpenBTS P2.8 source code into the public SVN branch.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2242 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-10-07 02:40:51 +00:00