9
0
Fork 0
Commit Graph

256 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther e592933202 mgcp: Use the 'i' as type for SNMP to help with the code. 2011-03-01 18:00:52 +01:00
Holger Hans Peter Freyther b7299a89cd mgcp: Configure the HSCOMM routing based on the information we have
Configure the routing of audio ports if mgcp_mgw is configured
to do this. This allows to have multiple trunks, make virtual
ports go to a specific trunk as well.
2011-03-01 16:07:54 +01:00
Holger Hans Peter Freyther d384912f76 mgcp: Calculate which dsp resource should be used by the trunks 2011-03-01 16:07:19 +01:00
Holger Hans Peter Freyther 672f321eea mgcp: Calculate the right Audio Processor resource for high endpoints
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-01 13:52:57 +01:00
Holger Hans Peter Freyther dcc3312792 mgcp: Merge OpenBSC MGCP code and update the structure to match it
* 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-03-01 13:02:29 +01:00
Holger Hans Peter Freyther f3da99ed65 mgcp: Attempt to get the endpoint configuration right
number_endpoints is always one bigger than it needs to be,
subtract the one in the show command, start counting at one.
2011-02-28 17:27:14 +01:00
Holger Hans Peter Freyther 796406beee mgcp: Add code that will attempt to configure the TDM switch 2011-02-28 17:21:49 +01:00
Holger Hans Peter Freyther a2938fee11 sctp: Fix a memory leak on connection failures. 2011-02-25 19:48:24 +01:00
Holger Hans Peter Freyther 718d4ba66c sctp: Only handle traffic with the payload type of M2UA 2011-02-25 19:47:55 +01:00
Holger Hans Peter Freyther 0e6cbc62b2 sctp: Fail if we fail to enable SCTP events on this socket
Without events we don't have access to the SCTP sndrcvinfo and
the ppid in it and we will do bad things like sending M2UA on
PPID 0.
2011-02-25 19:44:22 +01:00
Holger Hans Peter Freyther 639d77b6fb links: Fix the init code for the old cellmgr_ng code 2011-02-25 16:29:45 +01:00
Holger Hans Peter Freyther 03fc66074b counter: Fix the wrong counter size. 2011-02-23 17:41:23 +01:00
Holger Hans Peter Freyther af3faf8a81 vty: Allow to specify 14 bits for the CPC. 2011-02-23 16:59:45 +01:00
Holger Hans Peter Freyther d062f8318e mtp: Call the mtp_link_set always set otherwise things get confusing
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-23 16:58:15 +01:00
Holger Hans Peter Freyther 765fba3fd0 msc: Remove unused method from the code 2011-02-23 16:54:50 +01:00
Holger Hans Peter Freyther 4c9dd160c3 sccp: The link attribute was never used leading to a crash
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-23 16:11:21 +01:00
Holger Hans Peter Freyther 47c9faac3b mtp: Attempt to implement the MTP Restart properly
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-23 15:27:09 +01:00
Holger Hans Peter Freyther 8d7027846f mtp: Do not start linktest on a blocked link 2011-02-23 15:25:36 +01:00
Holger Hans Peter Freyther 7176030e02 vty: Add all mighty new vty interface for osmo-stp
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-23 15:25:35 +01:00
Holger Hans Peter Freyther 2917644d50 vty: Move the actual commands into a new file in preparation 2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther 318e830463 vty: Always work through the linkset number for the commands 2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther 169a1a918c misc: Use llist_add_tail to add new links to the end 2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther e62e4b05bf m2ua: Make sure all replies contain the link identifier 2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther cfe9d718e2 vty: Remove more globals from the bsc data.
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-22 21:05:59 +01:00
Holger Hans Peter Freyther 4cee7c0901 m2ua: Start link only after we had the emergency alignment
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-17 19:34:28 +01:00
Holger Hans Peter Freyther 5e5758c783 log: Improve some logging messages across several files. 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 7c6feca7cf m2ua: Do nothing on a reset request for now.
Only restart the link test on this link in case the link
is present and we need to do things. The link up/down should
be controlled in a different way.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 8fd28dbbe6 m2ua: Keep the M2UA ASP state in the mtp_m2ua_link
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-17 19:34:28 +01:00
Holger Hans Peter Freyther 41df6c5978 m2ua: Include the interface identifier in the notify message 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 5a34c7f6f8 mtp: Rename link_no to nr, add a name like for the other commands 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 6c0b2e570c mtp: Make the mtp_link point to a specific type of link
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-17 19:34:28 +01:00
Holger Hans Peter Freyther ea247c1d0a vty: Move link commands from the name to the linkset number 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 1b5d846b46 mtp: Stop hardcoding the supported SSN inside the mtp_layer3.c
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-17 19:34:28 +01:00
Holger Hans Peter Freyther b27c9626e8 mtp: Remove the bsc pointer from the MTP LinkSet 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther a33b23f293 mtp: Rename no to nr to align with the rest of the structs 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 4096d12ee0 bsc: Print the talloc allocation report on SIGUSR1 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 5cd45e16ef bsc: Move the signal handling code over to the bsc.c 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 2d4891ff8c bsc: Move the option parsing into the common code in bsc.c 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 289436f8b6 bsc: Cleanup some fields and names 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 64b7d56dc0 ss7: Move all mtp linksets callbacks into the app layer 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther c5200fcb35 ss7: Move the linkset up/down into the ss7_app, move some code around 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther ab7c601118 ss7: Provide a way to start the application 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther a7bc3aafdc ss7: Create a SS7 application that is responsible for the routing 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 2cdb73cf4a msc: Move more state into the sccp_state.c 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 3d4d8c7b50 msc: Move the nat handling into the sccp_state for now 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 84ec8714b2 msc: Move the MSC Connection into a new header file
This is in preparation of splitting the MSC part and the
nat logic for the upcoming config rewriting.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther f7ce2c6417 m2ua: Start to separate the SCTP code and M2UA to allow multiple links
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-17 19:34:27 +01:00
Holger Hans Peter Freyther 694337f893 mtp: Allow to find a linkset by number 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 599c9a4b9a mtp: Allocate the MTPLinkSet as a child of the BSC
In preparation of the VTY code change, make the mtp linkset
a child of the bsc.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 2ff47b8606 bsc: Allocate the bsc with talloc instead
Allocate the bsc with talloc to have a nice root context for
everything in the system.
2011-02-17 19:34:27 +01:00