aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp_ss7.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-26mgcp: Add a log message about the tones that will be queuedHolger Hans Peter Freyther1-0/+1
2013-02-26mgcp: After the tones are played inform the DTMF stateHolger Hans Peter Freyther1-2/+3
dtmf_state_played will re-set the playing state. Currently the first tone was played and then no more tones were scheduled to be played.
2013-02-26mgcp: Remove unused variable from the callback handlingHolger Hans Peter Freyther1-1/+0
2012-12-16mgw: Implement the specific RSIP handlingHolger Hans Peter Freyther1-10/+30
The RSIP has morphed from a global reset, to a per trunk reset and now it is possible to reset specific ranges on a trunk. This will be used by the ISUP filter code in the STP. For legacy range == -1 will be used. This will reset all endpoints on the trunk. Use OSMO_MAX on endpoint and number of endpoints in case number_endpoints is 0. This code will now free everything from the endpoint to endpoint + range including endpoint+range.
2012-12-16mgcp: Merge the current MGCP code from OpenBSCHolger Hans Peter Freyther1-1/+1
There were several changes in the upstream code. These include statistics, DTMF/RQNT, changes in the parsing code and re-transmission handling. The last item is the main reason to do the merge now.
2012-12-16dtmf: Schedule DTMF tones for the MTN hardwareHolger Hans Peter Freyther1-0/+72
Create a simple queue for pending DTMF tones, play them using the MTN API, and then send the next tones once the playback is complete. The callback and scheduling is done from the same context so no locking needs to be done.
2012-12-16mgw: Always disable the writing for the socket notifier, initialize variableHolger Hans Peter Freyther1-1/+1
This was spotted while verifying the RSIP code using valgrind.
2012-06-12syslog: Log all exit paths in this codeHolger Hans Peter Freyther1-6/+7
There are some exit paths that do not have syslog logging.
2012-06-12syslog: Add syslog for the MGCP MTN threadHolger Hans Peter Freyther1-3/+18
We can not use the osmocore logging in multiple threads, open a separate syslog to log errors.
2012-05-11mgcp: Always restore the endpoint routing when destroying the endpointHolger Hans Peter Freyther1-1/+1
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-11mgcp: Possible fix for using the right DSP resource on the MGCP MGWHolger Hans Peter Freyther1-1/+1
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-01-23hw: The DSP resource was one based with the SNMP API, subtract itHolger Hans Peter Freyther1-2/+2
* 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-22mgcp: Implement to loop timeslots when not used for audioHolger Hans Peter Freyther1-5/+38
Deal with broken ISUP switches and allow to loop endpoints when they are not connected. Introduce an option to do it.
2012-01-22mgcp: Rename from snmp to hw in variables and function name.Holger Hans Peter Freyther1-4/+4
2011-09-14mgcp: Reset endpoints via the trunk config instead of all of themHolger Hans Peter Freyther1-14/+8
This change is coming from OpenBSC and was adjusted to mgcp_ss7
2011-09-14mgcp: Introduce multiple virtual trunksHolger Hans Peter Freyther1-4/+5
A virtual trunk is identified by a virtual domain name.
2011-09-14mgcp: Add VTY commands to block endpoints instead of having this hardcodedHolger Hans Peter Freyther1-48/+41
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-13mgcp: Remove the endp_offset that was introduced due coding stupidityHolger Hans Peter Freyther1-4/+3
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-07-22misc: Update code to compil with libosmocore 0.3.2Holger Hans Peter Freyther1-11/+7
The DSCCP/DM2UA code still needs to be updated to deal with the new way to handle these regions in libraries.
2011-05-08Adopt to recent libosmocore namespace changes and libosmogsmHarald Welte1-13/+13
2011-04-26mgw: Attempt to set the CMR to 5.9kbit/sHolger Hans Peter Freyther1-0/+4
This will hopefully make the MTN4200 always use the 5.9kbit change mode.
2011-03-21mgcp: Check if the endpoint is blocked and then reject itHolger Hans Peter Freyther1-7/+6
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-02mgcp: Use the blocked attribute to figure out if an endpoint is blockedHolger Hans Peter Freyther1-2/+2
2011-03-02mgcp: Mark certain endpoints as blocked.Holger Hans Peter Freyther1-2/+6
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-01mgcp: Configure the HSCOMM routing based on the information we haveHolger Hans Peter Freyther1-0/+35
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-01mgcp: Calculate which dsp resource should be used by the trunksHolger Hans Peter Freyther1-0/+25
2011-03-01mgcp: Calculate the right Audio Processor resource for high endpointsHolger Hans Peter Freyther1-5/+24
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-01mgcp: Merge OpenBSC MGCP code and update the structure to match itHolger Hans Peter Freyther1-346/+136
* 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-02-28mgcp: Attempt to get the endpoint configuration rightHolger Hans Peter Freyther1-4/+4
number_endpoints is always one bigger than it needs to be, subtract the one in the show command, start counting at one.
2011-01-26mgcp: Turn the endpoint-offset into a proper config optionHolger Hans Peter Freyther1-3/+2
2011-01-26mgcp: Make it possible to control the offset from Endpoint to CICHolger Hans Peter Freyther1-4/+17
2011-01-16license: Switch to the GNU AGPLv3 for this network serviceHolger Hans Peter Freyther1-7/+6
2010-12-20mgcp: Fix the adaptation name for the config optionsHolger Hans Peter Freyther1-4/+4
2010-12-20mgcp: Fix the management objectsHolger Hans Peter Freyther1-4/+4
2010-12-01mgcp: Add config options for some GAIN options, apply them.Holger Hans Peter Freyther1-0/+144
2010-10-27mgcp: Print the extra settings from the configHolger Hans Peter Freyther1-0/+6
2010-10-18mgcp: Assume that on a MDCX all data is present...Holger Hans Peter Freyther1-5/+2
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-09-18mgcp: Only if this node is supposed to send data send a dummy packetHolger Hans Peter Freyther1-1/+3
In case the gateway is configured as recvonly, do not send a dummy load as this is against the policy.
2010-09-18mgw: Add a realloc_cb that will give up the old endpointHolger Hans Peter Freyther1-0/+7
Free the endpoint if we need to realloc, the sequencing and blocking will take care of everything.
2010-09-17mgcp: Add an option to force reallocating endpoints.Holger Hans Peter Freyther1-0/+10
2010-09-17mgcp: Keep the data for the config in a global var again.Holger Hans Peter Freyther1-8/+8
2010-08-07mgcp: Add an option to enable/disable vad and enable it by defaultHolger Hans Peter Freyther1-0/+17
2010-08-04mgcp_ss7: Move the vty code/params over to mgcp_vty.cHolger Hans Peter Freyther1-143/+10
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-04mgcp_ss7: Change the vty config to operate on the static g_cfg pointerHolger Hans Peter Freyther1-28/+30
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-04mgcp: Allocate the mgcp config earlier..Holger Hans Peter Freyther1-6/+9
2010-08-04mgcp_ss7: Add the telnet interface to the mgcp_ss7.Holger Hans Peter Freyther1-0/+6
2010-08-04mgcp_ss7: Add logging commands..Holger Hans Peter Freyther1-0/+2
2010-08-04mgcp_ss7: Remove unnecessary code...Holger Hans Peter Freyther1-2/+0
2010-08-04Use libosmocore instead of the old temporary laF0rge1 lib..Holger Hans Peter Freyther1-20/+32
2010-07-31u_int32_t -> uint32_tHolger Hans Peter Freyther1-3/+3