Holger Hans Peter Freyther
e70edf1fad
[ipaccess] Call it ipaccess-firmware
2009-12-27 14:07:40 +01:00
Harald Welte
354e49ee77
move get_string_value() und get_value_string() into debug.c
...
this makes bsc_mgcp and ipaccess-proxy compile again
2009-12-27 11:24:55 +01:00
Sylvain Munaut
a5914da58a
gsm_04_11: Support for implicit CP-ACK in case of multi-SMS
...
See GSM 04.11 Chapter 5.4 for details. The idea is that when
multi-SMS are mobile originated, it's possible the CP-ACK of
the previous transaction to be lost and the reception of a
new CP-DATA for a new transaction should close previous transaction
"as-if" we had received the CP-ACK ...
Note that testing is hard since it's an exceptional condition that's
hard to create. I tested by temporarly disabling CP-ACK processing
and checked it worked as expected.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27 01:09:41 +01:00
Harald Welte (local)
e16fdb0ead
print TS name in RLL ERR IND
2009-12-26 22:48:25 +01:00
Harald Welte (local)
4bd7664140
[rsl] correctly print handover detect and connection fail
2009-12-26 22:48:21 +01:00
Harald Welte (local)
38a9e5d8b2
print LAC and BTS number when showing location update reject
2009-12-26 22:48:16 +01:00
Harald Welte (local)
22f0532e7b
fix missing space in log message
2009-12-26 22:48:12 +01:00
Harald Welte (local)
0bb88169de
[debug] add new 'logging level' command to set loglevel more user friendly
2009-12-26 22:48:09 +01:00
Harald Welte (local)
5b722d4d0b
generate INFO events for CC SETUP and LOC UPD REJ
2009-12-26 22:48:00 +01:00
Harald Welte (local)
91438a61b2
add 'get_string_value()' as inverse function of 'get_value_string()'
2009-12-26 22:47:55 +01:00
Harald Welte (local)
c9ba256f97
[db] A new subscriber is an INFO event, not NOTICE
2009-12-26 22:47:48 +01:00
Harald Welte (local)
990ca037ea
'classmark1' is not an integer field in the database
2009-12-26 22:47:43 +01:00
Harald Welte (local)
fe43b118da
[meas rep] fix parsing of BSIC in third reported neighbor cell
2009-12-26 22:47:33 +01:00
Harald Welte
58eeabac9a
[handover] print INFO message when doing handover
2009-12-26 00:29:18 +01:00
Harald Welte
350c2d3e5e
[meas rep] print the neighbor index when debugp'ing a neigh cell meas
2009-12-26 00:29:05 +01:00
Harald Welte
3d6166c441
fix off-by-one error when mapping from meas rep to neighbor cell
2009-12-26 00:28:45 +01:00
Harald Welte
10c894df66
[meas_rep] Add raw neighbor index into per-cell parsed meas rep
2009-12-26 00:28:37 +01:00
Harald Welte
470f7f9dc2
[meas rep] cosmetic cleanup
2009-12-26 00:28:27 +01:00
Harald Welte
2ea66fbb6b
[meas rep] Correctly parse neighbor cell index of first reported neighbor cell
2009-12-26 00:28:23 +01:00
Sylvain Munaut
40f84a9b27
system_information: Fix BCCH Allocation when only 1 BTS present
...
The current code used the variable bitmap format, but
that's not possible since in this format the base ARFCN is
part of the set. That lead to a neighbor list containing ARFCN 0.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24 15:11:00 +01:00
Sylvain Munaut
d17cdeb933
gsm_04_11: Release SMS transaction only after starting next one.
...
This ensures that we don't re-use the same transaction ID.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24 15:10:06 +01:00
Sylvain Munaut
e65af1bca5
gsm_04_11: In gsm411_send_sms_lchan fix transaction id error handling
...
We need transaction_id to be a int (as returned by trans_assign_trans_id)
to detect the error condition -1.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24 15:10:01 +01:00
Sylvain Munaut
a36dbcac9f
transaction: Change id allocator method to be 'circular'
...
The idea is to find the highest used id and try to get the
next. This way when there are transactions back to back with
an overlap, we go 0 1 2 3 4 5 6 0 1 2 ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24 15:09:55 +01:00
Harald Welte
ced9a917a0
introduce multiple log levels (DEBUG/INFO/NOTICE/ERROR) to SMS code
2009-12-24 15:08:18 +01:00
Harald Welte
0747c6a234
add (and use) new subscr_name() function to get name or IMSI
2009-12-24 14:50:24 +01:00
Harald Welte
906a3f51d5
rsl: fix "CONNECTION FAIL: RELEASING" message
2009-12-24 14:49:07 +01:00
Harald Welte
779b65e4e7
[debug] Change the default log level to LOGL_NOTICE
...
This marks the departure from printing all the debug messages to the console by
default. We only print NOTICE and WARNING level messages by default
If you're interested in more details, you need to enable it via command
line options or the VTY
2009-12-24 13:48:33 +01:00
Harald Welte
f00c2acc32
Add LOGL_INFO messages about subscriber attach/detach
2009-12-24 13:48:14 +01:00
Harald Welte
424873e2ca
print ARFCN, LAC and CID when bootstrapping RSL
2009-12-24 13:39:34 +01:00
Harald Welte
a2be686cd8
properly check for EAGAIN in recv() calls
...
If recv() has no more messages on a non-blocking socket, errno will be EAGAIN,
not the return value!
2009-12-24 13:35:18 +01:00
Harald Welte
49afbc3616
[handover] CRCX ACK without HO reference is normal, not an error
2009-12-24 13:27:02 +01:00
Harald Welte
16eac9676c
if we recv() from an abis-ip socket, don't consider -EAGAIN an error
2009-12-24 12:49:43 +01:00
Harald Welte
de4477a171
[logging] differentiate DEBUG, NOTICE and ERROR log levels in NM and RSL
2009-12-24 12:20:20 +01:00
Harald Welte
60e5f4f233
don't print directly to stderr, use LOGP()
2009-12-24 12:13:17 +01:00
Harald Welte
f58dea7c13
04_08: Differentiate between DEBUG and ERROR messages
...
also, don't use stderr directly anymore
2009-12-24 11:50:20 +01:00
Harald Welte
57fde55836
[debug] Introduce DREF debug category for reference counting
2009-12-24 11:46:44 +01:00
Harald Welte
273fdfd9a5
Converrt the database later to use DEBUGP/LOGP instead of stderr
2009-12-24 11:39:51 +01:00
Harald Welte
eff28ac68e
db: coding style cleanup
2009-12-24 11:39:51 +01:00
Holger Hans Peter Freyther
64148a94be
[ipaccess] Move ipaccess utilities into a dedicated subdirectory
2009-12-24 11:28:29 +01:00
Holger Hans Peter Freyther
0306798fb6
[ipaccess] Spend some more time on figuring out the format
2009-12-24 11:28:29 +01:00
Harald Welte
4ddb7c5e99
debug: add missing va_end()
2009-12-24 11:14:03 +01:00
Harald Welte
82ca579783
debug: workaround for strange va_list corruption bug
2009-12-24 11:12:11 +01:00
Harald Welte
0bbd480395
debug: make sure we always zero-terminate after snprintf()
2009-12-24 11:11:54 +01:00
Harald Welte
0c83660171
vty: sub-divide talloc contexts and include them in talloc report
...
The VTY code makes so many allocations that a full report is
simply too long to provide any useful information. So we sub-divide
it in multiple contexts, and report only one level deep at SIGURS1.
We also introduce SIGUSR2 for the full detailed VTY report.
2009-12-24 10:51:56 +01:00
Sylvain Munaut
8a8239e75d
db: Fix compile warning, declare db_sms_get_unsent_by_subscr
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24 10:13:46 +01:00
Harald Welte
edc7b2f85d
channel allocator: don't allocate channels of unavalable TRXs
...
In case we have multiple TRX configured, but not all of them are
actually active/operational, we should not try to allocate channels
from such transceivers.
2009-12-24 10:10:16 +01:00
Harald Welte
e50868892d
fix typo in talloc_ctx causing counters not to show up in talloc report
2009-12-24 10:07:36 +01:00
Harald Welte
2c87ec171f
use enum for operational state
2009-12-24 10:06:33 +01:00
Harald Welte
4d02dae8ad
counter: create their own talloc context for better readability
2009-12-24 10:04:09 +01:00
Harald Welte
512f645313
move msgb talloc context into talloc_ctx.c
...
This keeps the ordering right, independent of link ordering, it
will ensure that the talloc dump will also catch msgb related
memory leaks.
2009-12-24 09:43:25 +01:00