aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat/bsc_data.c
AgeCommit message (Collapse)AuthorFilesLines
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.