aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
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 Freyther3-0/+29
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 Freyther4-4/+20
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 Freyther4-8/+128
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 Freyther2-0/+28
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 Freyther2-0/+19
2010-09-20nat: Keep the audio name and default payload aroundHolger Hans Peter Freyther1-5/+0
For all forwarded messages this will not be used, but it is of use for the transcoding.
2010-09-20nat: Use the write_queue inside the CFG.Holger Hans Peter Freyther2-39/+39
2010-09-20mgcp: Keep the gw_fd inside the mgcp_configHolger Hans Peter Freyther2-12/+14
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-20nat: NULL check the allocation and print a nice warning.Holger Hans Peter Freyther1-0/+6
2010-09-20mgcp: Remove the hack to remap timeslot one...Holger Hans Peter Freyther1-5/+7
The timeslot one is blocked and should not be used, replace the code with a warning and watch out for it. Tis is most likely due the uncovered in the previous commit due the wrong TLV definition.
2010-09-20nat: Test for a bug inside the TLV definition for GSM 08.08Holger Hans Peter Freyther2-3/+22
The 0x1 inside a CIC IE could indicate a new IE... add test data and test case to verify that the patching works correctly.
2010-09-20nat: Test the endpoint finding a bit better...Holger Hans Peter Freyther1-3/+5
2010-09-18janitor: Move the * to the variable nameHolger Hans Peter Freyther13-17/+17
2010-09-17db: Declare db_sms_inc_deliver_attempts.Holger Hans Peter Freyther1-0/+1
2010-09-17gsm 04.11: increase the delivery attempt counter for an SMS right away in ↵Nico Golde1-1/+1
gsm411_send_sms Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2010-09-16bsc: Fix the clear to release resources first, then set to NULLHolger Hans Peter Freyther1-9/+7
This is fixing a crash reported by Nico. Somehow I staged an unfinished version of this code. The crash should be gone.
2010-09-16gsm_04_11: count SMS delivery attempts for each CP-DATANico Golde1-0/+2
Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2010-09-16bsc_api: Do not free the subscriber conn on clear and clear requestHolger Hans Peter Freyther3-7/+30
Do not free the GSM Subscriber Connection when a channel is failing or if a clear is requested, instead just give up _all_ the channels, reset them to NULL and free the remaining channels.
2010-09-16bsc: Prepare to store the SCCP connection inside the subscriberHolger Hans Peter Freyther1-0/+4
2010-09-16bsc; Register the BSC API with many blanks.Holger Hans Peter Freyther2-1/+55
2010-09-16nat: Fix a crash when a BSC disconnects while a rejected IMSIHolger Hans Peter Freyther1-1/+2
When we reject the IMSI we do not have the msc_con set on the SCCP connection, but we do have a remote_ref. So the nat_send_rlsd will end up with a crash due the msc_con being zero. Fix the crash by only sending a released to the MSC when the connection is not local.
2010-09-16nat; Start to use gcc attribute to say that parameter may not be zeroHolger Hans Peter Freyther1-0/+1
This is an attempt to hint the compiler that it should check the parameters and warn when something is null. Sadly it does not work as expected.
2010-09-16msc: Send a signal when the connections to the MSC droppedHolger Hans Peter Freyther2-10/+23
Send a signal, this way another module can close all connections to the MSC and all local channels.
2010-09-16bsc: Reorder the includes... should be alphabetically nowHolger Hans Peter Freyther1-2/+3
2010-09-16bsc: Make the write method public it will be used by other modulesHolger Hans Peter Freyther2-2/+2
2010-09-16bsc: Add code responsible for connecting, reconnecting to the MSCHolger Hans Peter Freyther4-1/+386
Add the code that is forwarding data, from and to the MSC, also handling ping/pong timers and authentication. Hook it into the osmo_bsc. The code is only compile tested and ported from the on-waves/bsc-master branch.
2010-09-16bsc: Initialize the MSC data parameters to a sane defaultHolger Hans Peter Freyther1-0/+5
2010-09-16bsc: Keep all active subscriber connections in a list.Holger Hans Peter Freyther2-0/+7
2010-09-16bsc: Move the subscriber_con code into the bsc_apiHolger Hans Peter Freyther2-40/+41
2010-09-16chan_alloc: Allocate a subscriber connection as child of the networkHolger Hans Peter Freyther1-1/+1
Due handover we might leave the BTS and if we ever allocate/release a BTS dynamically we have a problem here.
2010-09-16bsc: Add the osmo_bsc_grace from the on-waves/bsc-master branchHolger Hans Peter Freyther4-1/+139
The grace code will decide if a given connection is allowed to be made or if it is going to be rejected. For active connections it is going to send a USSD message.
2010-09-16bsc: Move the gsm_04_80.c code into the libbsc.aHolger Hans Peter Freyther1-2/+2
2010-09-16osmo_rf: Keep the current policy inside the RF struct..Holger Hans Peter Freyther2-6/+10
Keep a back pointer to the rf struct inside the connection, resolve the network through the back pointer. Also assume that the RF is on. In case we start with RF locked, the policy is on but we will not see any MS talking to us.
2010-09-15bsc: Move the rf_ctl into the msc data structHolger Hans Peter Freyther2-3/+6
2010-09-15bsc: Register a new MSC group with data for the MSC connectionHolger Hans Peter Freyther4-1/+158
This group contains everything that is related to the MSC connections.
2010-09-15bsc: Remove the old msc parameter, everything is in the VTY config nowHolger Hans Peter Freyther1-2/+0
2010-09-15bsc: Create struct osmo_msc_data to hold MSC information, handle signalsHolger Hans Peter Freyther5-2/+89
2010-09-15nat: Fix the grammar of the sentence for listing open sccp connectionsopenbsc/0.9.6Holger Hans Peter Freyther1-1/+1
2010-09-15nat: Check if the connection was filtered before the msc connectionHolger Hans Peter Freyther1-4/+4
This way we avoid seeing many warnings that we will not forward data to the MSC. For the con_local connections that is actually the idea, we will not forward them to the MSC.
2010-09-15nat: Remove debug left oversHolger Hans Peter Freyther1-1/+0
2010-09-15nat: Attempt to disconnect a connection when IMSI filtering happensHolger Hans Peter Freyther1-4/+60
Attempt to disconnect the connection and make both sides happy about this. Right now it only handles the LU and should be extended to the CM Service Request.
2010-09-15nat: And the sequence number away, making it work more reliableHolger Hans Peter Freyther1-4/+8
2010-09-15nat: Parse the id response, extract the IMSI, compare itHolger Hans Peter Freyther3-1/+120
Add a test case and also add a basic check that we got some size checks correct. The next step is to act on the result.
2010-09-15nat: Update the test for the new <0,0,1 semantic of the filter functionHolger Hans Peter Freyther1-5/+5
A test case with a TMSI is missing, this would be needed for better coverage of the filter test case.