aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2017-07-21gsm04_08.c patches from neels (remove when committed properly)pmaier/aoip2Philipp Maier1-14/+14
0001-imsi-detach-improve-error-logging.patch 0002-imsi-detach-always-close-connection-explicitly.patch
2017-07-21a-iface: move clear command to subscriber_conn.cPhilipp Maier2-4/+7
The clear command is currently triggered from the wrong place. This is a fixup that corrects that. However, it will introduce another problem: The clear command is not sent on detatach.
2017-07-21vty: Fixup sccp/ss7 configurationPhilipp Maier3-63/+32
The sccp/ss7 configuration is now fixed. The cs7 instance id is implicitly detected from the bsc_addr or the msc_addr. Depending on what is listed last. (I am not sure if that is wise, maybe we should only use the local/bsc address to do the lookup). Remove cs7-instance vty command Modify VTY commands, so that the fixed API is used Set msc->a.cs7_instance from the VTY to when msc/bsc addr is parsed Fix the initalization to use osmo_sccp_simple_client_on_ss7_id() and pass the cs7-instance id we determined from the vty. The whole thing is not waterproof yet. We are still not at the point where we allow to leave the local address out. This would be fine, but when it is left out, the only way to determine the cs7 instance is to use the msc_addr then. We also might want to make sure to reach a state where all cs7 related config may be left out (like with the MSC)
2017-07-21fixup for: mgcp: display properly mgcp-messages in logPhilipp Maier1-0/+3
2017-07-21msc-vty-completePhilipp Maier3-11/+87
2017-07-14msc_vlr: Fix testsPhilipp Maier11-0/+182
Add a wrapper for a_iface_tx_clear_cmd() and regenerate the test output files
2017-07-14osmo_msc: only clear A-Interface connections for GSM callsPhilipp Maier1-2/+3
The clear command is sent via the A-Interface for both, A and IuCS connections. This is wrong. Only send the clear command for connections related to the A-Interface, which means only for connections where the RAN is set to GERAN
2017-07-14fixup: fix typoPhilipp Maier1-1/+1
2017-07-14mncc: make external mncc workPhilipp Maier5-91/+140
The external mncc currently does not work properly since the MNCC_RTP_CREATE commands are removed due to the MSC-Split. It is possible to operate without these commands, but then it is not possible to route the RTP streams to an outside leg. Only internal bridging is currenlty possible. This method is used when the internal MNCC is enabled. Add the missing MNCC_RTP_CREATE implementation. Add logic to keep the old bridging mode working.
2017-07-13mgcp: display properly mgcp-messages in logPhilipp Maier1-1/+40
The generated mgcp messages are not displayed properly (stray newlines). Also, the messages we receive are not displayed at all. Display generated and received messages in logtext, reformat the strings properly so that the logtext does not get messed up
2017-07-10fixup for: a_iface: fix missing clear commandPhilipp Maier1-1/+3
2017-07-10cosmetic: tweak error log in osmo_bsc_sigtran_init()Neels Hofmeyr1-2/+4
Change-Id: Iec3dbeb0ee1421129aaf9e313d616757955bee48
2017-07-07a_iface: fix missing clear commandPhilipp Maier3-0/+16
When a subscriber connection is freed on the MSC side (the conversion is over) the MSC should send a clear command to the BSC in order to inform the BSC that the connection is over. Currently this step is missing. Instead we wait for the BSC to issue a clear request. This is not as it should be, connections should be actively cleared by the MSC. Add the missing clear command
2017-07-07a_iface: fix missing log outputPhilipp Maier2-0/+8
2017-07-07a_iface: fix missing constPhilipp Maier1-1/+1
2017-07-07a_iface: add missing staticPhilipp Maier2-2/+2
2017-07-05msc_ifaces: add checks for nullpointersPhilipp Maier1-5/+44
2017-07-05fixup: remove allocation/usage of iu struct again.Neels Hofmeyr1-9/+5
The allocation and usage of the iu struct was accidentally re-introduced into a_iface_bssap.c. Remove the allocation and the usage of iu struct. Related to: aoip: don't use iu struct: do not allocate unnecessary ue_conn_ctx
2017-07-03osmo-bsc change bsc_handle_dt1() to bsc_handle_dt()Philipp Maier3-4/+4
_dt1() is not applicable with the current setup, _dt() is more accurate
2017-07-03osmo-bsc: fix sccp name stringPhilipp Maier1-1/+1
2017-07-03a_iface: remove unused variablePhilipp Maier3-3/+3
2017-07-03osmo-msc/a_iface/reset: add missing constPhilipp Maier6-36/+41
2017-07-03osmo-bsc/sigtran: add missing constPhilipp Maier2-15/+15
2017-07-03osmo-msc/a_iface: add missing assertionsPhilipp Maier2-0/+22
2017-07-03osmo-bsc: add missing commentPhilipp Maier1-0/+1
2017-07-03osmo-bsc: add missing assertionPhilipp Maier1-0/+1
2017-07-03osmo-msc: remove orphanned struct membersPhilipp Maier1-8/+2
2017-07-03osmo-msc: rename called/calling address in struct a_conn_infoPhilipp Maier3-15/+15
2017-06-30osmo-bsc: use better msc identifierPhilipp Maier2-9/+15
Using the MSC numbers in the logtext is not very expressive, ise the SCCP-Addresses instead. When creating the sccp instance and user, use more parseable string than "MSC No.: n"
2017-06-30osmo-bsc: fix typoPhilipp Maier1-2/+2
2017-06-30osmo-bsc: vty: fix error messagePhilipp Maier1-2/+2
The warning message that is displayed when a non standard SSN is set is confusing. Make warning message more expressive.
2017-06-30build: osmo-bsc_nat: add missing sigtran LDADDNeels Hofmeyr1-0/+1
Change-Id: I838cc9176b9d3e61e33f25d10bedd37c9c057fd3
2017-06-30osmo-bsc: rename calling_addr to msc_addrPhilipp Maier1-6/+6
The variable name "calling_addr" is not very expressive. Change the variable name to "msc_addr".
2017-06-30osmo-bsc: change calling/called addr in VTYPhilipp Maier1-24/+24
The vty commands: called-addr my_msc calling-addr my_bsc are not very expressive to the user. Change the command names into something more expressive: msc-addr my_msc bsc-addr my_bsc Also change the function and variable names accordingly
2017-06-30osmo-bsc: change calling/called_addr variable namesPhilipp Maier3-18/+29
"calling_address" and "called_address" is not very expressive. change the respective struct memeber names of bsc_msc_data to bsc_addr and msc_addr to increase readability of the code.
2017-06-30osmo-bsc: check configured sccp addresses before startPhilipp Maier1-2/+24
do not start unless the user has configured sufficient SCCP addresses via VTY. Do not accept address that lack point codes or ssn
2017-06-30osmo-bsc: make sure only default SSNs are usedPhilipp Maier2-2/+21
The VTY technically allows setting custom values for the SSN. However, SSN values and their purposes are well standardized. If the user has configured an SSN, check that is compliant to the standard. If not, warn and ignore the setting by using the stanard SSN. If the user left out the SSN, automatically use the standard SSN.
2017-06-30cosmetic: fix typo in log outputPhilipp Maier2-3/+3
2017-06-30osmo-bsc: only clear connections of a specific MSCPhilipp Maier1-4/+17
The BSC clears all connections on reception of a BSSAP RESET, however, the RESET command must not affect the connections of other MSCs. Ensure that only the connections of the MSC who actually sent the BSSAP RESET are cleared.
2017-06-30osmo-bsc: Make SCCP-Addresses configurable via VTYPhilipp Maier5-41/+135
Add VTY commands to configure the sccp-address of the BSC and the one of the MSC.
2017-06-30common-vty: add ss7 nodes commands to VTYPhilipp Maier3-6/+17
The current VTY implementation has no knowledge about the libosmo-sccp nodes and therefor can not resolve parent nodes, nor decide if we deal with a config node.
2017-06-30osmo-msc: finish msc-sided resetPhilipp Maier6-92/+280
finish the implementation for msc sided reset, automatically register connecting BSCs. Ensure that all sccp connections are cleared when the reset procedure executes.
2017-06-30msc_vlr: fix linker problem in testcasePhilipp Maier1-1/+1
Swap libmsc.a and libcommon-cs.a to make symbols from libcommon-cs.a available to libmsc.a
2017-06-30mgcp: Fix missing call id in DLCXPhilipp Maier3-10/+13
The call id field in the DLCX message is missing. Use the endpoint id as call id in all CRCX and DLCX messages.
2017-06-30reset: fix allocation and add deallocator for reset procedurePhilipp Maier5-21/+59
When the reset is started, state machines are allocated. The user must provide a correctly filled structure where the reset start function adds the state machine into. This is prone to errors, besides of that, a proper deallocator function which tears down the osmo fsm is missing. make a more cofmortable allocator function and add deallocator function.
2017-06-28aoip: don't use iu struct: move rtp ports from .iu to new subscr_conn.rtpNeels Hofmeyr4-9/+12
Change-Id: I2ec2ecc2e3dcf0493168de6091d7fa4cfa028645
2017-06-28aoip: don't use iu struct: do not allocate unnecessary ue_conn_ctxNeels Hofmeyr1-8/+4
Change-Id: I6430d4704f5caf33275d403df93c222848b5b3ff
2017-06-23osmo_bsc_main: use osmo_sccp_make_addr_pc_ssn() for SCCP addressesNeels Hofmeyr1-8/+4
Change-Id: Ib065533273acfabec9d9d4380dcbd6cf16744343
2017-06-23AoIP+3G: use one common SCCP client for A and IuCSNeels Hofmeyr8-27/+37
Move osmo_sccp_simple_client() setup out of iu_init() and a_init(). In msc_main.c and sgsn_main.c, initialize the STP connection first and then pass to iu_init() and a_init(). This allows serving 3G (IuCS) and 2G (A) from one and the same MSC instance. Since both OsmoHNBGW and OsmoBSC are using PC 23 by default now, move BSC to PC 42 (because OsmoBSC typically has vty port 4242, bla). Also: a_iface.c: remove now unused defines a_init(): remove osmo_ss7_init() call that duplicated msc_main.c Change-Id: Ib1fb13ea756655f7e9d43636d497a54e6ae9c032
2017-06-23msc: re-enable iu_init()Neels Hofmeyr1-1/+1
Change-Id: If12ca46c834466307bee6465b777d63d5c922405