Harald Welte (local)
db552c56bb
don't try to deliver sms to a subscriber that's not registered
2009-08-15 20:15:14 +02:00
Harald Welte (local)
0abaf33297
paging_request() now returns the number of started paging requests
...
this helps the caller to determine if he will ever get called back
or not (and if he should free his data structures now or not)
2009-08-15 11:25:45 +02:00
Harald Welte
10250e657b
sms_from_text needs to return struct gsm_sms *
2009-08-15 03:28:15 +02:00
Harald Welte
731fd91b24
fix printing of TMSI on VTY
2009-08-15 03:24:51 +02:00
Harald Welte
b2dc37f512
Merge commit 'har/master'
2009-08-15 03:21:45 +02:00
Daniel Willmann
d5d5e1d460
Fix decoding of SMS Data Coding Scheme
2009-08-15 03:19:40 +02:00
Harald Welte
e903edf580
provide return code from paging_request() function
...
this enables the caller to detect if the paging request was rejected
by the paging layer, especially in case it is already paging this very
subscriber.
In the case of SMS / 04.11, we used to have a memory leak of struct gsm_sms's,
since we would only free them from the paging succeeded/expired callbacks.
2009-08-15 03:16:17 +02:00
Daniel Willmann
6b024cb83a
Handle SMS with UCS2 and binary userdata
2009-08-15 03:15:08 +02:00
Harald Welte (local)
d19e58b13c
move talloc context creation out of on_dso / constructors
...
the various constructors get called in a non-obvious, linker determined
order, which makes certain objects disappear from the talloc report.
This change moves the talloc context creation into a new talloc_ctx.c file
2009-08-15 02:30:58 +02:00
Harald Welte (local)
efc92311e2
allow vty to set periodic location updating timer t3212
2009-08-14 23:09:25 +02:00
Harald Welte (local)
4ffb7b41b4
Merge commit 'har/stefan'
2009-08-14 21:38:41 +02:00
Stefan Schmidt
5f8a78bd6c
hlrsync: Sync SMS from the web db to the hlr.
...
Bugs from me, fixes from Jan. ;)
2009-08-14 21:33:34 +02:00
Harald Welte (local)
143fd51da9
display TMSI in 8 digit hex
2009-08-14 21:17:44 +02:00
Harald Welte (local)
15920de8ce
add 'show subscriber cache' vty command to debug subscriber refcount leaks
2009-08-14 20:27:16 +02:00
Harald Welte (local)
05e676356f
sms send pending now sends _all_ pending at the same time
2009-08-14 16:01:20 +02:00
Harald Welte (local)
86b17172fd
fix sms layer timer leak/corruiption using trans_free()
...
we only stopped the cp1* timer on reception of cp-ack, but not
in error cases like rx of cp-error.
2009-08-14 14:52:17 +02:00
Harald Welte (local)
fed176ab90
implement a timer_list check before we return into the select() loop
...
this helps us to debug timer_list corruption
2009-08-14 14:30:00 +02:00
Harald Welte (local)
daef606502
respect the link_id, not only the SAPI from SMS code
...
SMS related messages are all sent over SAPI=3. But in addition
to that, we also need to send it over the correct link identifier,
i.e. SACCH or main signalling channel
2009-08-14 11:41:12 +02:00
Harald Welte (local)
c89a511616
add more debugging to SMS layer
2009-08-14 10:42:43 +02:00
Stefan Schmidt
2c2ecdf610
Merge branch 'master' of git@192.168.100.10:openbsc
2009-08-13 21:34:02 +02:00
Stefan Schmidt
aa665876c0
Merge branch 'master' of git@192.168.100.10:openbsc
2009-08-13 21:01:25 +02:00
Stefan Schmidt
689537af9d
gsm_04_11: Month in unix time starts with 0.
2009-08-13 21:00:44 +02:00
Jan Luebbe
bf0d5bde90
store imsi and tmsi, stop changing the row objects
2009-08-13 20:52:55 +02:00
Harald Welte (local)
ee9afe332d
when in token auth mode, accept phones that are authorized
2009-08-13 20:44:23 +02:00
Harald Welte (local)
2928bc0233
add the allocated subscriber extension to the auth token SMS
2009-08-13 20:43:58 +02:00
Daniel Willmann
bc9e9f856b
Merge commit 'har/laforge'
2009-08-13 20:30:46 +02:00
Harald Welte
7f69816144
disable emergency call bit (i.e. cell does not support emergency call)
2009-08-13 20:26:10 +02:00
Daniel Willmann
eea9337e9e
Encode the network name int the MM info messages in GSM 7bit alphabet.
2009-08-13 16:38:56 +02:00
Daniel Willmann
9aef14547a
Beautify septet->octet calculation (do not use ceil)
2009-08-13 16:35:00 +02:00
Daniel Willmann
58c83d8368
Support sms with a validity period format of none
2009-08-13 16:08:09 +02:00
Jan Luebbe
6f656fcf1f
add simple HLR DB sync script
2009-08-13 13:55:33 +02:00
Harald Welte (local)
50d127199d
fix token auth implementation
2009-08-13 13:52:14 +02:00
Harald Welte (local)
aa9dc19ca7
remove FIRST_CONTACT signal, the subscriber flag is sufficient
2009-08-13 13:49:51 +02:00
Harald Welte (local)
3feef255d2
fix token allocation sql strings
2009-08-13 13:26:11 +02:00
Harald Welte (local)
571602f43c
fix segfault in vty sms sending code
2009-08-13 13:25:32 +02:00
Jan Luebbe
336f8ec57a
allocate a token for new subscribers
2009-08-13 10:15:09 +02:00
Jan Luebbe
06513f26a1
replace the command line option -a with the auth-policy config option
2009-08-13 10:14:59 +02:00
Harald Welte (local)
0e451d0f2e
add 'ms max power' vty command to set the maximum MS power in dBm
2009-08-13 10:14:26 +02:00
Harald Welte
ccceef8fe9
add code for token auth sequencing
...
* When we first see a subscriber, send the sms
* when the sms completes, send auth req + auth reject and close the channel
2009-08-13 00:57:54 +02:00
Harald Welte
8c340fee21
factor out the function to generate struct gsm_sms from a string
2009-08-13 00:57:31 +02:00
Daniel Willmann
6b1e822611
Fix gsm_7bit_{en,de}code function and sms user_data calculations
...
With the 7bit alphabet the user_data_len field needs to be in
septets (characters) and not in octets occupied.
2009-08-12 23:49:48 +02:00
Harald Welte
7984d5c260
add functions to send AUTH REQ and REJECT
2009-08-12 22:56:50 +02:00
Jan Luebbe
f0b4cef137
fix random extension generation
2009-08-12 22:22:53 +02:00
Jan Luebbe
9eca37f93c
fix problems with tmsi uniqueness in the subscriber table
2009-08-12 22:22:42 +02:00
Jan Luebbe
1da59edf83
fix a wrong format specifier
2009-08-12 22:22:26 +02:00
Jan Luebbe
ebcce2aae1
allocate an extension when creating the subscriber
2009-08-12 22:22:20 +02:00
Jan Luebbe
31bef49be2
token support in the DB
2009-08-12 22:21:56 +02:00
Harald Welte
c70979a337
add help message about timestamp option
2009-08-12 21:52:11 +02:00
Harald Welte
61cd8831eb
patch power reduction into NM attributes
2009-08-12 21:50:41 +02:00
Harald Welte
000c0f44f3
patch the SI and NM attr tables independently
2009-08-12 21:45:02 +02:00