osmo-msc/include/openbsc
Neels Hofmeyr e2f24d53e4 mscsplit: various preparations to separate MSC from BSC
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-08 19:17:53 +02:00
..
Makefile.am mscsplit: various preparations to separate MSC from BSC 2017-08-08 19:17:53 +02:00
abis_nm.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
abis_om2000.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
abis_rsl.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
arfcn_range_encode.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
auth.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
bsc_api.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
bsc_msc.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bsc_msc_data.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bsc_msg_filter.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bsc_nat.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bsc_nat_callstats.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bsc_nat_sccp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bsc_rll.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bsc_subscriber.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bss.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
bts_ipaccess_nanobts_omlattr.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
chan_alloc.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
common_bsc.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
common_cs.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
crc24.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
ctrl.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
db.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
debug.h Add libvlr implementation 2017-07-21 18:32:03 +02:00
e1_config.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gb_proxy.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_gb_parse.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_gmm.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_llc.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_llc_xid.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_sgsn.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_sndcp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_sndcp_comp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_sndcp_dcomp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_sndcp_pcomp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_sndcp_xid.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_subscriber.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gprs_utils.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gsm_04_08.h mscsplit: various preparations to separate MSC from BSC 2017-08-08 19:17:53 +02:00
gsm_04_11.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
gsm_04_80.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
gsm_data.h mscsplit: various preparations to separate MSC from BSC 2017-08-08 19:17:53 +02:00
gsm_data_shared.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
gsm_subscriber.h mscsplit: various preparations to separate MSC from BSC 2017-08-08 19:17:53 +02:00
gsup_client.h gsup_client: allow passing a unit id to identify with HLR 2017-07-13 02:17:31 +00:00
gtphub.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
handover.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
handover_decision.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
ipaccess.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
iu.h Add libvlr implementation 2017-07-21 18:32:03 +02:00
meas_feed.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
meas_rep.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
mgcp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
mgcp_internal.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
mgcp_transcode.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
misdn.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
mncc.h mscsplit: various preparations to separate MSC from BSC 2017-08-08 19:17:53 +02:00
mncc_int.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
msc_ifaces.h mscsplit: various preparations to separate MSC from BSC 2017-08-08 19:17:53 +02:00
nat_rewrite_trie.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
network_listen.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
oap_client.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
openbscdefines.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
osmo_bsc.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
osmo_bsc_grace.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
osmo_bsc_rf.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
osmo_msc.h mscsplit: various preparations to separate MSC from BSC 2017-08-08 19:17:53 +02:00
osmux.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
paging.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
pcu_if.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
pcuif_proto.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
rest_octets.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
rrlp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
rs232.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
rtp_proxy.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
sgsn.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
signal.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
silent_call.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
slhc.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
smpp.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
sms_queue.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
socket.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
system_information.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
transaction.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00
trau_mux.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
trau_upqueue.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
ussd.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
v42bis.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
v42bis_private.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
vlr.h vlr: LU FSM: enable Retrieve_IMEISV_If_Required 2017-08-07 16:52:25 +02:00
vty.h Use libvlr in libmsc (large refactoring) 2017-07-23 04:08:43 +02:00