aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc
AgeCommit message (Collapse)AuthorFilesLines
2017-02-07gsup: Update code after rebase to updated gsup implementationIvan Klyuchnikov9-236/+102
2017-02-07osmo-nitb: Send purge ms to reg-proxy and handle responseIvan Kluchnikov3-0/+26
2017-02-07gsm_04_08: Change reject cause for not "attached" subscribers from ↵Ivan Kluchnikov1-1/+1
"destination out of order" to "no user responding"
2017-02-07gsm_sup: check connection before use it, because it can be already closedIvan Kluchnikov1-4/+5
2017-02-07fix incorrect autorebaseSergey Kostanbaev1-7/+4
2017-02-07fixup after rebaseSergey Kostanbaev1-0/+1
2017-02-07gsm_sup: Update subscriber info in database only if msisdn is received in LU ↵Ivan Kluchnikov1-2/+1
response
2017-02-07msc: Increase value of location update timer to 10 secIvan Kluchnikov1-1/+1
We should increase this timer, because LU procedure can take more than 5 sec, if 'remote' auth policy is used.
2017-02-07sms: Route all sms from/to subscribers with extension length = 5 to local smscIvan Kluchnikov2-3/+47
2017-02-07sup: pass subscriber group parameter to subscr_get_by_extension functionIvan Kluchnikov2-4/+6
Subscriber group parameter should be set for subscriber in subscr_get_by_extension function, because it is used in connection_for_subscr function.
2017-02-07sms: Use gsm411_rp_hdr structure instead of manual parsing of RP messagesIvan Kluchnikov1-33/+33
2017-02-07sms: MO RP ACK and RP ERROR should be also forwarded to the sms socketIvan Kluchnikov1-0/+13
2017-02-07sms: In case of receiving MO RP-DATA, we should assign RP message reference ↵Ivan Kluchnikov1-8/+9
value to transaction variable
2017-02-07sup: Fix RP header offset and RP data length calculationsIvan Kluchnikov1-4/+4
2017-02-07vty: Install sms_destination_cmd element as NITB_NODEIvan Kluchnikov1-0/+1
2017-02-07sms: Add functions for forwarding/handling SMS in RP format to/from external ↵Ivan Kluchnikov2-7/+218
application
2017-02-07sms: Add new socket for forwarding/receiving SMS in RP format to/from ↵Ivan Kluchnikov1-0/+22
external application
2017-02-07trans: Add new parameter message reference for SMS and function for finding ↵Ivan Kluchnikov1-0/+16
transaction by this reference
2017-02-07set transaction_id from transaction dataSergey.Kostanbaev1-1/+3
2017-02-07manual merge SS from sup-ussd-on-master-ss-wipSergey.Kostanbaev7-324/+684
2017-02-07msc: Implement 'remote-closed' authentication policyIvan Kluchnikov2-3/+10
This mode is modified version of 'remote' policy. Osmo-nitb uses remote subscription data only if the MS is activated in local HLR, otherwise osmo-nitb rejects subscriber.
2017-02-07sup: fix handling update location result messageIvan Kluchnikov1-0/+6
If LUR procedure timed out, we should just skip update location result message.
2017-02-07ussd: handle UCS-2 codingSergey Kostanbaev3-27/+22
2017-02-07libmsc: set proper length field in ASN.1 format for USSD internalsSergey Kostanbaev1-7/+25
2017-02-07libmsc: fix no return and use after freeSergey Kostanbaev1-2/+4
2017-02-07ussd: send reject to supSergey Kostanbaev1-59/+14
2017-02-07libmsc: use message type as an entry point and handle release complete messageSergey Kostanbaev1-22/+149
2017-02-07libmsc: Create a separate SUP socket for USSD.Alexander Chemeris2-1/+26
2017-02-07libmsc: Remove sup_init() to make SUP socket initialiaton generic.Alexander Chemeris1-17/+1
2017-02-07libmsc: Make internal functions 'static' in gsm_sup.Alexander Chemeris1-2/+2
2017-02-07libmsc: Whitespace fix in gsm_sup.c, no code changes.Alexander Chemeris1-5/+5
2017-02-07libmsc: Rename sup_client to hlr_sup_client in preparation for multiple SUP ↵Alexander Chemeris1-5/+5
clients.
2017-02-07USSD MAP external interface over SUPSergey Kostanbaev3-20/+443
2017-02-07Revert "ussd: Add band-aid for interrogationSS"Ivan Klyuchnikov2-18/+10
This reverts commit 5085e0bf4c9674fb26754fd16b8e0c58113e1638.
2017-02-07reg-proxy: add application which allows translate SUP to SIP and SIP to SUPIvan Kluchnikov1-0/+141
2017-02-07sup: Fix msisdn decodingIvan Kluchnikov1-1/+1
2017-02-07sup: Change status of waiting_for_remote_accept before checking subscriberIvan Kluchnikov1-2/+2
2017-02-07msc: Implement 'remote' authentication policyIvan Kluchnikov3-12/+40
- All location update requests should be send to the remote HLR and accepted. - Authentication info should be also received from remote HLR. - SUP is used for sending/handling subscription data to/from remote HLR.
2017-02-07sup: Add functions to create/handle SUP messagesIvan Kluchnikov1-0/+394
- Add functions to send location update request and handle responses. - Add functions to query auth info and handle responses.
2017-02-06gsm_04_08: implement parsing of UMTS Auth responsesNeels Hofmeyr1-5/+221
Parse the longer UMTS res from the extended Auth Response Parameter IE. Parse the R99 Authentication Failure and AUTS in case of cause GSM_REJECT_SYNCH_FAILURE which indicates a SQN re-sync request. Both still end in 'not implemented' error logs, which are the places where the upcoming VLR that supports UMTS AKA will integrate. Depends on recently added constants in libosmocore in commit 55a43b801385e07a484217925ecf2379b9f54fcf aka change-id I745061ce8eb88aa23080dadcdbfe2d703c362a30 Change-Id: I4868bbeedc32fa7b8d03b9e3c66db618543d38ec
2017-02-03gsm48_tx_mm_auth_req(): support UMTS AUTNNeels Hofmeyr2-5/+22
To be able to do R99 UMTS authentication, we need to send along AUTN bytes in the Authentication Request. Add autn parameter to gsm48_tx_mm_auth_req() and conditionally append the R99 AUTN TLV to the Authentication Request message. Change-Id: I0d644559088706aa06b42b9bfe1f8c21ca6fa4da
2017-02-03gsm0408_rcv_cc: guard against NULL subscriberNeels Hofmeyr1-0/+5
Check conn->subscr against NULL. gsm0408_rcv_cc() dereferences many conn members without checking presence: the bts and lchan members may be expected to be NULL in the ongoing MSC split and 3G developments. But the conn->subscr is initially NULL, so an MS sending a CC message before something like a LU or CM Service Request will result in a segfault. Prevent that. Note: the upcoming VLR will be more restrictive on what messages are processed, this is a "backport" to the situation on current master. Change-Id: If067db7cc0dd3210d9eb1da15be6b637795a3ecf
2017-01-26various comment / whitespace tweaks (libmsc, gprs, libcommon-cs)Neels Hofmeyr2-2/+2
cosmetic ws in common_cs_vty.c, osmo_msc.c comment: tiny typo fix in gsm_04_08.c In comments, drop some unbalanced braces, because simplistic C file harvesters will break at a single opening brace even if it is in a comment. This is aimed at the fsm-to-dot.py script in libosmocore/contrib. Change-Id: I3c1fa53195a1e57d6fe0a6791c346d30ceff1251
2017-01-25CTRL: remove boilerplateMax1-19/+2
Use CTRL_CMD_DEFINE_RO(), CTRL_CMD_DEFINE_WO() and CTRL_CMD_DEFINE_WO_NOVRF() where appropriate to get rid of boilerplate code. Change-Id: I5bcea0b4f4b8f535bef2b423f2013b8b4a218b5b
2017-01-23Add VTY command to immediately expire user (set expire_lu to now)Keith1-0/+24
Change-Id: I676c84350a7afc963bc6bb4c46c60e5ac3eee67e
2017-01-23cosmetic: use osmo_strlcpy() everywhereNeels Hofmeyr7-59/+45
Shorten some code and make obvious to the reader that the string copy is done in a safe way. Change-Id: I900726cf06d34128db22a3d3d911ee0d1423b1bd
2017-01-23fix strncpy() invocation in vty_interface_layer3.c and 3 testsNeels Hofmeyr1-1/+1
Use osmo_strlcpy() to fix unsafe invocation of strncpy(), which potentially left the result unterminated. Change-Id: I1a119b1760a3e3262538b4b012d476fdce505482
2017-01-23Print subcriber when skipping authMax1-1/+2
Change-Id: I6ae6720afc04cc3c92ceff86e5b2a5a29494aeb1
2016-12-24Pass actual smpp_avail_status through to smpp in alert_all_esme()Keith1-2/+2
Change-Id: I4b00d8821c1688ca0c990b6042607f4ded0f80e3
2016-12-21use new OSMO_VALUE_STRINGNeels Hofmeyr1-7/+6
libosmocore change-id I857af45ae602bb9a647ba26cf8b0d1b23403b54c adds OSMO_VALUE_STRING to compose value_string arrays with the exact enum names as entries. Use instead of identical local macros in two places. Change-Id: I1b44d2a3f293785a01d6a587c78f9e0cbeec70c3