aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2011-11-20misc: Address various compiler warnings in the codeHolger Hans Peter Freyther1-0/+3
2011-11-20distcheck: Add the header file to make the distcheck passHolger Hans Peter Freyther1-1/+1
2011-09-15cellmgr: Patch the MGCP messages and replace the domain nameHolger Hans Peter Freyther2-1/+11
Replace the domain name with a new name domain that can be configured via the VTY interface.
2011-09-14mgcp: Reset endpoints via the trunk config instead of all of themHolger Hans Peter Freyther2-3/+1
This change is coming from OpenBSC and was adjusted to mgcp_ss7
2011-09-14mgcp: Introduce multiple virtual trunksHolger Hans Peter Freyther3-1/+5
A virtual trunk is identified by a virtual domain name.
2011-09-14mgcp: Generate the ConnId per trunk baseHolger Hans Peter Freyther1-2/+1
MGCP RFC 3435 does not specify that the Connection Id must be generated with any kind of random. It must uniquely identify the connection of an endpoint. So we can make it per trunk group or could even have it per endpoint. The code does not support multiple connections on the same endpoint right now but the spec allows it.
2011-09-14mgcp: Split creation of endpoints and static port allocationHolger Hans Peter Freyther1-0/+1
Create the endpoints as soon as possible, configure static ports after we are through with the parsing of the VTY config.
2011-09-13mgcp: Remove the endp_offset that was introduced due coding stupidityHolger Hans Peter Freyther2-2/+1
The endpoint offset is needed for two reasons, first the API is 0 based here while we are normally 1 based, second because of the trunks the first usable endpoint would be '2' (0 is CRC, 1 is signalling), but this endpoint offset falls apart when we would block timeslots inside this range. Remove the endpoint offset, in each endpoint we will store the HW DSP Port (1 based API) and then subtract one to get to the 0 based API for the Simple API. Print a warning when someone is using the endpoint offset.
2011-09-13vty: Add a config to enable MGCP command rewritingHolger Hans Peter Freyther1-0/+6
2011-08-10m2ua: Print information about number of SCTP connectionsHolger Hans Peter Freyther1-0/+2
It appears that it is possible to have a stale SCTP connection and this added LOGL_NOTICE and the VTY interface might help to identify this situation in the future (the mean time of failure is about five month).
2011-05-08Adopt to recent libosmocore namespace changes and libosmogsmHarald Welte15-54/+54
2011-03-03ss7: Drop the input of packages as wellzecke/test-forward-failureHolger Hans Peter Freyther1-0/+1
We don't want the input change any state on the linkset and will drop them if we think our application is not reachable.
2011-03-03ss7: Do not send anything until both linksets in an app are upHolger Hans Peter Freyther1-0/+2
We need some way to forward the failure of one link to another but they are not normally routed so we can not send a TFP. Right now we will simply stop responding until both links are up. This should make the SLTM fail and trigger a re-alignment on both sides. The key here is that the 2 * SLTM timeout needs to be higher than it takes to re-align the link. I'm not sure this code will work.
2011-03-02mgcp: Mark certain endpoints as blocked.Holger Hans Peter Freyther1-0/+1
Right now for the virtual trunk 0x0 and 0x1F is blocked, for the E1 like interface we have 0x0 and 0x1 blocked. This should start to be configurable in the future.
2011-03-01mgcp: Calculate the right Audio Processor resource for high endpointsHolger Hans Peter Freyther1-1/+1
With this commit we can have more than 30 endpoints that will work. We ignore the blocked endpoints 0x1 and 0x1f for each trunk and calculate everything from the right start point.
2011-03-01mgcp: Merge OpenBSC MGCP code and update the structure to match itHolger Hans Peter Freyther4-68/+190
* Upstream has a separation of BTS and NET side for RTP ports and can allocate them dynamically. * Upstream has gained the concept of trunks. We will now have various trunks to connect audio things. * We will now be able to utilize multiple trunks and have the endpoints used properly.
2011-02-23mtp: Call the mtp_link_set always set otherwise things get confusingHolger Hans Peter Freyther2-8/+8
In a backtrace it is confusing to see variables called link and link and one is a mtp_link and the other is a mtp_link_set.
2011-02-23sccp: The link attribute was never used leading to a crashHolger Hans Peter Freyther1-1/+0
Right now we assume that the source of an application with SCCP state tracking is a linkset. Send the message to that linkset.
2011-02-23mtp: Attempt to implement the MTP Restart properlyHolger Hans Peter Freyther1-0/+6
For the SSP functionatilty we will need to have the timers T18 and T20. In the period of T18 we will collect TFP/TFR/TFA for the reachable nodes of the system. Each of this node will send us a TRA when it is finished. Right now we assume to only have one node and stop the T18 after the TRA of this node. Then we would need to send the TFP/TFR we have collected. On the expiry of the T20 timer we will need to send our TRA and notify local users. For more complex routing we will need to have a shared routing cache and remember which SSNs and OPCs are reachable and have inter linkset notifications.
2011-02-23vty: Add all mighty new vty interface for osmo-stpHolger Hans Peter Freyther6-4/+61
This new interface allows to have multiple linksets, msc connections and ways to connect those in one instance of the osmo-stp. Forbid to reset linksets without an app.
2011-02-22vty: Remove more globals from the bsc data.Holger Hans Peter Freyther2-13/+8
This is a interim solution until we have the new and all mighty new config file format. This should work for now, makes the init abit harder to understand though.
2011-02-17m2ua: Start link only after we had the emergency alignmentHolger Hans Peter Freyther1-0/+1
This should avoid us getting an error as we are sending the SLTM too fast. In one way this makes sense, on the other hand we already have too many states and should remove some variables
2011-02-17m2ua: Keep the M2UA ASP state in the mtp_m2ua_linkHolger Hans Peter Freyther1-2/+9
This change allows to run multiple links over the same SCTP connection or multiple SCTP connections. It does not yet support fail over handling or load balancing but that seems possible now.
2011-02-17mtp: Rename link_no to nr, add a name like for the other commandsHolger Hans Peter Freyther1-1/+2
2011-02-17mtp: Make the mtp_link point to a specific type of linkHolger Hans Peter Freyther3-4/+15
We might want to be able to change the type of a link at runtime. Decouple the link and the actual type of the link.
2011-02-17mtp: Stop hardcoding the supported SSN inside the mtp_layer3.cHolger Hans Peter Freyther1-0/+3
Stop hardcoding the supported ssn's inside the mtp_layer3.c and make it possible to allow to configure this in the future.
2011-02-17mtp: Remove the bsc pointer from the MTP LinkSetHolger Hans Peter Freyther2-2/+2
2011-02-17mtp: Rename no to nr to align with the rest of the structsHolger Hans Peter Freyther1-1/+1
2011-02-17bsc: Cleanup some fields and namesHolger Hans Peter Freyther1-10/+0
2011-02-17ss7: Move all mtp linksets callbacks into the app layerHolger Hans Peter Freyther1-0/+1
2011-02-17ss7: Move the linkset up/down into the ss7_app, move some code aroundHolger Hans Peter Freyther2-1/+4
2011-02-17ss7: Provide a way to start the applicationHolger Hans Peter Freyther1-0/+2
2011-02-17ss7: Create a SS7 application that is responsible for the routingHolger Hans Peter Freyther6-22/+97
2011-02-17msc: Move more state into the sccp_state.cHolger Hans Peter Freyther1-1/+0
2011-02-17msc: Move the nat handling into the sccp_state for nowHolger Hans Peter Freyther1-0/+4
2011-02-17msc: Move the MSC Connection into a new header fileHolger Hans Peter Freyther6-72/+102
This is in preparation of splitting the MSC part and the nat logic for the upcoming config rewriting.
2011-02-17m2ua: Start to separate the SCTP code and M2UA to allow multiple linksHolger Hans Peter Freyther2-5/+18
We want to be able to support multiple links over different SCTP connection and in the future also over the same connection. This is the first step to separate the SCTP connection handling from the link handling inside these messages.
2011-02-17mtp: Allow to find a linkset by numberHolger Hans Peter Freyther1-0/+1
2011-02-17mtp: Allocate the MTPLinkSet as a child of the BSCHolger Hans Peter Freyther2-6/+9
In preparation of the VTY code change, make the mtp linkset a child of the bsc.
2011-02-17bsc: Allocate the bsc with talloc insteadHolger Hans Peter Freyther1-0/+2
Allocate the bsc with talloc to have a nice root context for everything in the system.
2011-02-10bsc: Remove the m2ua_set pointer from the struct as wellHolger Hans Peter Freyther1-1/+0
2011-02-10bsc: Remove the global link_set pointer from the bscHolger Hans Peter Freyther2-2/+5
Start removing the static names for the linkset
2011-02-10bsc: Move the BSC<->MSC variables to a new struct.Holger Hans Peter Freyther4-49/+69
Move the MSC related information out of the bsc_data and update the code to use this BSC configuration. This is greatly cleaning up the code and in theory there might now be two BSC and two MSCs that one application can handle (minus the missing VTY config)
2011-02-10stp: Allow/Disallow to inject messages on the UDP/M2UA interfaceHolger Hans Peter Freyther1-0/+1
2011-02-10stp: Add code that allows to inject messages on any linksetHolger Hans Peter Freyther2-0/+5
This can be useful to test out certain messages without having any of the linksets be fully connected. It is not possible to get the result. In the future this code should reply with an M2UA error message if something went wrong.
2011-01-30isup: Make it possible for the STP to handle/not handle ISUP messagesHolger Hans Peter Freyther1-0/+3
Add an option to decide if we should handle GROUP BLOCK and RESET messages inside the STP or if we should forward those as well.
2011-01-28udp: Use link up/down signals from the MIB for the linkHolger Hans Peter Freyther1-0/+3
The mib was patched to send link up/down in case of failures, only put a link service when the MIB tells us the link is up, the failure case should only happen for remote links failing. We will reset and go through link alignment.
2011-01-26mtp: Assign a name to linkset, use this name in the log messagesHolger Hans Peter Freyther1-0/+2
2011-01-25mtp: Remember the first SLS this link is onHolger Hans Peter Freyther1-0/+1
2011-01-24mtp: Call it mtp_link_submit and use it in mtp_linkHolger Hans Peter Freyther1-1/+1
Remove the _set from the API, call it from the mtp_link.c. This will fix the statistics for outgoing packets.