aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2010-04-06Tag on-waves 0.3.92 after the merge with masteron-waves/0.3.92Holger Hans Peter Freyther1-1/+1
2010-04-06Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther52-914/+677
* Move to the new log code and update binaries * Catch up with lchan changes from master Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/src/Makefile.am openbsc/src/bsc_rll.c openbsc/src/chan_alloc.c openbsc/src/debug.c openbsc/src/gsm_04_08.c openbsc/src/gsm_04_11.c openbsc/src/gsm_subscriber_base.c openbsc/src/handover_logic.c openbsc/src/silent_call.c openbsc/src/transaction.c openbsc/src/vty_interface.c openbsc/src/vty_interface_cmds.c
2010-04-06Increase version numberon-waves/0.3.91Holger Hans Peter Freyther1-1/+1
2010-04-06bsc_msc_ip.c: Do not attempt to disconnect when not connectedHolger Hans Peter Freyther1-0/+2
This is fixing a segfault due calling bsc_unregsiter_fd twice without being in the list.
2010-04-06bsc_msc_ip.c: Crash fix when the MSC disconnectsHolger Hans Peter Freyther1-2/+12
Check if we do have the msc_data before invoking code in bssap.c. We might have lost the MSC connection and asked for the channel to be taken down but we might have received one last message from the BTS.
2010-04-06nat: Send a RLSD to the network for connections belonging to the BSCHolger Hans Peter Freyther1-1/+27
Sending a RLSD with SCCP failure makes the MSC free all the resources (MGCP, audio channels), right now we are ignoring the RLC we get from the network and print a unhandled message.
2010-04-06bsc_msc_ip.c: Register the SIGUSR2 handler... to really handle it.Holger Hans Peter Freyther1-0/+1
2010-04-06nat: Print a MSG when receiving unknown SCCP messages.Holger Hans Peter Freyther1-0/+3
2010-04-06nat: Store the config in the connection instead of the lacHolger Hans Peter Freyther5-11/+18
This allows that we can print the Nr. next to the lac and it allows us to change the lac at runtime without reconnecting the BSC.
2010-04-06nat: Close the filedescriptor when ignoring the request.Holger Hans Peter Freyther1-0/+1
2010-04-06bsc_msc_ip.c: Remove unused variable.Holger Hans Peter Freyther1-1/+0
2010-04-06[vty] Move the VTY logging commands to a new fileHolger Hans Peter Freyther5-209/+254
Currently vty_interface.c is used for the BSC config, in case of the MGCP Gateway or the BSC Nat process these logging commands are not available. Move the commands to a new vty_interface_cmds.c file to allow to share basic commands across different programs.
2010-04-06[vty] Add the nat area to the list of categories.Holger Hans Peter Freyther1-1/+1
2010-04-06nat: Add logging commands for the nat as well.Holger Hans Peter Freyther1-0/+3
2010-04-06[mgcp] Add the logging commands for the MGCP command.Holger Hans Peter Freyther2-1/+3
2010-04-06[vty] Move the VTY logging commands to a new fileHolger Hans Peter Freyther5-210/+254
Currently vty_interface.c is used for the BSC config, in case of the MGCP Gateway or the BSC Nat process these logging commands are not available. Move the commands to a new vty_interface_cmds.c file to allow to share basic commands across different programs.
2010-04-06nat: Fix thinko... use the right fd to determine the IP of the btsHolger Hans Peter Freyther1-1/+1
Use the fd of the BSC Connection to determine the IP address of the BTS as we are seeing it.
2010-04-06nat: Improve the log message and print the errno/strerror(errno)Holger Hans Peter Freyther1-1/+2
2010-04-06[mgcp] Do not patch RTP payload when type is set to -1.Holger Hans Peter Freyther1-0/+3
For the nat we might or might not want to patch it, do not patch if we have no valid rtp payload type.
2010-04-06nat: Set the MGCP audio payload to -1.Holger Hans Peter Freyther1-0/+1
This value is copied into the bts_audio_payload when allocating a BTS MGCP endpoint. For the nat we have actually no interest in patching MGCP messages. We will patch them to the network because the code will do it anyway, we will not patch things back to the BTS.
2010-04-06[mgcp] Reset the the address when freeing the endp as wellHolger Hans Peter Freyther1-0/+2
2010-04-06Revert "nat: Remember where the BTS is listening for things."Holger Hans Peter Freyther3-31/+1
Remove the code to parse port as we need to discover the BTS behind the nat and most likely it will have a different port than the one advertised by the BTS. This reverts commit c6a1fe773d16eb20d4cb1d3097761419436f4537.
2010-04-06nat: Print the unknown byte as a integer instead of charachterHolger Hans Peter Freyther1-1/+1
The value might be a non printable one.
2010-04-06bsc_msc.c: Print the error message of the connection.Holger Hans Peter Freyther1-1/+1
2010-04-06nat: Patch IT messages as well..Holger Hans Peter Freyther1-0/+2
We need to patch the source/dest reference inside the messages as well otherwise we will see failures in the SCCP connection on long calls.
2010-04-06nat: Test forwarding Inactivity Test messages.Holger Hans Peter Freyther1-0/+19
No change needed to the code.
2010-04-05nat: Close all endpoints used by a BSC when the BSC is goneHolger Hans Peter Freyther3-0/+22
Cleanup all endpoints that belonged to a given BSC. This is one part of the cleanup, the other is to bring down the SCCP link properly.
2010-04-05nat: Remember a pending delete on an endpoint and carry it out laterHolger Hans Peter Freyther2-0/+10
2010-04-05[mgcp] Fix navigation in the vty hierachy (make exit work)Holger Hans Peter Freyther1-0/+3
Make exit from the MGCP node work properly.
2010-04-05nat: Fix navigation inside the config structure (fix exit)Holger Hans Peter Freyther1-0/+9
Make sure exit in nat and nat/bsc is working and we go one level up.
2010-04-05nat: remove is called on already patched connections..Holger Hans Peter Freyther2-5/+5
Fix the test to search for the original message instead of the already patched one that should not find any items anyway. The remove is called on already patched connections so we need to match it with the patch reference count.
2010-04-05bsc_msc_ip: Use the force_free method to free the SCCP connectionHolger Hans Peter Freyther1-2/+1
Before the connection was not properly removed from the list of connections and our connection list contained a dangling pointer.
2010-04-05[sccp] Add a force_free method for connectionsHolger Hans Peter Freyther2-0/+16
E.g. when the underlying connection transport medium is gone one needs to force to close SCCP connections, add this helper. It will remove the connection from the list of connections and it will free the data.
2010-04-05nat: Print the SCCP ref's as hex numbersHolger Hans Peter Freyther1-1/+1
This allows to more easily compare the numbers with traces seen in wireshark.
2010-04-05nat: Avoid crashing when we have no pending transactionHolger Hans Peter Freyther1-0/+3
2010-04-05nat: Logging improvement for the nat.Holger Hans Peter Freyther4-3/+7
Print some more information, e.g. when a BSC is connected and authenticated, print the SCCP ref number.
2010-04-05[mgcp] Reduce this to a debug message...Holger Hans Peter Freyther1-1/+1
This message can get in the way during a re-establishment of the MSC connection while the MSCs gateway is still sending data to us.
2010-04-05bsc_msc_ip: Verify that the sccp connection is present.Holger Hans Peter Freyther1-1/+2
The SCCP might have been freed by the error case already so we need to check this one for zero.
2010-04-05nat: Print the MSC multiplex as wellHolger Hans Peter Freyther1-2/+4
2010-04-05nat: Remember where the BTS is listening for things.Holger Hans Peter Freyther3-1/+31
Extract the port from the BSS's MGCP Gateway so we know where to forward the data to.
2010-04-05nat: No need to match \r\n when parsing the C: NHolger Hans Peter Freyther1-1/+1
2010-04-05[mgcp] Use a different port to more easily differentiateHolger Hans Peter Freyther1-1/+1
2010-04-05[mgcp] Print the BTS IP addr of the endpoint.Holger Hans Peter Freyther1-2/+3
2010-04-04nat: Remove the broken empty line check, follow \n vs \r\n of inputHolger Hans Peter Freyther2-9/+23
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-04-04[mgcp] Start to look into the MGCP messages and extract the CIHolger Hans Peter Freyther1-11/+17
we will need the call identifier for the MDCX and DLCX message for now we were just assuming it would increment, use som python to extract the CI from a possible response, also switch back to a blocking read to test the BSC nat.
2010-04-04[ipa] When including MGCP our messages might be bigger than 300 byteHolger Hans Peter Freyther1-1/+1
The length field of the IPA header allows to have 16bit numbers and I just ran into the 300 byte limit with MGCP messages. Make it three times the size and see how long this is going to be enough.
2010-04-04nat: Use a ptr that was allocated by tallocHolger Hans Peter Freyther1-1/+1
The endp is part of an array allocated by talloc and simple array members do not qualify as a context start address.
2010-04-04nat: Make rewrite work on string, read to a string first, copy to msgbHolger Hans Peter Freyther3-24/+25
The MGCP protocol parsing is adding '\0' to make sure we do not parse beyond where we should parse. This does not mix with strtok or similiar routines. For now we will read the msg into a global array first, then copy it to the msgb for mgcp protocol handling and if we are required to forward it to the MGCP we have a untouched copy we will modify into our own msgb.
2010-04-04[mgcp] Set the right variable to NULL otherwise we get a double freeHolger Hans Peter Freyther1-1/+1
2010-04-04[mgcp] Fix the transaction id of the AUEP requestHolger Hans Peter Freyther1-1/+1