aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_mgcp.c
AgeCommit message (Collapse)AuthorFilesLines
2010-01-14[mgcp] In forward mode we need to rediscover the BTS more oftenHolger Hans Peter Freyther1-1/+1
In plain forward mode we don't have DLCX which will clean and reset the configuration. We will need to remember the last GSM BTS port and send data to it.
2010-01-14[mgcp] Handle BTS and NET being on the same hostHolger Hans Peter Freyther1-4/+5
* Do not only check the IP but also the port to figure out where to send the data * Do not memset the endp->remote inside the bind_rtp but from inside the crcx as this will be modified by the MDCX
2010-01-13[mgcp] Warn about unknown messages...Holger Hans Peter Freyther1-1/+3
2010-01-13[mgcp] Allow to forward to a different portHolger Hans Peter Freyther1-7/+23
2010-01-13[mgcp] Rename rtp and rtcp variables to net_rtp and net_rtcpHolger Hans Peter Freyther1-11/+11
Rename the variables to refer to the fact that they are the ports of the remote. So we have: rtp_port as the local address we are binding to net_rtp for the network rtp bsc_rtp for the bsc rtp
2010-01-13[mgcp] Make it possible to not specify a bts ipHolger Hans Peter Freyther1-7/+8
This way the mgcp will allow anyone to be the BTS.. in the future we might need to communicate things properly between BSC and MGCP.
2010-01-08[on-waves] Use a default rtp_base_port, write it out in the configHolger Hans Peter Freyther1-1/+1
Currently "write memory" will not store the rtp_base_port of the network. Fix that by writing it out in write_net. Also set it to 4000 by default in the MGCP and in the BSC.
2010-01-05[bsc_mgcp] Set the right remote rtp and rtcp portHolger Hans Peter Freyther1-0/+2
* It is the same as local endpoint port
2010-01-05[bsc_mgcp] Fix writing of the config file...Holger Hans Peter Freyther1-0/+2
* Add the new forward audio option
2010-01-05[bsc_mgcp] Print a message which mode is configuredHolger Hans Peter Freyther1-0/+4
2010-01-05[bsc_mgcp] Add a new forward only mode to the bsc_mgcpHolger Hans Peter Freyther1-25/+61
With forward IP in the config and early bind on we will simply forward RTP data on the endpoints from BTS to the forward IP address. This is implemented by disabling MGCP functionality when a forward IP address was specified, setting the forward IP in the endp->remote and assigning a ci != CI_UNUSED. Early bind will make sure the sockets are created, the BSC FD's are registered and then the normal dispatch code will do the forwarding.
2009-11-20[bsc] Add a rtp base port to the BSC config tooHolger Hans Peter Freyther1-0/+1
Stop having a global variable... keep it in the gsm network or the mgcp
2009-11-20[mgcp] Make the number of endpoints configurable...Holger Hans Peter Freyther1-1/+13
Allow to configure the number of endpoints at start. Currently this will not be changed at runtime but one needs to save the config and restart the system.
2009-11-20[mgcp] The nanoBTS is not binding a RTCP portHolger Hans Peter Freyther1-4/+2
Do not guess the RTCP port as it might be the RTP port of another connection.
2009-11-20[mgcp] The initialisation is done inside CRCX, remove hereHolger Hans Peter Freyther1-2/+0
2009-11-20[mgcp] Do not forward or find the BTS if the endpoint is unusedHolger Hans Peter Freyther1-0/+8
Forget where the bts and network is located on DLCX and CRCX otherwise we would have forwarded BTS data to the wrong endpoint and would have not tried to discover the BTS again. In the case of early bind we might get data from the BTS before the CRCX and after DLCX... just ignore it then
2009-11-20[mgcp] Add a show command for the mgcp...Holger Hans Peter Freyther1-0/+20
2009-11-20[mgcp] Fix writing the configuration fileHolger Hans Peter Freyther1-0/+4
2009-11-20[mgcp] Add telnet interface for mgcp.Holger Hans Peter Freyther1-3/+5
2009-11-20[mgcp] Add option to route audio back to both endsHolger Hans Peter Freyther1-23/+36
This is a simple echo functionality in the MGCP... it will send the audio back to the network|bts..
2009-11-20[mgcp] Add a simple mgcp gateway used for the BSCHolger Hans Peter Freyther1-0/+1117
The python script is a simple call-agent driving the client. Currently it is sending a AuditEndpoint message and is printing the result. The bsc_mgcp.c is a standalone process that will implement a MGCP Gateway for the MSC. On call handling the Call-Agent will ask the Gateway to "CreateConnection" and then this gateway needs to communicate with OpenBSC. Currently CreateConnection,ModifiyConnection,DeleteConnection and Endpoint auditing is implemented. [mgcp] Send RSIP on start and on first receive of any message Ignore the first request and send a RSIP. We do that because we might tunnel UDP through some other things and have no direct way to connect to the call-agent. Also the transaction is not checked and we ignore the response from the call-agent, actually we print the '200 ' or any other value as unhandled... [mgcp] Print the MGCP command next to the response code This allows to see which commands were sent by the server mgcp: Terminate it with a new line [mgcp] Make number of endpoints static... For now this is fixed to the number of endpoints as of the GSM specification... [mgcp] The endpoint names seem to be base 16... use strtoul to parse Use strtoul to parse the base 16 number from the mgw string. [mgcp] Log the endpoints as hex numbers... [mgcp] Only send the RSIP on the first incoming message.. Remove call_agent option (also remove the number from the getopt call). [mgcp] Start couting at 1 for the mgcp [mgcp] Slight attempt to improve the grammar of the strings [mgcp] Share validation routines between DLCX and MDCX [mgcp] Remove help for dead config options [mgcp] Specify a different IN addr in the SDP records In case of NAT traversal be able to listen on a given interface (like 127.0.0.1) but claim to receive data at the beginning of the tunnel. [mgcp] Fix the static copy of the SDP file WIP verify out factoring broken.. [mgcp] Introduce VTY to the mgcp for config file parsing... Parse the MGCP config file via the VTY framework. [mgcp] Handle SDP parameters through VTY.. Currently the payload type, name and rate can be specified in the config file. [mgcp] Add an option to bind all rtp ports early This can be useful for testing and in deployment to make sure no runtime resource limit can be hit. [mgcp] Add some API doc comment [mgcp] Convert the packets of the example server to ascii This will allow to easily patch the call id... to run the server in a loop and make it work with the mediagateway [mgcp] Assign CI_UNUSED... to be more obvious... [mgcp] Use DEBUG and not DEBUGPC and specially not printf Improve the logging a bit in the mgcp [mgcp] Change the fake server to change the call id This assume the call-agent will just increment the id as well.... this is true for our implementation [mgcp] Generate the transaction id dynamically.. This way wireshark will be more happy about it... [mgcp] Recognize responses from the network.. This is just recognizing the response code and then is doing nothing with it. Also change the script to generate response messages... [mgcp] Improve debug messages for CRCX/MDCX.. Log on which ports the media gateway is listening and where the other (server) gateway is located