aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-01gsm_04_11.c: Use msgb->l4h instead of sms->smsh, as the latter is goneHarald Welte1-1/+1
2010-04-06Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-46/+43
* Move to the new log code and update binaries * Catch up with lchan changes from master Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/src/Makefile.am openbsc/src/bsc_rll.c openbsc/src/chan_alloc.c openbsc/src/debug.c openbsc/src/gsm_04_08.c openbsc/src/gsm_04_11.c openbsc/src/gsm_subscriber_base.c openbsc/src/handover_logic.c openbsc/src/silent_call.c openbsc/src/transaction.c openbsc/src/vty_interface.c openbsc/src/vty_interface_cmds.c
2010-03-29[misc] Remove whitespace from the end of the line.Holger Hans Peter Freyther1-6/+6
2010-03-25sms: Remove some more occurences of the GSM lchanHolger Hans Peter Freyther1-4/+2
2010-03-25Store the GSM BTS in the gsm subscriber connectionHolger Hans Peter Freyther1-7/+6
Remove further usage of lchan from the gsm 04.11 bits
2010-03-25bsc: Start creating 08.08 like APIHolger Hans Peter Freyther1-12/+4
The 08.08 API will interface with the internal BSC code and it is the boundary between MSC and BSC. So nothing that calls the BSC functionality should know about lchan or such.
2010-03-25sms: First run of removing lchan usage from MSC code paths.Holger Hans Peter Freyther1-11/+19
2010-03-25lchan: Change transaction to work on the GSM Subscriber ConnectionHolger Hans Peter Freyther1-6/+6
Change the MSC transaction code to operate on a GSM Subscriber Connection instead of the lchan. This will help us to separate the two commands properly.
2010-03-25lchan: Create a structure for MSC data of the lchanHolger Hans Peter Freyther1-12/+12
Prepare to split the BSC and the MSC part by putting the MSC data for a connection into a "gsm_subscriber_connection" struct and renaming the macros.
2010-03-24Specify a release reason for the lchanHolger Hans Peter Freyther1-2/+2
In case the put_lchan is making the refcount drop to zero use the release reason specified in the put_lchan call. This is used by the BSC MSC IP implementation for the assignment handling where the old channel is getting closed with a local end release (1).
2010-03-07move large parts of mncc.h and gsm48 encode/decode into libosmocoreHarald Welte1-2/+2
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-4/+4
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2009-12-27gsm_04_11: Support for implicit CP-ACK in case of multi-SMSSylvain Munaut1-0/+27
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-24gsm_04_11: Release SMS transaction only after starting next one.Sylvain Munaut1-4/+6
This ensures that we don't re-use the same transaction ID. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24gsm_04_11: In gsm411_send_sms_lchan fix transaction id error handlingSylvain Munaut1-1/+1
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-24introduce multiple log levels (DEBUG/INFO/NOTICE/ERROR) to SMS codeHarald Welte1-31/+40
2009-12-22statistics: Introduce 'struct counter' instead of using unsigned longHarald Welte1-5/+6
This has the advantage that counters can be added all over the code very easily, while having only one routine that stores all of the current counter values to the database. The counters are synced every 60 seconds, providing relatively fine grained statistics about the network usage as time passes by.
2009-12-22[gsm_04_11] Replace hardcoded transaction_id by real allocationHarald Welte1-1/+5
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-22keep some internal statistics inside OpenBSCHarald Welte1-1/+8
the statistics will give us some idea about the network load and performance.
2009-12-21[sms] bugfix: additional functionality indicator only appears in ↵Steffen Neubauer1-1/+2
TP_VPF_ENHANCED - not in TP_VPF_ABSOLUTE
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-05[sms] trivial: Removed unneeded double check in unbcdifySteffen Neubauer1-2/+1
2009-11-26[SMS] Implement TP-VPF-ENHANCEDSteffen Neubauer1-93/+156
While doing so, we also restructure/reorganize the vailidity period parsing in general.
2009-11-12move 'struct value_string' and 'get_value_string()' to gsm_dataHarald Welte1-18/+0
2009-11-11[SMS] implement GSM340_TP_VPF_ABSOLUTESteffen Neubauer1-3/+50
- Added function "gsm340_scts" to decode the service center time stamp into a UTC/GMT timestamp - in function gsm340_validity_period: can now decode validity period format absolute.
2009-10-22Fix warnings by removing unused variablesHolger Hans Peter Freyther1-3/+1
2009-09-27[gsm_04_11] Free transaction on RX_RP_ACK for SMSSylvain Munaut1-1/+2
When only one SMS is sent, the freeing of the lchan will automatically free all transactions on the lchan. However, if there are several SMS sent at once, the call to gsm411_send_sms_lchan will create a new transaction with the same caracteristics as the previous one. If the old one is not free'd, the next call to trans_find_by_id (triggered by the next incoming RP-ACK) will not return the good transaction and things go haywire. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-08-17actual code running at end of har2009Harald Welte (local)1-0/+8
2009-08-15paging_request() now returns the number of started paging requestsHarald Welte (local)1-1/+1
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-15Merge commit 'har/master'Harald Welte1-6/+13
2009-08-15Fix decoding of SMS Data Coding SchemeDaniel Willmann1-1/+1
2009-08-15provide return code from paging_request() functionHarald Welte1-2/+5
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-15Handle SMS with UCS2 and binary userdataDaniel Willmann1-2/+11
2009-08-15move talloc context creation out of on_dso / constructorsHarald Welte (local)1-3/+1
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-14fix sms layer timer leak/corruiption using trans_free()Harald Welte (local)1-2/+7
we only stopped the cp1* timer on reception of cp-ack, but not in error cases like rx of cp-error.
2009-08-14respect the link_id, not only the SAPI from SMS codeHarald Welte (local)1-6/+13
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-14add more debugging to SMS layerHarald Welte (local)1-10/+85
2009-08-13Merge branch 'master' of git@192.168.100.10:openbscStefan Schmidt1-2/+15
2009-08-13gsm_04_11: Month in unix time starts with 0.Stefan Schmidt1-1/+1
2009-08-13Beautify septet->octet calculation (do not use ceil)Daniel Willmann1-2/+6
2009-08-13Support sms with a validity period format of noneDaniel Willmann1-0/+7
2009-08-13remove FIRST_CONTACT signal, the subscriber flag is sufficientHarald Welte (local)1-12/+0
2009-08-13allocate a token for new subscribersJan Luebbe1-0/+14
2009-08-12Fix gsm_7bit_{en,de}code function and sms user_data calculationsDaniel Willmann1-2/+7
With the 7bit alphabet the user_data_len field needs to be in septets (characters) and not in octets occupied.
2009-08-10misc: Fix warnings about returning with value...Holger Hans Peter Freyther1-0/+2
return rc in these cases.
2009-08-10misc: Add prototypes to header files, include more header filesHolger Hans Peter Freyther1-0/+1
Fix various warnings about implicit declarations of functions.
2009-08-10add SMS CP timer TC1* to tear down lchan in case MS never responds to CP-DATAHarald Welte1-0/+17
2009-08-10fix off-by-one error in calculating RPDU length for CP-USER-DATA IEHarald Welte1-1/+2