AgeCommit message (Collapse)AuthorFilesLines
2010-10-28nat: Add test case for matching phone numbersopenbsc/ Hans Peter Freyther1-0/+62
Add the test case for matching '*' and for not matching at all
2010-10-28nat: Fix a thinko in allowing '*' as a wildcard...Holger Hans Peter Freyther1-2/+2
We need to match everything BUT the wildcard and then do the normal strcmp...
2010-10-27Merge branch 'zecke/number-rewrite'openbsc/ Hans Peter Freyther6-1/+304
2010-10-27Merge branch 'zecke/ussd-side-channel'Holger Hans Peter Freyther4-4/+68
2010-10-27Require 0.1.27 for the new gsm0808 methodsHolger Hans Peter Freyther1-1/+1
2010-10-27nat: Also send a Clear Command in case of the USSD Provider diesHolger Hans Peter Freyther1-0/+23
2010-10-27nat: Close SCCP connections when the USSD Provider is closed.Holger Hans Peter Freyther3-1/+42
Send a RLSD down to the BSC in case the USSD Provider is gone. It is not sending a Clear Command and ut depends if the BS+ will like this kind of behavior. At least the data on the NAT will be freed soon afterwards due the RLC message.
2010-10-27nat: Make clear where the RLSD is send toHolger Hans Peter Freyther1-2/+2
Add a _msc to the method as we will send a RLSD to the MSC and will add a method to send it down to the BSC as well.
2010-10-27nat: Look at the number type to figure out if we want to rewrite itHolger Hans Peter Freyther1-1/+3
2010-10-27nat: Explain that we do not want to have a + in the replacement ruleHolger Hans Peter Freyther1-0/+6
2010-10-27nat: Add '*' as wildcard for the IMSI matching.Holger Hans Peter Freyther1-2/+2
In case any rule has a '*' we will always match this rule.
2010-10-27nat: Implement rewriting, have a very basic test for that featureHolger Hans Peter Freyther5-4/+250
2010-10-27nat: Add hook for rewriting a setup messageHolger Hans Peter Freyther3-1/+20
Create a new function, hand the data to this function, take back a possible modified msgb and invalidate parsed at this point.
2010-10-27nat: Add vty option for number rewritingHolger Hans Peter Freyther2-0/+30
Parse a msg file in case we do have a list.
2010-10-26[vty] First set of fixes for the oml/rsl con droppingHolger Hans Peter Freyther1-4/+7
The code had wrong documentation in the VTY, it crashed when OML or RSL was not up yet. These issues are fixed right now.
2010-10-26[vty] Add ipa specific command to provoke failures to test OML/RSL reconnectHolger Hans Peter Freyther1-0/+50
We need to simulate OML/RSL failure in an easy and fast way and adding a command to do so seems like a good way to achieve this. The command is a bit misplaced, in one way it is no config and does not belong into the config node but then again it does not belong into the VIEW_NODE either as it is manipulating content. On this merge I have changed it to the ENABLE_NODE.
2010-10-25Merge branch 'zecke/ussd-side-channel'Holger Hans Peter Freyther7-5/+467
2010-10-25nat: Forward the data coming from the USSD module to the BSC.Holger Hans Peter Freyther1-3/+44
2010-10-25nat: Forward extra state and the message to the USSD providerHolger Hans Peter Freyther2-4/+39
Forward the SCCP state and the data to the USSD provider, also mark the connection as local.
2010-10-25ipaccess: Add a structure for informing the USSD provider about the stateHolger Hans Peter Freyther1-0/+12
This is used to inform the USSD provider about the state of the connection.
2010-10-25nat: Implement accepting a USSD Provider connection, do authenticationHolger Hans Peter Freyther4-1/+205
2010-10-25nat: Replace the idiom for replacing a string with a function callHolger Hans Peter Freyther1-12/+4
Remove a lot of code in favor of a new function that is freeing the old string and copying the new one. I should have gotten the context and the strings right.
2010-10-25nat: Keep a ussd token in the configHolger Hans Peter Freyther2-0/+30
We will have the USSD provider connecting to us and we will use the IPA protocol, including the auth mechanism.
2010-10-25nat: Implement the matching of certain USSD messagesHolger Hans Peter Freyther1-1/+63
Have various checks, check if the IMSI should be handled, if there is a USSD query set and then decode and compare the value.
2010-10-25nat: Add an option to set the query string to matchHolger Hans Peter Freyther2-0/+16
Allow the query string to be set. The ussd matching code will check for this string and then forward it to the bypass.
2010-10-25nat: Make the imsi checking function public.Holger Hans Peter Freyther2-2/+3
We will use this method in the USSD module to check if the IMSI should be handled for USSD queries.
2010-10-25nat: Provide a USSD access list to check for which to play HLR.Holger Hans Peter Freyther2-0/+18
2010-10-25nat: Create a USSD module to filter out USSDs...Holger Hans Peter Freyther4-1/+43
2010-10-25nat: Introduce a new connection type for Supplementary ServicesHolger Hans Peter Freyther2-2/+11
If we have a CM Service Request we will look into the message to see if it is a Supplementary Service Activation.
2010-10-21nat: Move the DTAP unpacking into a new methodHolger Hans Peter Freyther2-13/+24
DTAP unpacking will be used by the USSD checking code
2010-10-21nat: Copy the IMSI, then free it or move the context to the connectionHolger Hans Peter Freyther4-10/+32
Extract the IMSI from the first message as well and safe it in the connection structure. The problem is that we do not have this structure at this point, so we will allocate the imsi as child of the bsc_connection and then move/steal it.
2010-10-21nat: Store the IMSI inside the SCCP Connection dataHolger Hans Peter Freyther2-0/+2
Store the IMSI for the connections that we are tracking, it will be freed when the normnal SCCP connection is freed.
2010-10-20lua: Mention that the code has some bugs...Holger Hans Peter Freyther1-0/+1
2010-10-20lua: Search for clear requests from the network as wellHolger Hans Peter Freyther1-0/+3
2010-10-20lua: Check BSSMAP msgtypes in one function..Holger Hans Peter Freyther1-15/+7
2010-10-20lua: Check for Cipher Mode Reject failures as wellHolger Hans Peter Freyther1-0/+13
2010-10-20lua: Check for assignment failuresHolger Hans Peter Freyther1-0/+13
2010-10-20lua: Check for disconnects with non normal release tooHolger Hans Peter Freyther1-0/+38
2010-10-20lua: Fix the indenting of the fileHolger Hans Peter Freyther1-1/+1
2010-10-20contrib: Add LUA script to store SCCP connections with ErrorsHolger Hans Peter Freyther1-0/+110
Split the trace based on SCCP Connections, in case an error is detected, the trace will be stored instead of being deleted and the full log can be viewed afterwards. Right now only LU Rejects are recognized, but this can be extended to other things as well.
2010-10-19nat: Change the order of the DENY/ALLOW rule for the BSC.Holger Hans Peter Freyther2-7/+25
Currently it is not is not easily possible to disable everyone and then only allow certain SIMs. By changing the order we can do: access-list imsi-deny only-something ^[0-9]*$ access-list imsi-allow only-something ^123[0-9]*$ and still keep the usecase of only forbidding certain SIMs on certain LACs. Adjust test case, test that the other cases are still functional.
2010-10-19nat: Convert the ip to host order to allow to bind to other ipsHolger Hans Peter Freyther1-1/+1
2010-10-19nat: Add a method to add a proper message to the queue.Holger Hans Peter Freyther2-0/+5
This will be used by the USSD module to forward the data without creating another copy of the data.
2010-10-19nat: Find a connection by the real refHolger Hans Peter Freyther2-0/+15
2010-10-19nat: Use the make_sock routine to listen for incoming connections.Holger Hans Peter Freyther1-38/+4
2010-10-19nat: Use strncmp on the string in case it is not null terminatedHolger Hans Peter Freyther1-1/+2
2010-10-14ipaccess: Make sure the unitid is null terminatedHolger Hans Peter Freyther1-2/+9
The nanoBTS is sending null terminated strings, make sure they are really null terminated.
2010-10-14ipaccess: Verify that the data fits in the package.Holger Hans Peter Freyther1-1/+8
There is something wrong with the code, the length is here uint8_t but when we generate a IDGET we put it as 16bit data.
2010-10-14ipaccess: memset the tlv_parsed structure before parsingHolger Hans Peter Freyther1-0/+2
Make sure the tlv_parsed structure is initialized properly, otherwise we might detect a tag that should not be present.
2010-10-13nat: Make the write_queue write callback a public functionHolger Hans Peter Freyther3-12/+15