aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2011-08-25bsc: Do not re-start the grace timer when we are in the grace period0.9.14-onwaves1Holger Hans Peter Freyther1-0/+5
2011-08-25bsc: Simplify the trap sending by using the location state methodHolger Hans Peter Freyther1-17/+2
2011-08-25bsc: Send a TRAP with the locations on a MSC connectionHolger Hans Peter Freyther1-0/+40
Send the current position when the MSC connection is established.
2011-08-25bsc: Introduce an authenticated signal for the MSC connectionHolger Hans Peter Freyther2-0/+5
Send the signal whenever a MSC appears to be authenticated.
2011-08-25bsc: Auto RF Off in case of missing MSC connectionHolger Hans Peter Freyther5-2/+83
For short IP failures we want the RF to stay up and wait for the re-connect but in case the A-link is gone too long it is good to switch off the RF and wait for commands to enable it again.
2011-08-25bsc: Use the BSC RF CTRL to change the RF state of the TRXsHolger Hans Peter Freyther3-11/+16
Use the delayed scheduling feature of the osmo_bsc_rf class to avoid crashing the site controller of the nanoBTS.
2011-08-25bsc: Crash fix for the osmo-nitb/MNCC codeHolger Hans Peter Freyther1-1/+2
It is possible that MNCC sends a MNCC_LCHAN_MODIFY and wants a channel mode that is not possible on the current lchan, in that case a new channel is assigned. We now crash as the osmo-nitb is not having an assignment complete handler, add a NULL check.
2011-08-25bsc: Fix crash that can occur on RF FailureHolger Hans Peter Freyther1-3/+12
When we got a clear request we did not clear the internal association between the gsm_subscriber_connection and the SCCP part. When we got a DTAP message before the CLEAR COMMAND we will end up in a crash as the ->bts pointer of the connection has been cleared. #0 bsc_scan_msc_msg (conn=0xde178, msg=<value optimized out>) at osmo_bsc_filter.c:258 #1 0x000112c8 in bsc_handle_dt1 (conn=0xdebd8, msg=0xd1f58, len=<value optimized out>) at osmo_bsc_bssap.c:507 #2 0x00010208 in msc_outgoing_sccp_data (conn=<value optimized out>, msg=0xdfacc, len=858696) at osmo_bsc_sccp.c:73 #3 0x0003c110 in sccp_system_incoming (msgb=0xd1f58) at sccp.c:1064
2011-08-25audio: Make AMR multirate configurable for the osmo-bscHolger Hans Peter Freyther1-0/+51
Provide VTY options to allow/forbid the usage of a specific multirate option.
2011-08-25audio: Make the BSC handle the new mr_config request of the BSC APIHolger Hans Peter Freyther5-0/+47
Handle the mr_config request and set the AMR multirate config for the given MSC. Initialize the mr_config with the AMR5.9 default we have been using until now.
2011-08-25audio: Move the setting of MultiRateConfig to one placeHolger Hans Peter Freyther1-14/+19
Move it to one place so it is more easy to make changes to that.
2011-08-25audio: From RTP point of view we can use one payload for HR/FR AMRHolger Hans Peter Freyther2-4/+2
Remove the separation of half-rate and full-rate AMR. The used rate can be found inside the AMR payload. The signalling of what kind of traffic channel is used can be done with the GSM 08.08 Chosen Channel IE in the Assignment Complete message. This way I can use a fixed payload type in the MGCP GateWay but have a mixed TCH/F and TCH/H config. E.g. use TCH/F FR3 for some subscribers when connected to MSC A but use AMR5.9 on a TCH/F for MSC B when all TCH/Hs are gone.
2011-08-25audio: Remove the hardcoding of the RTP PayloadHolger Hans Peter Freyther3-6/+0
The MGCP config must be correct and use 99 for RTP AMR.
2011-08-25mgcp: Make CRCX deal better with UDP retransmissionsHolger Hans Peter Freyther1-24/+44
When the CRCX 200 is lost on the way to the CallAgent we will get another CRCX (retransmission) which was answered with a 400. Change the code to extract the CallID, Mode and the optional LocalOptions first. Then check if the endp is allocated with the same call identifier, in that case return the current session information.
2011-08-25mgcp: FreeSWITCH requiresn us to provide the o= and t= paramHolger Hans Peter Freyther1-3/+5
The SDP file for FreeSWITCH should contain o= (Origin) and the t= (Timing) for the session. The data of the Origin should be globally unique but this is not the case yet. We will need to store the (NTP) time of the creation of the endpoint.
2011-08-25bsc: Put the full stop before the \n in the log messageHolger Hans Peter Freyther1-1/+1
2011-08-25bsc: Fix crash when the new route is not availableHolger Hans Peter Freyther1-1/+1
When we are asked to route calls on a local link and the link is not available we would crash when trying to send a packet over a deadline. When we have decided to move a connection it is guranteed that the current SCCP connection will vanish, we either migrate to another MSC or the RSL/subscriber connection will be closed.
2011-08-25bsc: Add new SCCP connections to the tailHolger Hans Peter Freyther1-1/+1
2011-08-25msc: Only kill connections belonging to the given MSCHolger Hans Peter Freyther1-2/+4
When a MSC connection drops, only kill the connections that belong to the given MSC and not all other connections.
2011-08-25bsc: Add VTY code for the local area prefixHolger Hans Peter Freyther1-0/+20
2011-08-25bsc: Add vty code for allowing emergencyHolger Hans Peter Freyther1-0/+14
2011-08-25bsc: Add vty function for the MSC typeHolger Hans Peter Freyther1-0/+20
2011-08-25bsc: Inspect a CC Setup message and attempt to reroute the trafficHolger Hans Peter Freyther2-4/+122
Inspect the CC Setup messages and if the dialed number is matching the regexp of the local MSC the connection will be rerouted. The original MSC will get a GSM0808 CLEAR REQUEST, a new connection with a CC Setup message will be opened.
2011-08-25bsc: Look for CM Service Requests with emergency causeHolger Hans Peter Freyther3-2/+25
Look for emergency calls and send them to a MSC that can handle them properly.
2011-08-25bsc: Introduce a local MSC type and forbid it from being selectedHolger Hans Peter Freyther2-0/+9
2011-08-25bsc: Attempt to respond to paging to the MSC that pagedHolger Hans Peter Freyther1-4/+67
Inspect the message and see if it is a paging response, then try to find the MSC that has paged this subscriber and select this as the target MSC, also move the MSC to the back of the list for 'load balancing'.
2011-08-25bsc: Hand the msc_connection to the UDT handling, pass it to pagingHolger Hans Peter Freyther3-13/+12
Pass the osmo_msc_data to the paging sub system, change the code to pass the osmo_msc_data instead of network + bsc_msc_conn.
2011-08-25bsc: Move the finding of a MSC into the filter codeHolger Hans Peter Freyther3-20/+21
For responding to paging on the right link we will need to figure out if the msg is a paging response.
2011-08-25bsc: Select a MSC in a round-robin fashionHolger Hans Peter Freyther3-10/+35
Select a MSC, add it to the back of the list after we have selected it.
2011-08-25bsc: Allow to configure more than one MSC in the VTYHolger Hans Peter Freyther3-26/+56
2011-08-25bsc: Prepare to have multiple MSC connectionsHolger Hans Peter Freyther7-28/+96
We now have a list of MSCs but in the code we will try to access the MSC with the nr 0.
2011-08-25bsc: Use the right connection for outgoing packetsHolger Hans Peter Freyther2-3/+11
This is needed for simple UDT messages where we do not have a SCCP connection.
2011-08-25bsc: Move more things to use osmo_msc_data* directlyHolger Hans Peter Freyther3-5/+3
2011-08-25bsc: Move the bsc_filter to use the osmo_bsc_sccp_conHolger Hans Peter Freyther2-7/+8
2011-08-25bsc: Move away from ->bsc.msc to use the selected MSCHolger Hans Peter Freyther3-15/+20
For multiple MSCs we should only have one place where the MSC is selected and the rest will extract it from somewhere.
2011-08-25bsc: Stop using net->bsc->msc and get the right msc from somewhere elseHolger Hans Peter Freyther2-4/+7
2011-08-25bsc: Create a osmo_bsc_data and embed osmo_msc_dataHolger Hans Peter Freyther15-92/+112
We want to have multiple MSCs but we also have some data that is only present on a per BSC basis. Right now the MSC data is not allocated with talloc, so we have some change in the talloc contexts.
2011-08-25misc: Move the bsc_parse_reg to libcommom and name it gsm_parse_regHolger Hans Peter Freyther6-33/+43
Move the regexp parsing code from the NAT to libcommon as it will be used by the NAT and BSC code. This also adds the #include <regex.h> include to gsm_data. This header should be split up.
2011-08-25nat: Change the ctrl command pathDaniel Willmann1-13/+12
The commands net.<netid>.bsc.<bscid>.* are now forwarded to the appropriate osmo-bsc. <netid> for now is just 0. <bscid> is not the LAC anymore (since that could be ambiguous), but instead the number as configured in bsc-nat.cfg
2011-08-25libctrl, osmo-bsc: Get rid of net prefixDaniel Willmann3-13/+5
net is now implicit in the root node
2011-08-25bsc: Add a null check and return earlyHolger Hans Peter Freyther1-0/+5
2011-08-25ctrl: Fix leak, check null pointerHolger Hans Peter Freyther1-0/+5
2011-08-25libctrl: Fix a compiler warningDaniel Willmann1-1/+1
2011-08-25osmo-bsc: Whitespace change - fix indentation of struct value_stringDaniel Willmann1-2/+2
2011-08-25osmo-bsc: Include rf stati in the location-state TRAP as wellDaniel Willmann3-0/+95
The first fields are still the location up to the height. The next field is "operational" if any of the trx are operational, otherwise "inoperational" The second to last field contains "locked" if all of the trx are in the admin state, otherwise "unlocked". The last field represents the rf policy currently in effect. It is one of (on|off|grace|unknown). <tstamp>,<valid>,<lat>,<lon>,<height>,<oper>,<admin>,<policy>
2011-08-22osmo-bsc: Prepare to send more than just the location in the TRAPDaniel Willmann1-1/+19
2011-08-22osmo-bsc: Use NM_OPSTATE_* to check for operational attributesDaniel Willmann1-1/+1
2011-08-22ctrl: Use strtol instead of atoi to detect conversion errorsDaniel Willmann1-10/+27
2011-08-22ctrl: Improve error messages in ctrl_cmd_handleDaniel Willmann1-12/+28
2011-08-22ctrl: Change the paths to bts.%i. instead of bts%iDaniel Willmann1-6/+18