aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_08.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-12gsm48: Add method to send a separate facility message...Holger Hans Peter Freyther1-1/+19
Send a facility messages with notifySS/CNAP as payload to the phone... the function is not called from anywhere in the tree yet but I use it locally.
2010-07-05msc: Create a dummy operation to keep the channel open for five secondsHolger Hans Peter Freyther1-0/+39
* We should create the transaction for SMS, CC on the CM Service Request but for now we will use a band aid and create a dummy operarion to wait five seconds for the transaction to be opened.
2010-06-30msc: Add includes to silence a compiler warning.Holger Hans Peter Freyther1-0/+1
2010-06-28bsc_msc: Remove use_count from the subscriber connectionHolger Hans Peter Freyther1-16/+8
A channel will be released in case of * Errors via the clear_request callback... * no more transactions and operations are going on. This means that if we do something without a transaction the channel might be closed down right away. The bug fix will be to create a transaction/operation.
2010-06-21bsc_api: Remove the lchan usage from the Paging Response handling.Holger Hans Peter Freyther1-4/+4
2010-06-21silent_call: Use the gsm_subscriber_connection instead of lchan->connHolger Hans Peter Freyther1-2/+2
2010-06-17bsc_api: Set the l3h header from within the dtap methodHolger Hans Peter Freyther1-1/+0
This is fixing USSD which broke when the code was switched to use the BSC API.
2010-06-17bsc_api: Remove the lchan from the USSD code...Holger Hans Peter Freyther1-1/+1
2010-06-17bsc_api: Kill &lchan->conn usage, stop msg->lchan too..Holger Hans Peter Freyther1-49/+37
2010-06-17bsc_api: Move gsm48_rcvmsg into the BSC API and dispatch.Holger Hans Peter Freyther1-3/+3
The next step in the way to the BSC API. We have a clear a new connection was opened signal now... and the MSC could use it...
2010-06-17bsc_api: Make paging/silent call work with the subscriber_connectionHolger Hans Peter Freyther1-4/+4
Do not use the lchan for the paging but operate on the subscriber_connection, change the signals too to not carry the lchan but the subscriber connection... the silent call and vty code still assume there is a lchan inside the subscriber connection.
2010-06-16bsc_api: Pass the subscriber connection to the SMS...Holger Hans Peter Freyther1-1/+1
2010-06-16bsc_api: Use gsm_subscriber_connection in rrlp.cHolger Hans Peter Freyther1-3/+3
2010-06-16bsc_api: Rename lchan_for_subscr to connection_for_subscr and update codeHolger Hans Peter Freyther1-7/+7
With handover and late/early assignment there might be two channels for one subscriber and only the BSC knows which one to use, so use the gsm_subscriber_connection everywhere...
2010-06-16gsm48: Release the "operation" after sending out data...Holger Hans Peter Freyther1-3/+2
* With an immediate release we would release the lchan before sending the data... change it.
2010-06-16bsc_api: Remove the lchan from the secure channel code...Holger Hans Peter Freyther1-32/+29
The code still needs to stop touching the lchan directly and put stuff into it.
2010-06-16bsc_api: Cut back on direct lchan usage.Holger Hans Peter Freyther1-16/+16
2010-06-15gsm48: Split LU Reject sending and generation into two.Holger Hans Peter Freyther1-9/+9
2010-06-15gsm48: Separate CM Service Reject sending and creation.Holger Hans Peter Freyther1-9/+7
Split out the msg generation from the sending, this will be used by the nat to send a refusal message.
2010-06-15bsc_api: Remove the lchan argument from gsm48_tx_mm_info.Holger Hans Peter Freyther1-5/+5
2010-06-15bsc_api: Remove the lchan argument from the mm_tx_identity_req method.Holger Hans Peter Freyther1-6/+6
2010-06-15bsc_api: Remove lchan from LU Reject...Holger Hans Peter Freyther1-8/+6
Remove the lchan from the signature, the removal of the msg->lchan will follow as a next step.
2010-06-15bsc_api: Kill the lchan argument from the LU Accept Method.Holger Hans Peter Freyther1-6/+6
2010-06-15bsc_api: Move most of GSM0408 to the DTAP API...Holger Hans Peter Freyther1-31/+63
* gsm_04_08_utils.c will directly send the message... * gsm_04_08.c will use the DTAP API, add a new method to pull in the data from the transaction...
2010-06-15bsc_api: Switch gsm_04_08.c to use the clear request of the API.Holger Hans Peter Freyther1-18/+6
2010-06-14gsm_04_08: Improve gsm48_rx_mm_auth_resp debug in failure caseSylvain Munaut1-1/+7
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14gsm_04_08: Establish secure channel on CM SERVICE REQUESTSylvain Munaut1-1/+30
Note that establishing a secure channel is considered to be an implicit CM SERVICE ACK. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14gsm_04_08: Establish secure channel on LOCATION UPDATESylvain Munaut1-19/+42
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14gsm_04_08: Store the key_seq given in LOC UPD REQUEST in stateSylvain Munaut1-0/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14gsm_04_08: Add a operation to enable ciphering on a lchanSylvain Munaut1-3/+158
This will take care of the auth/check/enable cipher sequence and call a callback function when done. Currently the negotiated Kc is saved but not re-used, so there is an authentication each time ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14bsc_api: Move some parts over to the BSC API.Holger Hans Peter Freyther1-19/+0
2010-06-07GSM 04.08: Improve IMEI recording in hlr.sqlite3 for rejected subscribersHarald Welte1-4/+3
If we send the IDENTITY REQUEST for IMEI before sending the IDENTITY REQUEST for IMSI, the probability is higher that we receive the IMEI response and associate it with the respective subscriber.
2010-05-16gsm48: Add size checks to the paging response mi parsing.Holger Hans Peter Freyther1-1/+4
We go from no size checks to some content checking. We should refactor the whole classmark2 + mi parsing that is used throughout the code into one place with proper size checking. This is the start and requires a new libosmocore as well.
2010-05-15gsm48: Typo fix.Holger Hans Peter Freyther1-1/+1
2010-03-29[misc] Remove whitespace from the end of the line.Holger Hans Peter Freyther1-7/+7
2010-03-25lchan: Change transaction to work on the GSM Subscriber ConnectionHolger Hans Peter Freyther1-35/+31
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-72/+91
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-25convert openbsc to use libosmocore-0.1.1 APIHarald Welte1-4/+5
the 0.1.1 API is cleaned up and removes all exported global static arrays (like rlm_cause_strs). There are now proper accessor functions.
2010-03-07move large parts of mncc.h and gsm48 encode/decode into libosmocoreHarald Welte1-619/+83
2010-03-04move some gsm48 utility functions to libosmocoreHarald Welte1-2/+2
* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi() * gsm48_cc_msg_names[]
2010-03-02remove gsm04.08 utility code that has been moved to libosmocoreHarald Welte1-122/+14
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-5/+5
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
2010-01-03gsm_04_08: Add RAND debug output in gsm48_tx_mm_auth_reqSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_04_08: Specify key_seq when calling gsm48_tx_mm_auth_reqSylvain Munaut1-3/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-01introduce and implement silent_call_reroute() and silent_call_rx()Harald Welte1-0/+4
Thise two functions are interfacing with the 04.08 layer 3 to determine if a particular message should be handled inside the OpenBSC layer 3, or if it should be handled in the silent call handler.
2009-12-26print LAC and BTS number when showing location update rejectHarald Welte (local)1-2/+4
2009-12-26generate INFO events for CC SETUP and LOC UPD REJHarald Welte (local)1-1/+6
2009-12-24add (and use) new subscr_name() function to get name or IMSIHarald Welte1-3/+2
2009-12-24don't print directly to stderr, use LOGP()Harald Welte1-7/+7
2009-12-22statistics: Introduce 'struct counter' instead of using unsigned longHarald Welte1-6/+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.