aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/gsm_04_08.h
AgeCommit message (Collapse)AuthorFilesLines
2017-08-30Implement AoIP, port to M3UA SIGTRAN (large addition and refactoring)Philipp Maier1-0/+2
This was originally a long series of commits converging to the final result seen in this patch. It does not make much sense to review the smaller steps' trial and error, we need to review this entire change as a whole. Implement AoIP in osmo-msc and osmo-bsc. Change over to the new libosmo-sigtran API with support for proper SCCP/M3UA/SCTP stacking, as mandated by 3GPP specifications for the IuCS and IuPS interfaces. From here on, a separate osmo-stp process is required for SCCP routing between OsmoBSC / OsmoHNBGW <-> OsmoMSC / OsmoSGSN jenkins.sh: build from libosmo-sccp and osmo-iuh master branches now for new M3UA SIGTRAN. Patch-by: pmaier, nhofmeyr, laforge Change-Id: I5ae4e05ee7c57cad341ea5e86af37c1f6b0ffa77
2017-08-27mscsplit: various preparations to separate MSC from BSCNeels Hofmeyr1-2/+0
Disable large parts of the code that depend on BSC presence. The code sections disabled by #if BEFORE_MSCSPLIT shall be modified or dropped in the course of adding the A-interface. Don't set msg->lchan nor msg->dst. Don't use lchan in libmsc. Decouple lac from bts. Prepare entry/exit point for MSC -> BSC and MSC -> RNC communication: Add msc_ifaces.[hc], a_iface.c, with a general msc_tx_dtap() to redirect to different interfaces depending on the actual subscriber connection. While iu_tx() is going to be functional fairly soon, the a_tx() is going to be just a dummy for some time (see comment). Add Iu specific fields in gsm_subscriber_connection: the UE connection pointer and an indicator for the Integrity Protection status on Iu (to be fully implemented in later commits). Add lac member to gsm_subscriber_connection, to allow decoupling from bts->location_area_code. The conn->lac will actually be set in iu.c in an upcoming commit ("add iucs.[hc]"). move to libcommon-cs: gsm48_extract_mi(), gsm48_paging_extract_mi(). libmsc: duplicate gsm0808 / gsm48 functions (towards BSC). In osmo-nitb, libmsc would directly call the functions on the BSC level, not always via the bsc_api. When separating libmsc from libbsc, some functions are missing from the linkage. Hence duplicate these functions to libmsc, add an msc_ prefix for clarity, also add a _tx to gsm0808_cipher_mode(): * add msc_gsm0808_tx_cipher_mode() (dummy/stub) * add msc_gsm48_tx_mm_serv_ack() * add msc_gsm48_tx_mm_serv_rej() Call these from libmsc instead of * gsm0808_cipher_mode() * gsm48_tx_mm_serv_ack() * gsm48_tx_mm_serv_rej() Also add a comment related to msc_gsm0808_tx_cipher_mode() in two places. Remove internal RTP streaming code; OsmoNITB supported that, but for OsmoMSC, this will be done with an external MGCP gateway. Remove LCHAN_MODIFY from internal MNCC state machine. Temporarily disable all paging to be able to link libmsc without libbsc. Skip the paging part of channel_test because the paging is now disabled. Employ fake paging shims in order for msc_vlr_tests to still work. msc_compl_l3(): publish in .h, tweak return value. Use new libmsc enum values for return val, to avoid dependency on libbsc headers. Make callable from other scopes: publish in osmo_msc.h and remove 'static' in osmo_msc.c add gsm_encr to subscr_conn move subscr_request to gsm_subscriber.h subscr_request_channel() -> subscr_request_conn() move to libmsc: osmo_stats_vty_add_cmds() gsm_04_08: remove apply_codec_restrictions() gsm0408_test: use NULL for root ctx move to libbsc: gsm_bts_neighbor() move to libbsc: lchan_next_meas_rep() move vty config for t3212 to network level (periodic lu) remove unneccessary linking from some tests remove handle_abisip_signal() abis_rsl.c: don't use libvlr from libbsc gsm_subscriber_connection: put the LAC here, so that it is available without accessing conn->bts. In bsc_api.c, place this lac in conn for the sake of transition: Iu and A will use this new field to pass the LAC around, but in a completely separate OsmoBSC this is not actually needed. It can be removed again from osmo-bsc.git when the time has come. Siemens MRPCI: completely drop sending the MRPCI messages for now, they shall be added in osmo-bsc once the A-Interface code has settled. See OS#2389. Related: OS#1845 OS#2257 OS#2389 Change-Id: Id3705236350d5f69e447046b0a764bbabc3d493c
2017-08-27Use libvlr in libmsc (large refactoring)Harald Welte1-3/+3
Original libvlr code is by Harald Welte <laforge@gnumonks.org>, polished and tweaked by Neels Hofmeyr <nhofmeyr@sysmocom.de>. This is a long series of trial-and-error development collapsed in one patch. This may be split in smaller commits if reviewers prefer that. If we can keep it as one, we have saved ourselves the additional separation work. SMS: The SQL based lookup of SMS for attached subscribers no longer works since the SQL database no longer has the subscriber data. Replace with a round-robin on the SMS recipient MSISDNs paired with a VLR subscriber RAM lookup whether the subscriber is currently attached. If there are many SMS for not-attached subscribers in the SMS database, this will become inefficient: a DB hit returns a pending SMS, the RAM lookup will reveal that the subscriber is not attached, after which the DB is hit for the next SMS. It would become more efficient e.g. by having an MSISDN based hash list for the VLR subscribers and by marking non-attached SMS recipients in the SMS database so that they can be excluded with the SQL query already. There is a sanity limit to do at most 100 db hits per attempt to find a pending SMS. So if there are more than 100 stored SMS waiting for their recipients to actually attach to the MSC, it may take more than one SMS queue trigger to deliver SMS for subscribers that are actually attached. This is not very beautiful, but is merely intended to carry us over to a time when we have a proper separate SMSC entity. Introduce gsm_subscriber_connection ref-counting in libmsc. Remove/Disable VTY and CTRL commands to create subscribers, which is now a task of the OsmoHLR. Adjust the python tests accordingly. Remove VTY cmd subscriber-keep-in-ram. Use OSMO_GSUP_PORT = 4222 instead of 2222. See I4222e21686c823985be8ff1f16b1182be8ad6175. So far use the LAC from conn->bts, will be replaced by conn->lac in Id3705236350d5f69e447046b0a764bbabc3d493c. Related: OS#1592 OS#1974 Change-Id: I639544a6cdda77a3aafc4e3446a55393f60e4050
2017-08-27move openbsc/* to repos rootNeels Hofmeyr1-0/+85
This is the first step in creating this repository from the legacy openbsc.git. Like all other Osmocom repositories, keep the autoconf and automake files in the repository root. openbsc.git has been the sole exception, which ends now. Change-Id: I9c6f2a448d9cb1cc088cf1cf6918b69d7e69b4e7
2009-06-10move openbsc into its own subdirectoryHarald Welte1-568/+0
2009-06-09* add support for storing classmark1/2/3 per subscriberHarald Welte1-2/+34
* add support for parsing measurement results (both BTS and MS side)
2009-05-01add verbose reporting of RR STATUS causeHarald Welte1-1/+1
2009-03-10add USSD protocol discriminatorHarald Welte1-0/+1
2009-02-28* more RSL and 04.08 constant definesHarald Welte1-0/+15
* initialize some data structures before using them in RSL * DATA_REQ is a transparent message * more elaborate DEBUGP statements here and there * don't call 04.08 with zero-length RSL DATA INDICATION * reject 04.08 CC HOLD and RETRIEVE, as we don't support them yet
2009-02-22fix paging response parsing for phase1 phones (classmar2 can be less than 4 ↵Harald Welte1-10/+0
bytes in length)
2009-02-22* location updating typesHarald Welte1-0/+13
* struct for imsi detach
2009-02-18#defines for GSM48 channel modesHarald Welte1-0/+9
2009-02-17various CC updates:Harald Welte1-2/+1
* correctly lchan_put the second lchan of a call at teardown * map the RTP streams of ip.access onto each other * fix bug that prevented a CONNECt message to ever reach the 'B' side
2009-02-17slightly more complete GSM 04.08 CC, we can nowHarald Welte1-2/+3
* initiate phone calls from one MS * look-up the subscriber based on dialled extension * page the called subscriber * send the SETUP to the called subscriber, including CLIP/CLIR * get ALERTING notification back to caller * relay DISCONNECT from either side to the other This is still far from being complete, but it at least works for the most common case
2009-02-16forgot the header files in last commit. sigh.Harald Welte1-1/+7
2009-02-11* add more GSM 04.08 IEIsHarald Welte1-0/+47
* implement function for CHANNEL MODE MODIFY * don't use hard-coded SETUP message but construct it with tlv functions
2009-02-06[rr] Send a Channel Release before deactivating the channelHolger Freyther1-0/+22
After auto releasing a channel the next paging request will not be immediately answered. The hypothesis was that we do not release the channel properly. Implementing Channel Release of GSM 04.08 should have fixed it, but it didn't. According to the wireshark dissectors the message is correct though. - Add the RR cause values to gsm_04_08. - Implement the Channel Release message - Invoke the release channel function before deallocating the lchan.
2009-02-06implement parsing of PAGING RESPONSEHarald Welte1-0/+10
2009-02-04[paging] Keep a copy of the Control Channel Description in the bts structHolger Freyther1-1/+13
- Initialize Control Channel Description of SI3 - Patch the table - Setting ATT now is easy - Paging can now extract all required information... to determine the right paging group.
2009-01-10Start working on CM Service RequestHarald Welte1-0/+11
Be able to send Accept/Reject the Service Request. Use mi_string instead of the the msgb buffer (even if it is memsetted and such)... The TMSI allocation seems to be a bit problematic and needs some further checking. The rough idea is that we try to find the subscriber for a CM Service Request and then decide based on the subscriber if we want to handle the call.
2009-01-04Make gcc happy and remove a couple of warningsHolger Freyther1-0/+1
Remove the callbacks from gsm_network for now. A set of different callbacks will be back. E.g. when the paging is completed, when the Q.931 like call handling is there... Remove var's or move them into #if 0, remove unused stuff that looks like we do not need it anytime soon or #if 0 them, move stuff around.
2009-01-04Make gsm48_sendmsg public as wellHolger Freyther1-0/+1
2009-01-04Make gsm48_msgb_alloc public and usable for the telnet_interfaceHolger Freyther1-0/+1
2008-12-31Add an option to set the global reject causeHolger Freyther1-0/+3
This will need to be moved into bsc_hack.c together with the policy to accept/reject a UPDATING LOCATION REQUEST.
2008-12-30* 04:08: add MM INFO information elementsHarald Welte1-0/+7
* gsm_data: add network name to gsm_network
2008-12-30Add an option to allow everyone to the network.Holger Freyther1-0/+1
This should move out of gsm_04_08 and the accept, reject policy should be controllable by the higher levels.
2008-12-30[gsm0408] Add enum values for the LOCATION UPDATING REJECT causeHolger Freyther1-0/+35
Convert spec to the enum
2008-12-29Initiate a call once we have a channel assignedHolger Freyther1-0/+1
2008-12-29Create request channel reason to see channel requests originating from PAGHarald Welte1-0/+1
2008-12-29Split out rach_control, missing mask from the last commitHarald Welte1-4/+14
2008-12-28* use 16bit for network and country codeHarald Welte1-3/+3
* use aligned attribute for more data structures * add command line arguments for operator/country code
2008-12-28[gsm0408] Make the generate_lai usable by other codeHolger Freyther1-0/+2
Prefix generate_lai with gsm0408 and update call sites. It will be used from within bsc_hack.c
2008-12-28[gsm_04_08] Add structs for system information type 1 to 6Holger Freyther1-0/+68
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-27SMS stubHarald Welte1-2/+9
2008-12-27now we get up to the SETUP of MO callsHarald Welte1-2/+19
2008-12-25no reasonable commit message possible. tons of changes of the last 2 daysHarald Welte1-0/+7
2008-12-23initial commit of current OpenBSC stateHarald Welte1-0/+238