Daniel Willmann
6e6143e292
Add second test SMS
2008-12-28 21:38:26 +00:00
Daniel Willmann
10d06f6f8c
Add coloring for SMS debug messages
2008-12-28 21:38:25 +00:00
Holger Freyther
33a6184a9e
Add the new options to the getopt_long call as well
...
This should allow to set the MCC and MNC now
2008-12-28 16:57:19 +00:00
Harald Welte
104604e10a
Fix compile, on rebase the static_assert change got lost...
...
at the beginning we had l2 pseudo length in type5 and type6
messages as well but that got removed.
2008-12-28 16:36:11 +00:00
Holger Freyther
b9ddfd09e8
[bsc_hack] Patch the tables before we setup the rsl
...
Currently we just patch the MCC, MNC and LAC. Allow to change
the siX packages by removing the const.
2008-12-28 16:32:45 +00:00
Holger Freyther
177466199f
[gsm0408] Make the generate_lai usable by other code
...
Prefix generate_lai with gsm0408 and update call sites. It will
be used from within bsc_hack.c
2008-12-28 16:32:44 +00:00
Holger Freyther
4d505470e8
[bsc_hack] Start to understand the SI packages we send
...
Add comments in front of the bytes to define where they
are coming from.
2008-12-28 16:32:42 +00:00
Holger Freyther
24287b6bb2
[bsc_hack] Make sure that the newly defined structs match the current packets
...
For System Information Type 5 and System Information Type 6 the L2 pseudo
length is not transmitted. This is why we substract the struct size with -1.
2008-12-28 16:32:41 +00:00
Holger Freyther
1ad732c699
[debug.h] Introduce a static assert using the array with negative size trick
...
It is inspired by the COMPILE_ASSERT from WebKit and is using the well
known trick to get compile time assertions.
2008-12-28 16:32:41 +00:00
Holger Freyther
5e85c8ea40
[gsm_04_08] Add structs for system information type 1 to 6
...
system information type 4 is a bit tricky as it has
a variable length and is terminated by a manadantory field.
System Information Type 6 has a mandantory SI 6 Reset Octet
but our BTS is happy with not receiving it. Make it optional
by the adding a 'pointer'.
System Information Type 5 and System Information Type 6 are
send through rsl_sacch_filling and it looks like we do not
need to send the L2 pseudo length. So far we have not found
the documentation confirming this. This is why the header
from Type 1 to Type 4 is not used.
2008-12-28 16:32:39 +00:00
Holger Freyther
efde7fb1eb
bsc_hack: Add command line parameter to set the MCC and MNC
...
The patching of the system information type1-type4 messages
are still to be done.
2008-12-28 14:14:56 +00:00
Jan Luebbe
3444ddb85d
fix typo in debug message
2008-12-28 12:37:15 +00:00
Harald Welte
255539c742
working state up to location update and classmark inquiry
2008-12-28 02:26:27 +00:00
Daniel Willmann
fdd0a6c157
Add SMS (GSM 04.11) testing program
2008-12-28 01:51:14 +00:00
Daniel Willmann
8b3390effd
Start implementing GSM 04.11 (short message service)
2008-12-28 00:31:09 +00:00
Daniel Willmann
f3c8e11336
sms.txt: Analyze CP-DATA, RP-DATA, TPDU
2008-12-27 23:37:16 +00:00
Stefan Schmidt
4d4661d65b
Draft ideas for high level call handling
2008-12-27 22:59:48 +00:00
Jan Luebbe
391d86e0d5
add extension field to subscriber struct and name column to db
2008-12-27 22:33:34 +00:00
Harald Welte
1a4121882e
fix TMSI length in Mobile Identity IE of LOCATION UPDATE ACCEPT
2008-12-27 22:13:43 +00:00
Harald Welte
a6eb9f0213
sms
2008-12-27 21:46:23 +00:00
Harald Welte
bcae43fe1b
SMS stub
2008-12-27 21:45:37 +00:00
Harald Welte
75a983fab0
* add database handling
...
* fix IMSI handling
2008-12-27 21:34:06 +00:00
Harald Welte
10b487b1c0
* fix location update reject (actually reject, not accept)
2008-12-27 19:53:37 +00:00
Harald Welte
98243f8e48
* release channel after LOCATION UPDATE REJECT
2008-12-27 19:46:41 +00:00
Harald Welte
2d5b638bd3
* fix sending of wrong message discriminator for dedicated channel RSL msgs
...
* remove dead old code for TCH/SDCCH activation
* fix RF CHANNEL RELEASE logic + integration with lchan_alloc/free
* use Page Mode SAME and not NORMAL
2008-12-27 19:46:06 +00:00
Jan Luebbe
e30dbb3fa3
also track creation and update time for subscriber and equipment
2008-12-27 18:08:13 +00:00
Jan Luebbe
fac25fccbd
add a equipment table
2008-12-27 18:04:34 +00:00
Harald Welte
a3d0438ff7
missing header file changes
2008-12-27 17:02:56 +00:00
Jan Luebbe
6e2e545fa1
add authorized state to subscribers in db
2008-12-27 16:47:55 +00:00
Harald Welte
e9a8261486
hack to write TS2 frames to a file
2008-12-27 16:45:29 +00:00
Harald Welte
4bc90a160a
add minimal MO call state transitions
2008-12-27 16:32:52 +00:00
Jan Luebbe
7eda3ab3c8
remove db debug output
2008-12-27 16:24:42 +00:00
Jan Luebbe
5c15c85be3
rewrite db backend
2008-12-27 15:59:25 +00:00
Holger Freyther
b332f61f0d
Use getopt in the bsc_hack to parse options
...
Current options include a draft of the help screen, an option
to disable the colors and to specify the debug categories to
show.
2008-12-27 12:46:51 +00:00
Holger Freyther
5ee72eeeb1
Prefix debug symbols with debug_ to reduce the namesapce pollution
2008-12-27 12:46:49 +00:00
Holger Freyther
7c03e4c57a
Assign colors to the different categories
...
Let there be colors. I have no idea if this will be appreciated. It can
be disabled by an option.
2008-12-27 12:46:48 +00:00
Holger Freyther
d546e31628
Add code to parse a debug category string
...
Use strdup to be able to use strtok on the category string and add
a test case. Also safe some more information to be able to use color
in the print statement.
2008-12-27 12:03:07 +00:00
Holger Freyther
42f50bb3ee
Make the test timer a noinst program
2008-12-27 12:03:04 +00:00
Harald Welte
6125306e73
fix typo
2008-12-27 11:25:50 +00:00
Harald Welte
b275042cd0
reduce usleep time for RSL to 10ms
2008-12-27 11:24:23 +00:00
Harald Welte
231ad4f9c1
Send IDENTITY REQUEST after LOCATION UPDATE REQUEST
2008-12-27 11:15:38 +00:00
Harald Welte
9524e34ee4
* lchan_free() the channels that we RF_CHAN_RELEASE
2008-12-27 11:13:36 +00:00
Holger Freyther
32636e8910
Move the debug code to a separate debug.c
2008-12-27 11:07:15 +00:00
Harald Welte
14537e5f1d
* send RF CHANNEL RELEASE if we get CONNECTION FAIL INDICATION
2008-12-27 10:29:08 +00:00
Harald Welte
fc977a8b8b
* translate MOBILE IDENTITY into string
...
* add empty handler for GPRS SUSPENSION REQUEST
2008-12-27 10:19:37 +00:00
Harald Welte
0f7bf9ce4a
send RF CHANNEL RELEASE upon RELEASE INDICATION from BTS
2008-12-27 10:18:47 +00:00
Holger Freyther
5f75598c28
Introduce a simple timer API....
...
One can use add_timer or schedule_timer to add a timer. After
the timeout time has been reached the callback will be called.
One can call add_time/schedule_timer and del_timer from within
the callback.
2008-12-27 09:42:59 +00:00
Holger Freyther
5677ae35ba
misdn.h forward declare mi_setup
2008-12-27 09:41:03 +00:00
Holger Freyther
059c254487
Fix warning and return an error code
2008-12-27 09:39:48 +00:00
Holger Freyther
facfce925f
whcih -> which
2008-12-27 09:38:51 +00:00