aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat/bsc_data.c
AgeCommit message (Collapse)AuthorFilesLines
2017-08-27move openbsc/* to repos rootNeels Hofmeyr1-275/+0
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
2015-08-13nat: Forward SDP files with multiple payload types in itHolger Hans Peter Freyther1-2/+2
The parsing code assumed that there will be a single payload type and this assumption is clearly wrong. Forward all of the payload types. The code is still only extracting the first type from the list. The variable name has been renamed to reflect this.
2015-04-23nat: Make mode-set patching optionalHolger Hans Peter Freyther1-0/+15
2013-12-05mgcp: Add tests for payload types in MGCP messagesJacob Erlbeck1-0/+5
These tests mainly check whether the SDP parsing works properly by looking at the payload type detected. Sponsored-by: On-Waves ehf
2013-04-16nat: Allow to re-write international numbers in the CC Setup messagesHolger Hans Peter Freyther1-0/+17
Prepend the international number with a '+' and then do the normal re-writing on it. There are a couple of ways to handle this: \+([0-9]), \+[0-9][0-9]([0-9]), \+49([0-9]) Add a test case for the international re-write based on an already internationalized number.
2012-11-07nat: Inject a a=fmtp:%d to force the right AMR codeHolger Hans Peter Freyther1-3/+3
This assumes that AMR is used and/or the mode-set is ignored for other codecs by the remote end.
2012-03-26nat: Add another test case for TP-SRR clearing and number rewriteHolger Hans Peter Freyther1-0/+10
2012-01-18nat: Internationalize the TP-DA if it starts with a 00Holger Hans Peter Freyther1-4/+4
Internationalize the number like we do it for Call Control. Update the test result to match this new behavior.
2012-01-18nat: Prepare to rewrite the TP-DA number of a SMS submit.Holger Hans Peter Freyther1-0/+9
Introduce number rewriting of SMS-SUBMIT. Introduce a new list, move code around to help with finding a new number, somehow the number encoding for TP-DA is borked, 03.40 references 04.11 but the length appears to be strlen(number) without taken the type field into account.
2012-01-10nat: Implement clearing of TP-SRR flags from TPDUsHolger Hans Peter Freyther1-1/+11
Match IMSI and destination address against a set of entries, if it is matching the header will be modified and no sender report will be requested. Change the test case to request the sender report and then verify that this bit is reset to 0.
2012-01-10nat: Use the link_id from the original message in the new DTAP messageHolger Hans Peter Freyther1-1/+1
SMS went from SAPI=3 to SAPI=0 and nobody notices on the NAT->MSC direction.
2011-06-01nat: Patch the destination SMS address of a messageHolger Hans Peter Freyther1-0/+22
Use the same filtering infrasturcture to patch the SMSC address in a CP-DATA/RP-DATA message. Add a very simple testcase for this code.
2011-02-25nat: Update the tests to make them going againHolger Hans Peter Freyther1-4/+4
We now need to have access to a mgcp_cfg and the change to the setup number patching needs new data. We now set the number to international type.
2010-10-27nat: Implement rewriting, have a very basic test for that featureHolger Hans Peter Freyther1-0/+25
2010-09-20nat: Test for a bug inside the TLV definition for GSM 08.08Holger Hans Peter Freyther1-1/+1
The 0x1 inside a CIC IE could indicate a new IE... add test data and test case to verify that the patching works correctly.
2010-09-15nat: Parse the id response, extract the IMSI, compare itHolger Hans Peter Freyther1-0/+8
Add a test case and also add a basic check that we got some size checks correct. The next step is to act on the result.
2010-08-30nat: Replace the MGCP Endpoint if that is requiredHolger Hans Peter Freyther1-3/+3
Add code to replace the Endpoint number for the mgcp.
2010-07-23nat: u_int8_t -> uint8_tHolger Hans Peter Freyther1-14/+14
2010-06-15nat: Remove the broken empty line check, follow \n vs \r\n of inputHolger Hans Peter Freyther1-0/+10
Instead of checking the token for NULL we need to check if running was set to null. Look at the data of the token and check if the line was ending with a \r\n or \n and then when rewriting a line use that line ending as well. Add a new test for that.
2010-06-15nat: Test rewriting of MGCP messages to patch ip and portHolger Hans Peter Freyther1-0/+55
Add code to change the ip and port for audio data inside MGCP messages. This is needed because the BSS might be behind the NAT and can not reach the network directly and might be behind a nat so the announced sourceport is not the one as we see it.
2010-06-15nat: Look at the assignment command and remember on which timeslot the data isHolger Hans Peter Freyther1-0/+7
This information will be needed when we are trying to forward MGCP connections to and from the BSC through the IPA protocol.
2010-06-15nat: Add test case and data for paging by lac test.Holger Hans Peter Freyther1-0/+10
2010-06-15nat: Add a test case for the connection trackingHolger Hans Peter Freyther1-0/+72
This test case tests connectiont tracking by sending a CR, getting a CC, sending a DTAP, receiving a DTAP, receiving a RLSD, sending a RLC. It verifies that the messages are properly patched specially the references at the BSC.