aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_protocol.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-04prefix sub-directories containing libraries with 'lib'Harald Welte1-1102/+0
... and make sure tests work again after restructuring
2011-02-28mgcp: Only allow transcoding on the virtual trunkHolger Hans Peter Freyther1-1/+1
2011-02-28mgcp: Allocate the endpoints for the E1 trunks as well.Holger Hans Peter Freyther1-6/+3
2011-02-28mgcp: Look up the E1 trunks through the trunk configurationHolger Hans Peter Freyther1-4/+15
2011-02-28mgcp: Introduce a trunk config for multiple trunks.Holger Hans Peter Freyther1-0/+33
A trunk will always have 32 endpoints to be used and we allow a sparse allocation of endpoints.
2011-02-28mgcp: Introduce a mgcp_trunk_config enum for endpoint configsHolger Hans Peter Freyther1-32/+45
We want to support real trunks in the MGCP code and we need to have some better book keeping for those. Move the code around.
2011-01-25mgcp: Be able to parse RQNT messages and reply to themHolger Hans Peter Freyther1-0/+25
We do not implement the request for notification at all but we will tell the server that we have received something.
2011-01-07mgcp: Return with NULL if we fail the size check.Holger Hans Peter Freyther1-0/+1
2011-01-07mgcp: We want to count trunks starting from one.Holger Hans Peter Freyther1-3/+3
2011-01-06mgcp: Parse a Digital Trunk endpoint name.Holger Hans Peter Freyther1-5/+43
2011-01-06mgcp: Include a MGCP Response String in the responseHolger Hans Peter Freyther1-30/+34
Switch to a \r\n at the end of the query. Both \n and \r\n are valid according to the spec but this makes us match responses of other equipment.
2011-01-01License change: We are now AGPLv3+ instead of GPLv2+Harald Welte1-6/+5
The reason for this is quite simple: We want to make sure anyone running a customized version of OpenBSC to operate a network will have to release all custom modifiations to the source code.
2010-11-02mgcp: Send data from the network to the transcoder tooHolger Hans Peter Freyther1-2/+2
We now should be able to transcode in both directions.
2010-11-02mgcp: Introduce trans_bts and send BTS packets from this portHolger Hans Peter Freyther1-11/+20
Introduce the trans_bts. Right now only a port is allocated and the packets from the BTS are sent from this socket.
2010-11-02mgcp: Keep the local_port like it was set on allocationHolger Hans Peter Freyther1-3/+4
Do not reset statically allocated local_port. The port might be different to the calculation of endpoint number and base port. This might be the case for the coming remote transcoding.
2010-11-01mgcp: Rename transcoder_end to trans_netHolger Hans Peter Freyther1-7/+7
Packets arriving for trans_net will be send out to the networking. We will introduce a trans_bts in a second.
2010-11-01mgcp: Make transcoding a per Endpoint configurationHolger Hans Peter Freyther1-8/+14
This allows to switch off transcoding on the fly, or only enable it for certain vessels with known problems.
2010-11-01mgcp: Fix the indetion of this code. it should use tabsHolger Hans Peter Freyther1-1/+1
2010-09-24mgcp: Return 0 in case transcoding is disabled.Holger Hans Peter Freyther1-1/+1
In case transcoding is disabled no error has happened, return a zero. This is fixing starting the nat without transcoding.
2010-09-20mgcp: Remove code duplication for filling out the sockaddr_inHolger Hans Peter Freyther1-22/+15
Share the send to transcoder sockaddr sending routines.
2010-09-20nat: Send a transcoder reset on start up.Holger Hans Peter Freyther1-0/+19
The transcoder RESET is using the same extensions to reset all endpoints on a remote site. This makes sure that all allocations can be made in a properly configured network.
2010-09-20mgcp: Make the base port of the transcoder configurableHolger Hans Peter Freyther1-1/+2
The code assumes a static mapping from endpoint to RTP port, be able to configure the start of such a mapping.
2010-09-20mgcp: Prepare the CRCX/MDCX/DLCX messages for the transcoder.Holger Hans Peter Freyther1-0/+102
Send CRCX/MDCX/DLCX to the transcoder, fill out transcoder_end with the interesting data and hope that it is going to work.
2010-09-20mgcp: Forward data from the BTS-in to the transcoderHolger Hans Peter Freyther1-8/+19
Bind a new port for the transcoder, forward data from the BTS to the transcoder, and from the transcoder to the network. Leave BTS-IN where it is, BTS-OUT can now be after the transcoding took place. We send the data from the BTS RTP port. This whole route will be guarded by the transcoder_ip and if it is NULL (current default) it will not go through the transcoder.
2010-09-20mgcp: Be able to parse 'sendonly' for the connection mode.Holger Hans Peter Freyther1-0/+2
2010-09-20mgcp: Switch the default audio codec to AMRHolger Hans Peter Freyther1-2/+2
2010-09-18janitor: Move the * to the variable nameHolger Hans Peter Freyther1-1/+1
2010-08-08mgcp: Use transient errors in more cases...Holger Hans Peter Freyther1-10/+10
2010-08-06mgcp: Reduce the log level to debug for these calls.0.9.4Holger Hans Peter Freyther1-3/+3
2010-08-06mgcp: Remember if the endpoint was allocated...Holger Hans Peter Freyther1-2/+4
Do not use the CI_UNUSED to decide if an endpoint is allocated but introduce a new flag. This way only the CRCX and free_endp play with the allocated field.
2010-08-06mgcp: Add a callback to inform the client that an endpoint got reallocatedHolger Hans Peter Freyther1-0/+2
2010-08-06mgcp: Make the CI uint32_t all the way to avoid mismatchHolger Hans Peter Freyther1-6/+8
2010-08-06mgcp: Move the mgcp_free_endp into the right path for the CRCX failureHolger Hans Peter Freyther1-1/+1
2010-08-06mgcp: Add a call tap feature to forward audio to another forward portHolger Hans Peter Freyther1-0/+2
For debugging it is useful to forward (tee) UDP packets to another system and use gstreamer to inspect the rtp stream. This is untested code and might contain bugs.... and of course only tap your own calls.
2010-08-05mgcp: Patch RTP packets again if that is allowed.0.9.3Holger Hans Peter Freyther1-0/+1
2010-08-05mgcp: Get the for network/for bts flag right.0.9.2Holger Hans Peter Freyther1-2/+2
2010-08-05mgcp: Allow to dynamically allocate ports from a range..Holger Hans Peter Freyther1-7/+57
Allow to switch to a dynamic port allocator and not reuse the ports for a long time... This should help with a crazy network sending two streams at the same time.
2010-08-05mgcp: Prepare to have different port allocation strategies.Holger Hans Peter Freyther1-4/+5
2010-08-05mgcp: Allocate a different port for the networking...Holger Hans Peter Freyther1-0/+3
Use the right source port when sending the message.
2010-08-05mgcp: Rename the base port to bts_base as it will be used for the btsHolger Hans Peter Freyther1-2/+2
2010-08-05mgcp: Move the bfd for rtp/rtcp into the portHolger Hans Peter Freyther1-5/+12
Stop using the memset in the mgcp_rtp_end_reset as we will reset the list pointers and then have a mess..
2010-08-05mgcp: Only use early bind for the BTS socket.Holger Hans Peter Freyther1-10/+2
Simplify the code by onlt allowing one way to allocate a socket.
2010-08-05mgcp: Attempt to separate the RTP/RTCP port for the Network and for the BTSHolger Hans Peter Freyther1-9/+11
We plan to have two different ports for the network and for the BTS to avoid detecting the BTS and to dynamically allocate the port to have old data not go to a new socket.
2010-08-05mgcp: Group the state for bts/net into a struct and have two instancesHolger Hans Peter Freyther1-17/+20
Group the data that each end (network/bts) have into a struct and use this struct throughout the sourcecode.
2010-08-03mgcp: Style issue... add a space.Holger Hans Peter Freyther1-1/+1
2010-08-03mgcp: Move the rtp state into a structHolger Hans Peter Freyther1-2/+2
Use a struct to group the rtp state for the up and the down link of the bts.
2010-08-03mgcp: Allow to change the receive (the loopback part) via the VTYHolger Hans Peter Freyther1-0/+5
2010-08-03mgcp: Implement the "loopback" mode for a connection endpoint.Holger Hans Peter Freyther1-7/+2
2010-07-29mgcp: Attempt to count missing RTP packets with a basic calculationHolger Hans Peter Freyther1-0/+3
This code compares the UDP sequence numbers of two RTP messages and guesses if packets are missing. It is guessing in two ways: 1.) by default the sequence number is 0, so on the first value we ignore the jump... we might ignore a real issue in case of a wrap around which is easily possible as the sequence should be a random number. 2.) the UDP stream might have been reordered on the network and we would see the jump... In any case these two shortcomings are acceptable for the feature that is meant to provide some basic analysis..
2010-04-25[mgcp] Possible memleak fix for the allowed reallocation caseHolger Hans Peter Freyther1-0/+1
When allowing to reallocate an allocated endpoint we will need to free it first. When freeing we will free the call id and other ids that we would have leaked otherwise.