9
0
Fork 0
Commit Graph

363 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther fffdd76f56 msc: Only take down the link if it is up
If the link was never started and we send a SIGUSR2
we would start the link. Don't do it.
2011-11-25 17:24:59 +01:00
Holger Hans Peter Freyther 31d6597c3f vty: Introduce show mscs to show all mscs 2011-11-25 16:23:43 +01:00
Holger Hans Peter Freyther ade60edd5f msc: Only unregister the fd when we have a valid fd 2011-11-25 15:32:45 +01:00
Holger Hans Peter Freyther 143af9a02d bss: Add an additional test where we do not want to patch anything 2011-11-24 11:23:30 +01:00
Holger Hans Peter Freyther 6853567564 bss: Patch CC messages with bearer capabilities to contain AMR 3
* 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-24 11:07:37 +01:00
Holger Hans Peter Freyther 1ab8961450 bss_patch: Remove magic number and use define for BSSAP management 2011-11-23 19:25:10 +01:00
Holger Hans Peter Freyther 7eaf6fb9f9 sccp: PC -> PointCode and we remove them to avoid routing issues 2011-11-23 18:38:30 +01:00
Holger Hans Peter Freyther df38eb1b4c rate_ctr: Initialize the rate_ctr to update them properly
This way we get proper information about packets per second/hour
and minute. Right now we only count the total.
2011-11-20 13:26:31 +01:00
Holger Hans Peter Freyther e616863190 misc: Address various compiler warnings in the code 2011-11-20 11:11:01 +01:00
Holger Hans Peter Freyther 6b7ce74b8a dist: Ignore some more files here 2011-11-20 10:52:41 +01:00
Holger Hans Peter Freyther 67c4c451c5 distcheck: Add the header file to make the distcheck pass 2011-11-20 10:49:26 +01:00
Holger Hans Peter Freyther 475291355d tests: Add GNU Autotest invocation for the tests we have here
Add some std output of the applications, integrate tests.
2011-11-20 10:47:14 +01:00
Holger Hans Peter Freyther fd8513d8c3 mgcp: Increase number of endpoints that can be blocked
For the Virtual Trunk we have more than 31 endpoints. Increase the
number by a large factor here.
2011-10-07 17:39:57 +02:00
Holger Hans Peter Freyther 7158822985 mgcp: Skip blocked endpoints in the show mgcp command 2011-09-19 23:46:55 +02:00
Holger Hans Peter Freyther 2facdb7943 msc: Do not run ping/pong timers by default
The current ping/pong timeout is 0 which means the MSC connection
will be taken down almost immediately. Set it to -1 to disable sending
pings and waiting for the pong.
2011-09-19 23:31:45 +02:00
Holger Hans Peter Freyther 0008960d88 mgcp: Update the default config to have multiple virtual trunks 2011-09-19 23:27:39 +02:00
Holger Hans Peter Freyther d786928221 mgcp: Improve the show mgcp command to print the domain name
For virtual trunk's we only have the virtual domain name they
are serving. Print that instead of the trunk->nr which has no
meaning in this context.
2011-09-19 23:26:11 +02:00
Holger Hans Peter Freyther ca5254b29c mgcp: Write the vtrunk using mgcp_write_vtrunk_extra 2011-09-19 13:41:05 +02:00
Holger Hans Peter Freyther b1dfc462df cellmgr: Patch the MGCP messages and replace the domain name
Replace the domain name with a new name domain that can be configured
via the VTY interface.
2011-09-15 19:30:20 +02:00
Holger Hans Peter Freyther 588754c7d3 mgcp: Reset the local endpoint with the domain name configured 2011-09-15 13:23:00 +02:00
Holger Hans Peter Freyther 040c6bcb25 mgcp: Reset endpoints via the trunk config instead of all of them
This change is coming from OpenBSC and was adjusted to mgcp_ss7
2011-09-14 22:32:59 +02:00
Holger Hans Peter Freyther fa15805e81 mgcp: Fix the indention of the trunk/vtrunk extra items
Use two spaces for the config items on the level of the
TRUNK/VTRUNK node to follow the normal items.
2011-09-14 22:30:05 +02:00
Holger Hans Peter Freyther d3b8d5f4d1 mgcp: Fix the naming of the various audio volume/gain parameters
The problem has been here for a while, fix the parsing of the
generated config file
2011-09-14 22:29:17 +02:00
Holger Hans Peter Freyther f574cec745 mgcp: Introduce multiple virtual trunks
A virtual trunk is identified by a virtual domain name.
2011-09-14 22:29:14 +02:00
Holger Hans Peter Freyther 96cc57af80 mgcp: Generate the ConnId per trunk base
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-14 22:28:13 +02:00
Holger Hans Peter Freyther 42e44a9e5e mgcp: Introduce a command that will just block the default ports
It can be difficult to find the Timeslot/Multiplex for a higher
number virtual trunk. This would be used by default, but normally
the endpoint would be blocked on the switch already.
2011-09-14 22:28:13 +02:00
Holger Hans Peter Freyther dea0ccc7fc mgcp: Add VTY commands to block endpoints instead of having this hardcoded
Instead of assuming which endpoints are blocked there is now a VTY
command to block those. Clean up the init of the trunks, the only difference
between Virtual and E1 is in the way to calculate the start port.

Reduce the number of endpoints to 32, 31 is the last one that can be
used on the E1 trunk, otherwise we move into TS 0 of the following trunk.
2011-09-14 01:58:40 +02:00
Holger Hans Peter Freyther c2bb077a48 mgcp: Split creation of endpoints and static port allocation
Create the endpoints as soon as possible, configure static ports
after we are through with the parsing of the VTY config.
2011-09-14 00:23:22 +02:00
Holger Hans Peter Freyther e72139a6f3 mgcp: Remove the endp_offset that was introduced due coding stupidity
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-13 22:53:13 +02:00
Holger Hans Peter Freyther fc98ce252e vty: Add a config to enable MGCP command rewriting 2011-09-13 20:08:57 +02:00
Holger Hans Peter Freyther a79aff3f96 sctp: Really apply the MSC workaround
The MSC workaround was added in 5960ba387a
but it has never worked as in 8fd28dbbe6 (earlier)
we were checking for link->conn != conn in the dispatch method. Move the
code over to the generic dispatch and check for NULL.
2011-08-10 06:45:52 +02:00
Holger Hans Peter Freyther cf60a01cd0 sctp: Add VTY command to print details about active SCTP connections
This will print details about each SCTP connection including the
FD and pointer of it.
2011-08-10 06:37:35 +02:00
Holger Hans Peter Freyther f2312cb04c sctp: Check if there is any other connection with the ASP ident
When we get an ASP UP check if there is any other ASP that is
using the same identifier and then complain.
2011-08-10 06:37:35 +02:00
Holger Hans Peter Freyther ab79b9b593 m2ua: Print information about number of SCTP connections
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-08-10 06:37:35 +02:00
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