aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-12-19Never allocate transaction ID 7Sylvain Munaut1-1/+1
According to GSM 04.07 11.2.3.1.3 , TID 7 is "reserved for future extensions". Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-19Fix subscr ref leak for multi CM SERV REQSylvain Munaut1-1/+3
Multiple CM SERVICE REQUEST can happen on a single RR connection, in this case, since the subscr reference is tracked through lchan->subscr and will only be put'd once on lchan_free, we need to make sure we don't get several reference .... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-19Use 'new' rather than 'unknown' when starting transactionSylvain Munaut1-1/+1
'unknown' has a negative connotation for a case that's totally normal so refer to it as 'new' so it doesn't sound like a problem. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-19Fix transaction_id displayed in debug messageSylvain Munaut1-1/+1
In SMS debug messages, we always display the transaction ID as if we were 'sending' the message. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-19Fix typos in debug message / commentsSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-18[handover] lchan use count handling in case of trans_lchan_change()Harald Welte1-0/+5
2009-12-18remove call_handling.h, a reminescent of old daysHarald Welte1-64/+0
2009-12-18[handover]: make sure the new lchan keeps the subscriber pointer of the old ↵Harald Welte1-5/+6
lchan also, ensure that we don't print debug messages about handover in non-handover channel activation cases.
2009-12-18handover: use correct handover lookup functionHarald Welte1-1/+1
2009-12-18for now we only do handover of TCH channelsHarald Welte1-0/+9
2009-12-18fix segfault in case of handover timer expirationHarald Welte1-0/+1
2009-12-17add handover.h file to Makefile.am to make distcheck happyHarald Welte1-1/+1
2009-12-17logging: introduce log levels at caller siteHarald Welte16-102/+140
This introduces a new LOGP() macro together with LOGL_* definition to support multiple log levels (severities) throughout the codebase. Please note that the actual logging system does not use them yet, in this patch we simply introduce the new macros at the caller site.
2009-12-17don't try multiple concurrent handovers for 1 channelHarald Welte1-0/+5
2009-12-17[vty] ensure we mark fd in writefd once we vty_out() somethingHarald Welte1-0/+2
2009-12-17call trans_lchan_change() from ho_gsm48_ho_compl()Harald Welte1-0/+3
2009-12-17introduce trans_lchan_change() to update transaction about lchan changeHarald Welte2-0/+24
2009-12-17[handover] first functional handover implementationHarald Welte10-9/+164
With this commit, we can successfully hand over a channel from one cell to another cell. We implement asynchronous intra-BSC (but inter-BTS) handover. Changes: * introduce new DHO log category * extend rsl_chan_activate_lchan() with argument for HO reference * introduce actual minimal handover decision making in handover_decision.c * various fixes to bsc_handover_start() in handover_logic.c
2009-12-17make handover reference a function call argumentHarald Welte2-6/+7
2009-12-16assign measurement report lchan member after memset'ing itHarald Welte1-0/+1
2009-12-16measurement report: correctly parse BSIC of first neighbor cellHarald Welte1-1/+1
2009-12-16ip.access: Keep OML/RSL up/down state per-bts for multi-BTS setupsHarald Welte2-7/+7
2009-12-16print measurement reports more verboselyHarald Welte1-3/+11
2009-12-1604.08: fix off-by-one error while parsing measurement resultsHarald Welte1-19/+19
2009-12-16fix bug in bitvec resulting in all bits being set to 0xffHarald Welte1-3/+3
2009-12-16[system_information] Print more debugging about what's going onHarald Welte2-11/+26
2009-12-15mroe comments on meas_rep data structuresHarald Welte1-0/+5
2009-12-15introduce cache of 6 last recently received measurement reports for each lchanHarald Welte5-21/+47
2009-12-15add BSIC parameter to gsm_bts_neighbor()Harald Welte2-3/+6
When looking for the gsm_bts of a neighbor cell, use BSIC and ARFCN tuple rather than just ARFCN for better identification purpose.
2009-12-14Implement gsm_bts_neighbor() function to determine neighbor BTSHarald Welte2-0/+21
We will need this for the actual handover algorithm implementation, as we will only know the current BTS and the BCCH ARFCN of the strongest cell in the measurement reports. Using this new function, we can resolve the matching gsm_bts.
2009-12-1404.08 MEAS REP: Convert relative cell number to ARFCNHarald Welte2-7/+12
Since we are keeping a bitvec of the neighbor cells, we can now use bitvec_get_nth_set_bit() to determine the ARFCN for each reported cell in the 04.08 MEASUREMENT REPORT.
2009-12-14bitvec: Introduce bitvec_get_nth_set_bit() functionHarald Welte2-0/+19
This is particularly important for determining the ARFCN for cells reported in 04.08 MEAS REP.
2009-12-14system_information: use bitvec to generate frequency listsHarald Welte3-66/+63
We use a 1024-bit-sized bitvec to generate the BA and neighbor frequency list. This bitvec is still generated from the list of all BTS's inside the BSC, but this patch is the first step to generalize this, i.e. generate arbitrary neighbor lists.
2009-12-14bitvec updates and code simplificationHarald Welte2-9/+43
* introduce a new bitvec_get_bit_pos() function to determine the bit value at a given position inside a bit vector * make sure bitvec_{get,set}_bit_pos() share code as possible
2009-12-14[system_information] fix bit map 0 frequency list generationHarald Welte1-2/+9
Our frequency lists for GSM900 were completely wrong, as the bit map 0 encoding was not used correctly. This patch should fix it.
2009-12-14fix compiler warnings in gsm_04_08.cHarald Welte1-2/+2
2009-12-14make sure BSIC is patched into NM tables before initializing BS11Harald Welte1-0/+1
2009-12-14[PATCH] fix MM INFO parsing in vty_interfaceHarald Welte1-0/+1
2009-12-14Add VTY setting for whether or not to sending MM INFOHarald Welte3-2/+17
2009-12-13fix segfault in token_auth on SS_SUBSCR != ATTACHHarald Welte1-2/+2
2009-12-13introduce new signal every time we get a mobile identityHarald Welte2-0/+7
2009-12-13[RRLP] make RRLP mode configurable from config fileHarald Welte4-7/+89
We now support different RRLP modes (including "none" to disable RRLP), you can configure it via "rrlp mode" in the "network" section of openbsc.cfg.
2009-12-12Gracefully reject non-speech callsHarald Welte3-25/+70
As we currently really only deal with voice/speech calls and don't support FAX and DATA (CSD) calls, we now gracefully reject them.
2009-12-12make speech calls with NECI=1 workHarald Welte1-1/+3
Fix minor bug with speech calls in case of NECI=1
2009-12-12[04.08] use lchan_auto_release to quickly close channelHarald Welte1-7/+11
In some cases, we can try to close the lchan a bit faster than our lchan release timeout: * After we've sent LOC UPD ACCEPT and MM INFO * After a phone has confirmed the RELEASE of a call
2009-12-12If we're trying to allocate TCH/H but don't have it, fallback to TCH/FHarald Welte1-0/+3
The rationale is as following: If we have NECI=1, then the phone will request a channel with CHREQ "0100xxxx Originating speech call from dual-rate mobile station when TCH/H is sufficient and supported by the MS for speech calls", then we will try to allocate a TCH/H [as it is sufficient]. However, if there are no free TCH/H slots on the BTS, we abandon and can't handle the MO call at all :(
2009-12-12If we establish a TCH/H voice call, the reason is CALL, not OTHERHarald Welte1-1/+1
2009-12-12[RSL] print human-readable channel type during channel allocation failureHarald Welte1-2/+2
2009-12-12[VTY] add more cell reselection parameters to VTYHarald Welte3-6/+37
allow setting of 'cell reselection hysteresis' and 'rxlev access min' from VTY for experiments with cell reselection.
2009-12-12print some more RF related information about BTS in VTYHarald Welte1-0/+6