aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2012-12-16stp: Allow to specify a trunk_name in the applicationHolger Hans Peter Freyther1-1/+4
This trunk name will be used to send RSIP for the trunk on ISUP resets. Right now each app can be associated only one trunk.
2012-12-16stp: Extract the MGCP forwarding code out of the msc_connectionHolger Hans Peter Freyther3-3/+39
For the ISUP/MGCP handling we will need the same code, extract it from the msc_connection. For the reading code callback is introduced that will pass the MGCP message to the higher layer.
2012-12-16mgw: Implement the specific RSIP handlingHolger Hans Peter Freyther1-1/+1
The RSIP has morphed from a global reset, to a per trunk reset and now it is possible to reset specific ranges on a trunk. This will be used by the ISUP filter code in the STP. For legacy range == -1 will be used. This will reset all endpoints on the trunk. Use OSMO_MAX on endpoint and number of endpoints in case number_endpoints is 0. This code will now free everything from the endpoint to endpoint + range including endpoint+range.
2012-12-16mgcp: Merge the current MGCP code from OpenBSCHolger Hans Peter Freyther2-9/+24
There were several changes in the upstream code. These include statistics, DTMF/RQNT, changes in the parsing code and re-transmission handling. The last item is the main reason to do the merge now.
2012-12-16dtmf: Schedule DTMF tones for the MTN hardwareHolger Hans Peter Freyther4-1/+29
Create a simple queue for pending DTMF tones, play them using the MTN API, and then send the next tones once the playback is complete. The callback and scheduling is done from the same context so no locking needs to be done.
2012-12-16mgcp: Begin handling of the RQNT message as needed for DTMFHolger Hans Peter Freyther1-2/+4
Introduce a callback for the request and forward the signalrequest to the callback. This is not a full implementation of MGCP RQNT. Manual merge and backport from OpenBSC.
2012-01-22mgcp: Implement to loop timeslots when not used for audioHolger Hans Peter Freyther2-0/+3
Deal with broken ISUP switches and allow to loop endpoints when they are not connected. Introduce an option to do it.
2012-01-22mgcp: Rename from snmp to hw in variables and function name.Holger Hans Peter Freyther2-5/+5
2012-01-16mtp: Allow to send SCCP/ISUP to a specific endpointHolger Hans Peter Freyther1-2/+12
For a linkset define where SCCP/ISUP should be send. This config should probably move up to the application part when real work on the routing is done. Right now the sccp_opc/sccp_dpc need to stay inside the mtp_layer3.c to be able to send a TFA for the reachable OPC and it is easier to keep both (dpc/opc) in the same file.
2011-11-24bss: Patch CC messages with bearer capabilities to contain AMR 3Holger Hans Peter Freyther1-3/+10
* This changes bss_patch_filter_msg to return -1 or BSS_FILTER_DTAP for DTAP messages. This way app_forward_sccp should continue to behave the same besides now looking into DTAP messages. * Introduce a direction in case we want to advertize FR into the BSS side and HR into the other direction. * Patch AMR HR3 and Fullrate/Halfrate capabilities in the Bearer Capabilities. Add a test case that is patching the bearer capabilities
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.