9
0
Fork 0
Commit Graph

41 Commits

Author SHA1 Message Date
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 77ffc93742 mgcp: Rename from snmp to hw in variables and function name. 2012-01-22 11:41:54 +01: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 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 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 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 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
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 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 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 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 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 122d604838 mgcp: Turn the endpoint-offset into a proper config option 2011-01-26 13:20:32 +01:00
Holger Hans Peter Freyther 1cf3a83780 mgcp: Make it possible to control the offset from Endpoint to CIC 2011-01-26 12:51:22 +01:00
Holger Hans Peter Freyther de56c22702 license: Switch to the GNU AGPLv3 for this network service 2011-01-16 20:35:13 +01:00
Holger Hans Peter Freyther 882082c1f6 mgcp: Fix the adaptation name for the config options 2010-12-20 17:21:26 +01:00
Holger Hans Peter Freyther 2c472a3f7b mgcp: Fix the management objects 2010-12-20 17:21:26 +01:00
Holger Hans Peter Freyther 8fa8e584dd mgcp: Add config options for some GAIN options, apply them. 2010-12-01 23:45:22 +01:00
Holger Hans Peter Freyther ed3046339e mgcp: Print the extra settings from the config 2010-10-27 19:33:06 +02:00
Holger Hans Peter Freyther e3abeb1400 mgcp: Assume that on a MDCX all data is present...
Send a dummy packet on each MDCX message. This assumes
that the remote address is available by then and this
should fix not hearing the ringtone as the NAT didn't
know to which port to forward the data.
2010-10-18 19:37:32 +02:00
Holger Hans Peter Freyther cdad4de330 mgcp: Only if this node is supposed to send data send a dummy packet
In case the gateway is configured as recvonly, do not send a dummy
load as this is against the policy.
2010-09-18 23:59:43 +08:00
Holger Hans Peter Freyther 95cac74e37 mgw: Add a realloc_cb that will give up the old endpoint
Free the endpoint if we need to realloc, the sequencing
and blocking will take care of everything.
2010-09-18 03:16:52 +08:00
Holger Hans Peter Freyther 33cdb7e027 mgcp: Add an option to force reallocating endpoints. 2010-09-17 22:03:47 +08:00
Holger Hans Peter Freyther 757f174e76 mgcp: Keep the data for the config in a global var again. 2010-09-17 22:03:08 +08:00
Holger Hans Peter Freyther d5918ff9e4 mgcp: Add an option to enable/disable vad and enable it by default 2010-08-07 00:19:07 +08:00
Holger Hans Peter Freyther e807376257 mgcp_ss7: Move the vty code/params over to mgcp_vty.c
Share more code with the OpenBSC version of the VTY code
minus the changes to allow to parse a generic hostname
instead of an ip address.
2010-08-04 07:34:21 +08:00
Holger Hans Peter Freyther f9e9977101 mgcp_ss7: Change the vty config to operate on the static g_cfg pointer
Work more like the other mgcp gateway and first allocate the config
and then apply the setting on it.. The next step will be to move to
the real vty code minus some bits.
2010-08-04 07:22:52 +08:00
Holger Hans Peter Freyther f41617bb11 mgcp: Allocate the mgcp config earlier.. 2010-08-04 07:08:33 +08:00
Holger Hans Peter Freyther cc1a9384b0 mgcp_ss7: Add the telnet interface to the mgcp_ss7. 2010-08-04 06:24:51 +08:00
Holger Hans Peter Freyther d2c46d4644 mgcp_ss7: Add logging commands.. 2010-08-04 06:24:45 +08:00
Holger Hans Peter Freyther 73cdc5fd97 mgcp_ss7: Remove unnecessary code... 2010-08-04 06:09:14 +08:00
Holger Hans Peter Freyther cbf7d18bb9 Use libosmocore instead of the old temporary laF0rge1 lib.. 2010-08-04 06:08:40 +08:00
Holger Hans Peter Freyther 9ed3e1b3f3 u_int32_t -> uint32_t 2010-07-31 05:22:56 +08:00
Holger Hans Peter Freyther 5aa17014de u_int8_t -> uint8_t 2010-07-31 04:37:26 +08:00
Holger Hans Peter Freyther 97f66e2b53 Public release of the cellmgr_ng code to convert E1 to IPA SCCP 2010-07-28 03:36:32 +08:00