aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp
AgeCommit message (Collapse)AuthorFilesLines
2010-11-02mgcp: Send data from the network to the transcoder tooHolger Hans Peter Freyther2-16/+12
We now should be able to transcode in both directions.
2010-11-02mgcp: Use the calculated remote port from the mgcp_rtp_endHolger Hans Peter Freyther1-4/+2
2010-11-02mgcp: Make the transcoding forwarding work for BTS/NETHolger Hans Peter Freyther1-19/+33
Share the implementation for the transcoded packets and forward them to the network and the bts.
2010-11-02mgcp: Refactor the network binding routinesHolger Hans Peter Freyther1-47/+26
Create another wrapper function that takes most of the arguments from the caller.
2010-11-02mgcp: Introduce trans_bts and send BTS packets from this portHolger Hans Peter Freyther3-17/+52
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 Freyther3-22/+22
Packets arriving for trans_net will be send out to the networking. We will introduce a trans_bts in a second.
2010-11-01mgcp: Allow to disable the transcoder in a running system.Holger Hans Peter Freyther1-0/+15
2010-11-01mgcp: Make transcoding a per Endpoint configurationHolger Hans Peter Freyther2-9/+15
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-10-12misc: Replace the idiom for replacing a string with a function callHolger Hans Peter Freyther1-18/+6
Remove a lot of code in favor of a new function that is freeing the old string and copying the new one. I should have gotten the context and the strings right.
2010-10-12misc: Attempt to determine byte order in a cross-platform wayHolger Hans Peter Freyther1-1/+9
OSX does not provide an endian.h, use the other header files that should define/include what we need. Also check that the byteorder define is available.
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: Count the packets that arrive on the transcoderHolger Hans Peter Freyther2-1/+3
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 Freyther3-2/+15
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 Freyther3-8/+126
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: Add ports for the transcoder as wellHolger Hans Peter Freyther1-0/+27
2010-09-20mgcp: Share the range parsing code for net/btsHolger Hans Peter Freyther1-14/+20
2010-09-20mgcp: Add a transcoder-mgw command to store the addressHolger Hans Peter Freyther1-0/+17
2010-09-20mgcp: Keep the gw_fd inside the mgcp_configHolger Hans Peter Freyther1-12/+11
Move the bfd from a static var into the mgcp_config.
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 Freyther2-3/+3
2010-09-11vty: Use \r\n in the copyright messagesHolger Hans Peter Freyther1-6/+6
We should use VTY_NEWLINE but our strings are static, always use \r\n as unix terminals can handle that as well.
2010-09-04vty: Add the config node code to everyone.Holger Hans Peter Freyther1-0/+1
2010-08-25Introduce '-D' commandline option to daemonize processesHarald Welte1-1/+15
This uses the osmo_daemonize() function of libosmocore >= 0.1.18, and is now implemented for bac_nat, osmo-bsc, bsc_hack, osmo-gbproxy and bsc_mgcp. This means only osmo-sgsn is missing, which currently has no option parsing at all.
2010-08-08mgcp: Add a vty command to free a given endpoint.Holger Hans Peter Freyther1-0/+19
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 Freyther2-3/+5
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: Fix discovering the RTCP port with the more strict check.Holger Hans Peter Freyther1-13/+27
If we have found the BTS and we receive data on the RTCP port from the IP of the BTS we will set our RTCP port and forward it to the network and hope it will be useful.
2010-08-06mgcp: Determine the proto properly...Holger Hans Peter Freyther1-1/+1
2010-08-06mgcp: Add instrumentation code to find a possible port leak/bsc-fd corruptionHolger Hans Peter Freyther1-5/+12
2010-08-06mgcp: Move the mgcp_free_endp into the right path for the CRCX failureHolger Hans Peter Freyther1-1/+1
2010-08-06mgcp: Fix a filedescriptor leak in case the bind is failing.Holger Hans Peter Freyther1-0/+2
2010-08-06mgcp: Enable the tap after configuring it...Holger Hans Peter Freyther1-0/+1
2010-08-06mgcp: Add a call tap feature to forward audio to another forward portHolger Hans Peter Freyther3-0/+62
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 Freyther3-1/+3
2010-08-05mgcp: Get the for network/for bts flag right.0.9.2Holger Hans Peter Freyther1-2/+2
2010-08-05mgcp: Be more strict on the source addr/source port of the btsHolger Hans Peter Freyther1-0/+15
Once we have discovered the bts we will not accept data from anything else. The call will drop if the BTS is changing the ip address of the nat anyway.
2010-08-05mgcp: Only discover the bts once, the extra check got lostHolger Hans Peter Freyther1-3/+3
2010-08-05mgcp: Allow to dynamically allocate ports from a range..Holger Hans Peter Freyther3-7/+81
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: Allow to have a different port allocation modeHolger Hans Peter Freyther1-10/+50
2010-08-05mgcp: Prepare to have different port allocation strategies.Holger Hans Peter Freyther2-10/+18
2010-08-05mgcp: Fix the signature of the change_cb to not carry the port.Holger Hans Peter Freyther1-1/+1