9
0
Fork 0
Commit Graph

429 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther c21c0d699f misc: Update code to compil with libosmocore 0.3.2
The DSCCP/DM2UA code still needs to be updated to deal with the
new way to handle these regions in libraries.
2011-07-22 09:00:23 +02:00
Holger Hans Peter Freyther fcfb05fd5d misc: Fix the compilation of the tests 2011-05-09 11:08:55 +02:00
Holger Hans Peter Freyther 36bd5d755c Merge remote-tracking branch 'origin/laforge/namespace' 2011-05-08 16:17:10 +02:00
Harald Welte ff397edf38 Adopt to recent libosmocore namespace changes and libosmogsm 2011-05-08 10:29:23 +02:00
Holger Hans Peter Freyther edfadaeb3d mgw: Attempt to set the CMR to 5.9kbit/s
This will hopefully make the MTN4200 always use the
5.9kbit change mode.
2011-04-26 18:19:14 +02:00
Holger Hans Peter Freyther b806c14e21 mgcp: Fix the comment in the configuration 2011-03-25 10:46:52 +01:00
Holger Hans Peter Freyther 8e6d4c3414 mgcp: Check if the endpoint is blocked and then reject it
Instead of hardcoding which timeslot is blocked we will just
use the blocked flag in an endpoint. This should fix call
handling for CIC on the trunk config.
2011-03-21 15:14:04 +01:00
Holger Hans Peter Freyther e0dc3e5276 isup: Handle CGUs and respond with a CGUA
We don't let CGUAs pass when handling circuit blocking and
unblocking locally. But we did let a CGU go through and then
we never sent the response back to the sender. Respond to a
CGU with the same content.
2011-03-05 09:50:47 +01:00
Holger Hans Peter Freyther 2068e8cfe3 vty: Remember if isup should be passed through or not. 2011-03-05 09:48:52 +01:00
Holger Hans Peter Freyther d0444e53af mgcp: Fix the initialisation set trunk_type in the caller 2011-03-03 11:50:06 +01:00
Holger Hans Peter Freyther 8941c1d422 isup: Print the linkset nr and name like in other commands. 2011-03-03 08:18:27 +01:00
Holger Hans Peter Freyther 56cba9ab45 ss7: Drop the input of packages as well
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-03 01:20:03 +01:00
Holger Hans Peter Freyther 899198ed2e ss7: Move the blocking of outgoing messages into the SS7 app
We are using knowledge of the SS7 application to drop outgoing
packages to force failures on the link and should move this into
the ss7 application.
2011-03-03 01:19:45 +01:00
Holger Hans Peter Freyther d38b87a4c9 ss7: Do not send anything until both linksets in an app are up
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-03 01:19:02 +01:00
Holger Hans Peter Freyther 123147a472 sctp: Mention the link index that got released 2011-03-03 01:13:26 +01:00
Holger Hans Peter Freyther 3574c121ff mtp: Consider the linkset be ready for SCTP after having collected routing data
After the expiry of T18 we should have collected the routing data
from the adjacent links and should be able to send SCCP packages
to remote endpoints.
2011-03-02 23:44:03 +01:00
Holger Hans Peter Freyther ec84e3c1a1 mgcp: Add a go to parent to allow multiple trunks 2011-03-02 22:49:02 +01:00
Holger Hans Peter Freyther 3c8b0f89aa mgcp: Use the blocked attribute to figure out if an endpoint is blocked 2011-03-02 22:22:50 +01:00
Holger Hans Peter Freyther 7e8ee3a4be sctp: Use the right link index when sending messages
Stop using the hardcoded link index and use the link index
of the link.
2011-03-02 22:00:24 +01:00
Holger Hans Peter Freyther 5960ba387a sctp: Handle establish request for a wrong ASP
The MSC we test is not sending an ASP Active when the
link is unblocked. If the m2ua_link has no connection
associated we will forgive the MSC and active it.
2011-03-02 21:56:03 +01:00
Holger Hans Peter Freyther fb5b6dc80e mgcp: Respect the blocked indication fo an endpoint. 2011-03-02 21:49:50 +01:00
Holger Hans Peter Freyther 0d20e0d12f mgcp: Mark certain endpoints as blocked.
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-02 21:44:01 +01:00
Holger Hans Peter Freyther d523131339 snmp: Fix the configuration and point it to the right thing. 2011-03-02 13:34:43 +01:00
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