aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-01-30osmo-bsc_nat: Fix use-after-free issue in ctrl forwarding codedaniel/bsc-nat-rebaseDaniel Willmann1-1/+2
Ticket: SYS#3208
2018-01-30Work fix gcc maybe-uninitialized warnings/errorsDaniel Willmann5-8/+14
2018-01-30libmgcp: osmux_config is not a talloc context, don't use it as suchDaniel Willmann1-1/+1
2018-01-30libmgcp: Fix rtp range parsingDaniel Willmann1-5/+5
Change-Id: Ib7e9bda0e1e8ccc21228f635c658e9eca4040fc0
2018-01-30osmo-bsc_nat: Add a description for the MSCDaniel Willmann3-1/+14
Change-Id: I84b713487117108f0978b86bd86d8fe98dc6fb93
2018-01-30libmgcp: Fix Config file writingDaniel Willmann1-42/+51
Change-Id: I1bba2caa40e880f137697b5ded074d3101cd01a6
2018-01-30osmo-bsc_nat: Return -EBADF if ussd_read_cb closes the connectionDaniel Willmann1-1/+1
Ticket: SYS#3208 Change-Id: I07fd9146fbe0658761d1f5d6739a9402e4163edd
2018-01-30osmo-bsc_nat: Change warning into commentDaniel Willmann1-1/+1
Change-Id: If24db994ee737d249f62b61d39f8b7c3cead5550
2018-01-30libmgcp: Add separate option for osmux DSCPDaniel Willmann3-2/+19
Change-Id: I98adb9958df297245ab3284c66048d0c0f6ed163
2018-01-30bsc_nat: Remove warning for MSC-natDaniel Willmann1-3/+0
Change-Id: I17af0f103bf15c08d5ca51a34dc8c23690e03b9c
2018-01-30osmo-bsc_nat: Free mgcp_configs on shutdownDaniel Willmann3-2/+11
Change-Id: I5e9a2704146ea331eceed86064092bb26dbe3735
2018-01-30osmo-bsc_nat: Reenable osmux supportDaniel Willmann9-136/+184
Change-Id: Ib98b65767884d615aac5c537dc58f2cdf5ff4bfa
2018-01-30osmo-bsc_nat: Add missing newline in log statementDaniel Willmann1-1/+1
Change-Id: Id92e9c39e824bb2da71291753f35610267e9a03e
2018-01-30osmo-bsc_nat: Implement MSC-side nat of SCCP connectionDaniel Willmann7-16/+42
Change-Id: I8a7d6095b76bd9072b287a4fa2b29cc0537e1a5b
2018-01-30osmo-bsc_nat: Change nat_sccp_conection ref namesDaniel Willmann5-47/+49
For the multi-msc support we also need to NAT the SCCP refs from the MSC so clarify which real/patched ref belongs to which side of the connection. Change-Id: Idb964542b2172f0f293fa1b7e334d016e9e09461
2018-01-30osmo-bsc_nat: Fix detection of stale connections in MGCPDaniel Willmann1-1/+1
Change-Id: Ieea0314f922c56325749f18f148f1e518bd2d1af
2018-01-30mgcp: Treat ConnID as hexDaniel Willmann2-3/+3
Change-Id: I53ce632d641bbf16919e3b44812e712ef6f54a45
2018-01-30bsc_nat: Fix return value in bsc_read_cb when connection was closedDaniel Willmann1-1/+1
osmo_fd will otherwise call the write_cb if data was enqueued for writing - possibly reading from/writing to free()d data. Change-Id: Ic11c710a7ef61272fee9a952a42052948e3d38fe
2018-01-30bsc_nat: Fix selection of mgcp_config in bsc_mgcp_forward()Daniel Willmann1-5/+6
Change-Id: I1060688459a860c90aa4a4f21aa4583a82480a69
2018-01-30libmgcp: Pass the pointer to the mgcp list on init, don't copy itDaniel Willmann7-13/+14
Change-Id: I2d51589670bb602422ec98521eec620948752e36
2018-01-30libmgcp: Fix mgcp instance argumentDaniel Willmann1-2/+2
Change-Id: I47e5b6fbcf0981699b330030de92f209fc4bb25a
2018-01-30osmo-bsc_nat: Add missing return code for VTYDaniel Willmann1-0/+1
Change-Id: I12b421e970317c604ac8cc2f3c94ff5fdbc3f048
2018-01-30osmo-bsc_nat: Make bsc_mgcp_find_con aware of multiple MGCP configsDaniel Willmann1-4/+5
Change-Id: I508562d48e2a0733ea53fe7adaae828286f791a2
2018-01-30osmo-bsc_nat: Handle multiple mgcp configs in SCCP connDaniel Willmann4-3/+9
Change-Id: Ifb6efa8339b749ab588a5ea37f0b48bc8086ae46
2018-01-30osmo-bsc_nat: Handle multiple mgcp configs in MGCP NAT codeDaniel Willmann1-41/+61
Change-Id: Icbf2951cfc550f75580e95a05804e479c59ec1df
2018-01-30osmo-bsc_nat: Modify nat init to work with multiple mgcp_configsDaniel Willmann4-62/+75
Change-Id: I53ac858952ee15f897160b3a32483c5c91b862f6
2018-01-30libmgcp: Allow to get the mgcp_config by numberDaniel Willmann2-9/+10
Change-Id: I9567b168696bc43c8f74cf0da9a4c647e8bdd822
2018-01-30Add warnings in places missing supportDaniel Willmann5-11/+33
Change-Id: Ic3de69792b2cd8e19cd140402bc1f5fbf9a00021
2018-01-30osmo-bsc_mgcp: Make it work with the changes supporting multiple MGCPDaniel Willmann1-11/+13
osmo-bsc_mgcp will still only use the first mgcp instance, but this copes with the API changes in mgcp_parse_config. Change-Id: I52ea74103acef374212e276dfa8122b00ca4562a
2018-01-30libmgcp: Make it possible to define more than one MGCP instanceDaniel Willmann3-192/+383
Change-Id: I820839e46f56bdaaf6b05df434829c3eee21e5b9
2018-01-30osmo-bsc_nat: Disable sending MGCP to MSC via IPA multiplexDaniel Willmann1-1/+2
Change-Id: If40b0bd51773b1658f744063be418c024a781e11
2018-01-30libfilter: Also handle detach indicationsDaniel Willmann1-0/+29
Change-Id: Iad4e2861f42d5275e2b3057ab2bc43ef43b61cfe Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-30osmo-bsc_nat: Remove unused MSC elements in struct bsc_natDaniel Willmann1-6/+0
Change-Id: Ied1bdead94ba2737293fb1ac2411771a8b8ffd68 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-30osmo-bsc_nat: Change the way bsc_nat_msc_is_connected() worksDaniel Willmann4-13/+19
The function now takes a struct msc_config and returns true if that MSC is connected. The vty command show msc connection now shows a line per connected MSC. In bsc_nat.c where osmo-bsc_nat previously hung up on a BSC connection if the (one) MSC was not connected it now checks for the default MSC connection. Change-Id: I95fbe1b8ad6621aba9b4bd6b581abfde0cb31fd0 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-30osmo-bsc_nat: Have a default MSC for messages from BSCDaniel Willmann4-3/+28
Change-Id: I343e6d9d17bcde6dbdf8f48b7b51e998a296680c Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-30tests: Test IMSI routing with multiple MSCsDaniel Willmann2-0/+50
Change-Id: Iab46d45aa8ba708282debcd7b9d704fc40e6ff1f Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-30osmo-bsc_nat: Implement access lists for MSC connsDaniel Willmann4-1/+61
Change-Id: Iedcf492ff8bb86e7ac68d8909634525e7b0648ea Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Change some functions to work with multiple MSC connsDaniel Willmann2-2/+11
Change-Id: Iab6f23f6f010f34876e37852cafa53e3a641478e Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Support multiple MSCs in VTY/configDaniel Willmann4-68/+118
Change-Id: I2e9009b52c6ecc17fc2da8402736412b9093ce19 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Add functions to alloc/find/free MSC configDaniel Willmann2-0/+64
Change-Id: I5879d4d9ee0e1a0a6424ee3e9b214afb07319071 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Add variables for multiple MSC conns to struct bsc_natDaniel Willmann1-0/+4
Change-Id: I0b959431140b1e48ca3dd85a8d8985cf967073e2 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Add infrastructure for multiple MSC connectionsDaniel Willmann4-0/+25
Add some common defines and structs Change-Id: I9cdfc5b32f2500f47be8caaa281bcca3231db5ea Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-25osmo-bsc_nat: Remove MSC IP cmdline option. This no longer makes sense for ↵Daniel Willmann1-8/+0
multiple MSCs Change-Id: I6f348dd5c7bdb2530081a1d609d03a6b0d13d0b2 Ticket: SYS#3208 Sponsored-by: On-Waves ehf.
2018-01-21src/libmsc/ussd.c: drop useless forward declarationVadim Yanitskiy1-13/+10
There is no any significant reason to define static function 'send_own_number' after the code that calls it. Change-Id: I8d804398cfa460eaa5a5f84f0ed90909488d0bdd
2018-01-21gsm_04_80.h: cosmetic: whitespace fixVadim Yanitskiy1-2/+2
Change-Id: Ife129bc8b01122444511f6ee52e30cd6367f8593
2018-01-21gsm_04_80.h: use '#pragma once' instead of includesVadim Yanitskiy1-4/+1
This is a common include guard way for Osmocom projects. Change-Id: I9b84e5d87068aba4926d6950b4c419be837bbcc3
2018-01-15mgcp_transcoding_test: Add LIBOSMOABIS_CFLAGSHarald Welte1-0/+1
Currently, we see the following failure: make[3]: Entering directory '/build/openbsc/tests/mgcp' CC mgcp_transcoding_test.o CC mgcp_test.o In file included from ../../include/openbsc/gsm_data.h:176:0, from mgcp_transcoding_test.c:14: ../../include/openbsc/gsm_data_shared.h:21:35: fatal error: osmocom/abis/e1_input.h: No such file or directory #include <osmocom/abis/e1_input.h> ^ compilation terminated. as gsm_data.h includes gsm_data_shared.h, which includes the e1_input.h from libosmo-abis, we need to list libosmo-abis in the CFLAGS. Change-Id: I27c25adfc6ee2c6f07315f3bc76fa7a70202ac4d
2018-01-12libmsc: add support for both comp128v2 and comp128v3Vadim Yanitskiy5-5/+53
This change adds support for both comp128v2 and comp128v3 GSM A3/A8 algorithms. Since they already implemented in libosmocore, the corresponding it's API is used. Change-Id: Ic761be0220397d100c9e6345d4d01af4889dc7c1
2017-12-19Fix tests after rate_ctr changeMax3-67/+73
Recent change lin libosmocore disallow registering rate_ctr with the same name and indexing multiple times. To accommodate to this: * allocate network struct once and use it for all tests * free bts struct after each test This is a backport of 4ab7268a902af24fcd4870148b709fed4fbf900c from OsmoBSC. Change-Id: Ic5fab86bca617cabcd59484066975e17ab2320b6 Related: OS#2757
2017-12-12sms.db: silence libdbi warnings on out-of-range indexNeels Hofmeyr1-18/+25
Apparently, since libdbi 0.9.0 aka 0.9.0-5 on debian-testing, osmo-msc barfs numerous libdbi warnings whenever a query rightfully returns no rows. Trivially query whether there are any rows first by adding an inline wrap function next_row(). Silenced: DDB <000d> ../../../../src/osmo-msc/src/libmsc/db.c:188 DBI: -6: An invalid or out-of-range index was passed to l DDB <000d> ../../../src/libosmocore/src/backtrace.c:47 backtrace() returned 11 addresses DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0xfb81) [0x555555563b81] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/lib/x86_64-linux-gnu/libdbi.so.1(_error_handle DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/lib/x86_64-linux-gnu/libdbi.so.1(dbi_result_ne DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x11172) [0x555555565172] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x1e6bc) [0x5555555726bc] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x1e7f6) [0x5555555727f6] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0x1f1d2) [0x5555555731d2] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0xbb86) [0x55555555fb86] DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0 DDB <000d> ../../../src/libosmocore/src/backtrace.c:57 /usr/local/bin/osmo-msc(+0xbfba) [0x55555555ffba] Related: OS#2737 OS#2667 Change-Id: I43cf4eed22425554826d59857eded5b4cc0d2c52