Commit Graph

1299 Commits

Author SHA1 Message Date
Harald Welte 1780cb821f utility functions to convert RXLEV into dBm and vice versa 2009-12-12 15:37:54 +01:00
Harald Welte a0d86af599 fix some integer underflows in MS power calculation 2009-12-12 14:21:16 +01:00
Harald Welte 7cfd854d20 Merge remote branch 'origin/master' 2009-12-12 14:11:09 +01:00
Harald Welte 395cb6be03 add warning about accept-all network on non-barred cells 2009-12-12 13:44:19 +01:00
Harald Welte f330bf425a fix compile warning in db.c 2009-12-09 19:19:45 +01:00
Harald Welte b5586249b8 mark lchan2chan_nr() using a 'const' parameter
which fixes some compile warnings at some callers.
2009-12-09 19:18:32 +01:00
Harald Welte 3eb05cea0f remove execute permission from abis_nm.c 2009-12-06 12:23:47 +05:30
Harald Welte 59936d7c30 location updating reject cause now specified on VTY rather than command line argument 2009-12-06 12:22:59 +05:30
Holger Hans Peter Freyther 2b8679f7fe Fix make distcheck by adding the new headers... 2009-12-06 04:30:00 +01:00
Holger Hans Peter Freyther 49b05d3388 [bsc_hack] Ignore the sigpipe...
We might read or write on the OML link when the BTS is
reset and will get SIGPIPE interrupt and be gone... Just
ignore the SIGPIPE we will get the "exception" on the next
run of bsc_select and kill the (old) OML link.
2009-12-06 04:25:05 +01:00
Steffen Neubauer e5e0eb77ba [sms] trivial: Removed unneeded double check in unbcdify 2009-12-05 12:07:12 +05:30
Harald Welte 5b8d7d30fe [system_information] fix BCCH list generation for GSM900
We have to make sure to skip the global list header
2009-12-05 11:58:24 +05:30
Harald Welte bf574a4e3c [BS11] don't put invalid channel combination into the config file 2009-12-04 11:23:12 +05:30
Harald Welte 76ba881c3a ip.access: add nanoBTS channel combination constraints 2009-12-02 02:45:23 +05:30
Harald Welte b284b476ea ip.access speech mode for TCH/H channels 2009-12-02 01:58:23 +05:30
Harald Welte 8750421f21 move RTP socket information from timeslot to lchan
With ip.access, in case of TCH/H, we have one RTP stream for each half-slot
(lchan), not just one per on-air timeslot.  This is quite different from
a classic BTS where the TRAU frames of the two TCH/H channels would be
part of the same 16k sub-slot in a E1 timeslot.
2009-12-02 01:56:49 +05:30
Harald Welte a54a2bbfc9 Replace template-based SYSTEM INFORMATION with real implementation
Before this commit, OpenBSC used templates for the SYSTEM INFO
1, 2, 3, 4, 5 and 6 messages.  Those templates were patched in
various places to reflect the network config like ARFCN.

Now, we actually generate those SI messages ourselves, using
values from the configuration file, and even calculating neighbor
cell lists.

All bts'es that you have configured in OpenBSC will end up in
the neighbor cell list - which should be more than sufficient for
the current small-single-site networks.
2009-12-01 18:04:30 +05:30
Harald Welte 4d42bd80bb make use of new S_GLOBAL_SHUTDOWN signal to properly close pcap_fd
This avoids broken pcap files with partial packets due to non-flushed
buffers.
2009-12-01 17:58:32 +05:30
Harald Welte d21adfed6b Introduce new S_GLOBAL_SHUTDOWN signal
This is used to notify various parts of OpenBSC that we're shutting
down.
2009-12-01 17:58:26 +05:30
Harald Welte a9639802de Assign default values for T3101 and T3113
Without those default values, old config files will no longer work
after commit 23975e718fd456ff8be7effbb915903f1bc173be
2009-12-01 17:36:54 +05:30
Harald Welte 4efcc5469d [handover] export measurement reports via signal
This patch introduces the S_LCHAN_MEAS_REP signal which is used to export
measurement reports as input to the yet-to-be-written handover algorithm.
2009-11-30 19:16:47 +01:00
Harald Welte 96c0b080ed [handover] Implement handover control logic
Code to implement handover control logic.  A yet-to-be-implemented
handover algorithm will call bsc_handover_start(old_lchan, new_bts)
to start the handover process.
2009-11-29 22:56:14 +01:00
Harald Welte 6720a436f3 [handover] Introduce new handover related LCHAN signals
This introduces the signals S_LCHAN_ACTIVATE_{ACK,NACK} and
S_LCAN_HANDOVER_{FAIL,COMPL,DETECT} as well as code that actually issues
those signals.  The signals are relevant for a yet-to-be-written handover
control logic.
2009-11-29 22:45:52 +01:00
Harald Welte f849366e04 [handover] Implement 04.08 HANDOVER COMMAND
This is needed by a yet-to-be-implemented handover algorithm, after
it has allocated a new lchan for the MS.  Also missing: handling
the actual HANDOVER COMPLETE / FAIL messages in response.
2009-11-29 20:02:53 +01:00
Harald Welte 323f4e06d3 print debug statement in case of HANDOVER COMPLETE or HANDOVER FAILED 2009-11-29 20:02:20 +01:00
Harald Welte c20bd1d2d1 New complete measurement result/report handling
This patch extends struct gsm_meas_rep into a complete structure containing all
information from both uplink and downlink measurement results/reports.

This is a first step to provide this complete measurement data as a C structure
into a to-be-implemented handover decision algorithm.
2009-11-29 19:07:28 +01:00
Harald Welte 617f1dede3 add notes about proposed handover algorithm 2009-11-29 17:41:22 +01:00
Harald Welte 951e351cd1 RSL: catch inconsistent parameters ofr channel_mode_from_lchan() 2009-11-27 08:55:16 +01:00
Harald Welte b738e1ecce [wireshark] patch to correctly decode SYSTEM INFORMATION on BCCH FILLING 2009-11-26 23:47:21 +01:00
Steffen Neubauer 9cfb0406b9 [SMS] Implement TP-VPF-ENHANCED
While doing so, we also restructure/reorganize the vailidity period
parsing in general.
2009-11-26 12:28:41 +01:00
Holger Hans Peter Freyther 1c8b480c46 [vty] Add option to disable RF on a given TRX.
- Make sure that on runtime the Radio Carrier can be
  locked and unlocked. The vty code calls into the
  Abis NM to lock/unlock the channel and the state is
  stored there.

- Make sure that on start the Radio Carries remains
  offline and we are not starting it. On start the
  radio carrier is either locked or unlocked. This means
  the RSL will not connect until the RF is unlocked. It
  will connect then. To see RSL bringup failures one
  needs to parse the RSL nack message.

- When the TRX is locked on startup the RSL link will
  only be established after it will be unlocked.
2009-11-24 13:08:50 +01:00
Holger Hans Peter Freyther 7622a99f95 [bsc_init] Activate the RC and the RSL link from the Software Activated Callback
On cold start the RSL link will not be brought up. Wait for the
Software to be Activated before starting the RSL link. This is
working reliable on the BTS I have tested with.

This is a partial revert of 8406ec2437fcc28906b2085e305d79ae73accc2a and
was discussed on the mailinglist.
2009-11-24 10:49:59 +01:00
Holger Hans Peter Freyther f04f23c68a [sms] Fix compile warning by including gsm_data.h
In file included from sms_test.c:27:
../../include/openbsc/gsm_utils.h:33: warning: `enum gsm_band' declared inside parameter list
../../include/openbsc/gsm_utils.h:33: warning: its scope is only this definition or declaration, which is probably not what you want
../../include/openbsc/gsm_utils.h:34: warning: `enum gsm_band' declared inside parameter list
2009-11-22 18:01:42 +01:00
Holger Hans Peter Freyther 4b9042a646 [network] Make use of T3113 for paging
Add it to the configuration files and make use
of it in the the paging.c.
2009-11-22 05:28:24 +01:00
Holger Hans Peter Freyther 8973386eec [network] Add config option for the remaining network timers
There are all set to 0 and not used within the code yet but
should be used in the future.
2009-11-22 05:28:23 +01:00
Holger Hans Peter Freyther 26ba2e7c68 [network] Make T3101 configurable and use it in abis_rsl 2009-11-22 05:28:23 +01:00
Holger Hans Peter Freyther a614a4c825 [chan] Alloc SDCCH for certain reserved types
Follow notes:
    2.) Allocate a SDCCH for type "LMU"
    2a.)Allocate a SDCCH for the three reserved types
    2b.)Pick LCHAN type none to "ignore" the request
2009-11-22 05:28:23 +01:00
Holger Hans Peter Freyther 011ead4c37 [talloc] Provide a copy of strnlen on OSX
The implementation is taken from a blogspot and I don't think
it is copyrightable...
2009-11-22 05:28:14 +01:00
Holger Hans Peter Freyther 313d0d2048 [misc] Fix the make distcheck
Mention the two new header files, do not list isdnsync twice
2009-11-20 17:58:52 +01:00
Holger Hans Peter Freyther 9d09a8f1e6 [contrib] Add a utility to convert an IE page to an enum
This script is parsing the values, converting the bits into
a number and replacing the text... This should help to go from
spec to code more quickly... next thing would be this for the
structs used...
2009-11-20 17:29:33 +01:00
Holger Hans Peter Freyther f8dc822dd2 Merge branch 'on-waves/mgcp' 2009-11-20 14:12:12 +01:00
Holger Hans Peter Freyther d5607c772c [mgcp] Make the number of endpoints configurable...
Allow to configure the number of endpoints at start. Currently
this will not be changed at runtime but one needs to save the
config and restart the system.
2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther ba7bf579a1 [mgcp] The nanoBTS is not binding a RTCP port
Do not guess the RTCP port as it might be the RTP port
of another connection.
2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther 657c7fb862 [mgcp] The initialisation is done inside CRCX, remove here 2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther 1006facc88 [mgcp] Do not forward or find the BTS if the endpoint is unused
Forget where the bts and network is located on DLCX and CRCX otherwise
we would have forwarded BTS data to the wrong endpoint and would have
not tried to discover the BTS again.

In the case of early bind we might get data from the BTS before
the CRCX and after DLCX... just ignore it then
2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther bca5c685d7 [mgcp] Add a show command for the mgcp... 2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther daa7da72e5 [mgcp] Fix writing the configuration file 2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther 3adc62883c [mgcp] Add telnet interface for mgcp. 2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther 652fde328e [mgcp] MGCP... update config file to use AMR 2009-11-20 14:05:17 +01:00
Holger Hans Peter Freyther e6de05e14c [mgcp] Add option to route audio back to both ends
This is a simple echo functionality in the MGCP... it
will send the audio back to the network|bts..
2009-11-20 14:05:17 +01:00