aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2010-05-01configure.in: Bump the version due mem leak fixes.on-waves/0.3.99.2Holger Hans Peter Freyther1-1/+1
The nat is stable and in testing..
2010-05-01nat: Improve log message and refer to the BSC that was lost.Holger Hans Peter Freyther1-2/+6
2010-05-01nat: Fix memory leak... in MGCP forwardingHolger Hans Peter Freyther1-0/+1
The code needs to be refactored but this is fixing the leak for now. We used to forward everything to the BSC but now we handle the DLCX locally and this means we need to clear the patched message. We should refactor it to not generate the patched msg until a lot later.
2010-04-30[vty] Free the matched at the end of the routine.Holger Hans Peter Freyther1-4/+0
Remove the return from the case labels and cleanup at the end matched array at the end of the routine.
2010-04-30[vty] Plug memory leak on auto completion.Holger Hans Peter Freyther1-1/+3
I assume the original code crashed with a double free as we have a cleanup at the end of the method. Return from the routine like the case label below. This is fixing a memory leak I am experimenting.
2010-04-30[vty] Allow to create a buffer in a given context.Holger Hans Peter Freyther4-6/+6
Stop using the global vty context for all allocations and allow to embed the buffer into a given context, and allocate sub buffers with the context of its parent.
2010-04-30[vty] Move some allocations into the context of the vty.Holger Hans Peter Freyther1-5/+5
2010-04-30[vty] Remove FIXME as it appears to do the right thing.Holger Hans Peter Freyther1-2/+1
2010-04-30nat: Report some more contextsHolger Hans Peter Freyther1-1/+11
2010-04-29[mgcp] Remove talloc.h header.Holger Hans Peter Freyther1-1/+0
2010-04-27nat: Do not use \n in the vty code.Holger Hans Peter Freyther1-5/+5
When we really need a newline we need to use VTY_NEWLINE.
2010-04-27nat: Add a command to close a given BSC ConnectionHolger Hans Peter Freyther3-5/+24
This can be used to clear stale connections for a given BSC or to force a reconnect of the BSC.
2010-04-27nat: Print the remote reference as well.Holger Hans Peter Freyther1-1/+5
2010-04-26Bump the version of OpenBSC.on-waves/0.3.99.1Holger Hans Peter Freyther1-1/+1
2010-04-26[ts] Make the e1inp_ts delay configurableHolger Hans Peter Freyther5-2/+14
Currently the nanoBTS bootstrap code requires a high delay otherwise we are not bringing the device up properly. Changing the init code turns out harder than it seems like. So this is a workaround for that to allow a high speed RSL/OML connection after the bringup. The line driver can have a default TS delay. It is set to the current default for the nanoBTS and the BS11. For the ipaccess case we will set the delay lower for the RSL connection and inside the ipaccess-config we can set it low right away to have fast firmware flashing and such.
2010-04-26ipaccess: Restore the original delay for the nanoBTS delay.Holger Hans Peter Freyther1-2/+1
2010-04-26bsc_init: Do not use magic numbers for GSM 12.21 states.Holger Hans Peter Freyther1-6/+6
2010-04-26bsc_init: Remove printf that sneaked in.Holger Hans Peter Freyther1-2/+0
2010-04-24nat: Release the transaction id earlier, always reset the BSCHolger Hans Peter Freyther1-6/+8
In case we can not find the SCCP connection we still want to free any pending transaction ids and reset the BSC inside the endpoint. In most cases this should be already done when the SCCP connection or the whole BSC is gone.
2010-04-24[mgcp] Possible memleak fix for the allowed reallocation caseHolger Hans Peter Freyther1-0/+1
When allowing to reallocate an allocated endpoint we will need to free it first. When freeing we will free the call id and other ids that we would have leaked otherwise.
2010-04-24nat: Attempt to clarify the text inside the log message.Holger Hans Peter Freyther1-1/+1
2010-04-23nat: Allocate a named context to make dumping allocations possibleHolger Hans Peter Freyther1-0/+1
This is fixing the SIGUSR1 to really report the allocated memory on stderr.
2010-04-23bsc_msc_ip: Add a timeout for waiting for the CC of the networkHolger Hans Peter Freyther2-20/+47
Start a timeout to wait for the CC of the network and if it does not come in time we will abort the connection and take down the allocated lchans.
2010-04-23nat: Only close connections that were fully connectedHolger Hans Peter Freyther3-1/+4
Remember that we have seen a CC and have a valid destination local reference now and only send a fake RLC to the MSC when we had connections in this state.
2010-04-23nat: When having a proper close down, or a short read close the connectionHolger Hans Peter Freyther1-9/+8
For now close the connection when having a short read. This might be due a network issue (loss of segment) or similiar. As we are not handling these issues well, let us close the connection.
2010-04-22nat: Only send DLCX when we have send a CRCX to the BSC on this endpointHolger Hans Peter Freyther2-1/+4
2010-04-22nat: Handle all queueing to the MSC through the same function.Holger Hans Peter Freyther1-16/+12
2010-04-22nat: Use show bsc config for showing the configuration.Holger Hans Peter Freyther1-2/+2
2010-04-22[mgcp] Add a change callback and send a dummy packet on MDCX.Holger Hans Peter Freyther1-0/+10
Send a dummy packet to make sure our Gateway will discover us and can send the ringtone to us.
2010-04-22nat: Use hex for the endpoint namesHolger Hans Peter Freyther1-2/+2
2010-04-22[mgcp] Ignore every dummy packet...Holger Hans Peter Freyther1-7/+7
This routine should operate on different packets and the dummy load is smaller than a legitimate RTP header so it is unlikely we will filture out genuine traffic. The reason is the dummy load might be send more than once.
2010-04-22nat: Change MGCP DLCX handling and send dummy MDCX to the BTS.Holger Hans Peter Freyther6-41/+114
When setting a new MSC timeslot to a SCCP connection check if any of the existing connections have this timeslot, if so we will send a DLCX down the stream to make sure it is closed there, when we will CRCX this new timeslot we will happily reallocate it. When the SCCP connection goes away, or we get a DLCX from the network, or the BSC is gone we will send a DLCX message down the stream as well. When we receive a CRCX from the network we will forward the CRCX as usual and send a dummy MDCX after it. For the DLCX and the dummy MDCX we send a custom MGCP message that will not provoke an answer. Even if the downstream MGCP GW will answer we will ignore it due the dummy transaction id that is not used anywhere else. This change should make sure that we close the dowstream endpoint all the time, even when the DLCX arrives after the SCCP connection is torndown.
2010-04-22nat: Move the write queue init to the allocation functionHolger Hans Peter Freyther2-1/+1
This is required for unit tests that want to queue messages and see if we can provoke a memleak.
2010-04-22nat: Clear the queued messages at the endHolger Hans Peter Freyther1-4/+5
It is possible that the calls from the loop would queue more messages for the BSC and then we would have a nice memory leak... Move it to the bottom.
2010-04-22[mgcp] Protocol extension to not generate answers.Holger Hans Peter Freyther1-0/+24
For the NAT we want to send requests in a send and forget way and we are not interested in seeing the answers, so tell the gateway to not answer them.
2010-04-22[mgcp] Print a Deleted endpoint message again.Holger Hans Peter Freyther1-0/+2
2010-04-21[mgcp] Add a dummy send method...Holger Hans Peter Freyther2-0/+19
This can be used by higher level code to send one dummy message from the audio port to the network. This can be used to make the remote discover the nated port of this endpoint.
2010-04-21[sccp] Move from DEBUGP to LOGP in sccp.cHolger Hans Peter Freyther1-52/+54
2010-04-21[nat] Degrade the message to a plain debug output.Holger Hans Peter Freyther1-1/+1
2010-04-21[nat] Fix the vty option... use the right argument.Holger Hans Peter Freyther1-1/+1
2010-04-21[nat] Add option to forbid the paging to the BSC.Holger Hans Peter Freyther3-1/+24
This can be done for testing purposes and to allow making a BTS crash that can not handle paging requests properly.
2010-04-21[nat] Lookup by BSC Connection otherwise the point of reassigning the is ↵Holger Hans Peter Freyther4-11/+14
defeated When sending a MSG to the MSC try to find the to be used "src" reference by comparing the reference on the BSC and the BSC connection. Only this tuple needs to be unique. Actually only when looking at the SRC REF we need to compare the BSC as the dest reference should be unique but we are just making the check a bit stronger to make it look symmetric.
2010-04-21[nat] Slightly improve logging..Holger Hans Peter Freyther1-1/+2
If we find the connection of a different BSC at least log the BSCs that had duplicated references. We should also dump the src ref and such but i am not doing this right now.
2010-04-21[nat] Ignore paging that is to page by BSS...Holger Hans Peter Freyther1-1/+5
We do not want to handle this identity. If we can not page by lac there is no need to page anything else.
2010-04-21[nat] Add unit test to forward Proto Error messages back both ways.Holger Hans Peter Freyther1-0/+19
2010-04-21[sccp] Parse the error message and add a unit test for it.Holger Hans Peter Freyther3-1/+46
2010-04-21[nat] Reword warning when we had a pending transaction and forget about it.Holger Hans Peter Freyther1-2/+2
2010-04-21[nat] Cope with a bad BSC reassigning in use SRC REFHolger Hans Peter Freyther1-0/+22
Some closed source BSC like to assign the SRC REF from a small static pool and might reuses one we have not yet given up on.
2010-04-20[ipaccess] Attempt to fix setting unit ids with a multi trx setupHolger Hans Peter Freyther1-3/+12
Add a --trx/-t NR option to set the TRX nr to be used when calling set unit id and NVRAM. This was not tested and might or might not work.
2010-04-20Versioning for the bsc_msc_ipon-waves/0.3.99Holger Hans Peter Freyther1-1/+1