9
0
Fork 0
Commit Graph

429 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 826390a5ba syslog: Add syslog for the MGCP MTN thread
We can not use the osmocore logging in multiple threads, open a
separate syslog to log errors.
2012-06-12 15:50:31 +02:00
Holger Hans Peter Freyther 4d47451521 mgcp: Always restore the endpoint routing when destroying the endpoint
In case MtnSaAllocate failed the code did not restore the audio routing
when destroying the endpoint. Move the hw_maybe_loop_endp out of the if
statement.
2012-05-11 11:46:31 +02:00
Holger Hans Peter Freyther d56ddfc380 mgcp: Possible fix for using the right DSP resource on the MGCP MGW
This got broken in the previous commit. Use the hw_dsp_port we assigned
to the endpoint instead of the dsp_resource that is one ahead. For the
non loop-on-idle configuration audio routing appears to be broken.
2012-05-11 11:36:19 +02:00
Holger Hans Peter Freyther e1ec4c7047 hw: The DSP resource was one based with the SNMP API, subtract it
* Change the assigning dsp_resource to start with one and increase
  after usage and not before usage (so it becomes the next free
  port).
* Subtract one from dsp_port after we have selected the path. In the
  longer run I should make dsp_resources zero based all the way.
2012-01-23 16:30:16 +01:00
Holger Hans Peter Freyther c96c57b8d5 mgcp: Implement to loop timeslots when not used for audio
Deal with broken ISUP switches and allow to loop endpoints
when they are not connected. Introduce an option to do it.
2012-01-22 11:44:33 +01:00
Holger Hans Peter Freyther 765c48aba7 mgcp: Move to using the NexusWare API for Timeslot config 2012-01-22 11:43:39 +01:00
Holger Hans Peter Freyther 77ffc93742 mgcp: Rename from snmp to hw in variables and function name. 2012-01-22 11:41:54 +01:00
Holger Hans Peter Freyther 8aaaa406bb mgcp: Move the SNMP file to _hw.c to move to the NexusAPI 2012-01-22 11:40:35 +01:00
Holger Hans Peter Freyther d183052dae TODO: Add some known shortcomings and some talk about what to do. 2012-01-16 11:55:26 +01:00
Holger Hans Peter Freyther 60bc8e7dab mtp: Allow to send SCCP/ISUP to a specific endpoint
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.
2012-01-16 11:51:18 +01:00
Holger Hans Peter Freyther 53559b39e5 mtp: Provide the method with the OPC and DPC
We want to submit on a link set but want to provide the OPC and
DPC of the callers choice.
2012-01-16 09:57:06 +01:00
Holger Hans Peter Freyther 104280700a mtp: Name the parameter opc instead of just PC 2012-01-16 09:55:42 +01:00
Holger Hans Peter Freyther a59af64126 ss7: Make the forwarding methods static 2012-01-16 09:54:09 +01:00
Holger Hans Peter Freyther f3e9ad01c1 tests: Remove the copy of the 'missing' and use the $(top_srcdir) one 2011-12-04 23:29:46 +01:00
Holger Hans Peter Freyther d87ef3bc66 vty: Add show msc [NR] to specify an optional MSC nr 2011-11-28 10:16:38 +01:00
Holger Hans Peter Freyther c5e8f08303 msc: Make 'show msc' show the primary msc connection again
Revert an accidental change when introducing show mscs. We want
show msc to be like it was before.
2011-11-25 17:26:44 +01:00
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