aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2010-09-20nat: Send a transcoder reset on start up.Holger Hans Peter Freyther1-0/+1
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-2/+5
The code assumes a static mapping from endpoint to RTP port, be able to configure the start of such a mapping.
2010-09-20mgcp: Forward data from the BTS-in to the transcoderHolger Hans Peter Freyther1-0/+2
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/+1
2010-09-20mgcp: Add a transcoder-mgw command to store the addressHolger Hans Peter Freyther1-0/+2
2010-09-20nat: Use the write_queue inside the CFG.Holger Hans Peter Freyther1-1/+0
2010-09-20mgcp: Keep the gw_fd inside the mgcp_configHolger Hans Peter Freyther1-0/+3
Move the bfd from a static var into the mgcp_config.
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-17db: Declare db_sms_inc_deliver_attempts.Holger Hans Peter Freyther1-0/+1
2010-09-16bsc: Prepare to store the SCCP connection inside the subscriberHolger Hans Peter Freyther1-0/+4
2010-09-16msc: Send a signal when the connections to the MSC droppedHolger Hans Peter Freyther1-0/+14
Send a signal, this way another module can close all connections to the MSC and all local channels.
2010-09-16bsc: Make the write method public it will be used by other modulesHolger Hans Peter Freyther1-0/+1
2010-09-16bsc: Add code responsible for connecting, reconnecting to the MSCHolger Hans Peter Freyther1-0/+9
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: Keep all active subscriber connections in a list.Holger Hans Peter Freyther1-0/+2
2010-09-16bsc: Add the osmo_bsc_grace from the on-waves/bsc-master branchHolger Hans Peter Freyther2-1/+30
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-16osmo_rf: Keep the current policy inside the RF struct..Holger Hans Peter Freyther1-1/+3
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 Freyther1-0/+3
2010-09-15bsc: Register a new MSC group with data for the MSC connectionHolger Hans Peter Freyther2-0/+11
This group contains everything that is related to the MSC connections.
2010-09-15bsc: Create struct osmo_msc_data to hold MSC information, handle signalsHolger Hans Peter Freyther3-2/+39
2010-09-15nat: Start inspecting every message coming from the BSC for the IMSIHolger Hans Peter Freyther1-0/+2
Return early in case the IMSI was already checked, if not we need to look at the connection and check if the message could contain a imsi we want/need to filter.
2010-09-15nat: Remember if we have check the imsi.Holger Hans Peter Freyther1-0/+1
Return -1 if the IMSI should be filtered, 0 if the IMSI could not be checked and 1 if the IMSI was checked and allowed to pass. In the future this will be used to inspect every message coming by.
2010-09-06[paging] Only page if we have some free channels right nowHolger Hans Peter Freyther1-0/+3
Only page if we have a load that is acceptable for paging. This option is off by default, and can be enabled per bts. The idea is that when we have no resources right now we will not page as it will only create more RACHs and increase the load. By default we are keeping the old behavior to always page and only by changing a setting one is using the new behavior.
2010-09-06[paging] When we ran down to 0 available paging slots start a credit timerHolger Hans Peter Freyther1-0/+1
It might be that we run down to zero available slots but the BTS might not send us a load indication. This can happen if we think we send paging requests and the BTS disagrees and considers them as errors and does not count the paging message. When we drop to zero we will start a credit timer to give us extra credit after six seconds, if we get a CCCH load indication before we will stop the timer.
2010-09-06chan: Add configuration to handle paging any with TCHHolger Hans Peter Freyther1-0/+3
It is possible that the MSC is not sending the channel type it needs for the operations it wants to do. Add a configuration option to assign a TCH in case of paging any requests. It can be a good idea to leave SDCCHs free for location updating requests and use the TCH for SMS-MT and CC-MT.
2010-09-06chan: Store the to be assigned channel type in the GSM Network.Holger Hans Peter Freyther2-2/+5
Store the mapping from request to channel type in the GSM Network struct as there is some policy involved with handling the request. E.g. in a half rate network we don't want emergy calls to be getting a TCH/F, or we want to have a different policy for early/late assignment of phone calls. Update the table when creating the network and when the neci is changed.
2010-09-06bsc_init: Allow DTXu and enable DTXd on RSL (experimental)Holger Hans Peter Freyther1-0/+4
Allow the MS to use uplink discontinous transmission by setting the right bit in the SystemInformation and set DTXd/DTXu on the RSL channel commands. This is configurable via dtx-used (0|1) on the network level and still considered as experimental.
2010-09-06[alloc] Assign a TCH for LU when all SDCCHs are occupied.Holger Hans Peter Freyther1-1/+1
When the cell becomes visible we will be bombed with location updating requests and to reduce the load on the network we should assign as many channels for it as possible. During load peek it is even more important than to have a spare voice channel and in general the LU procedure is pretty fast.
2010-09-01nat: We have 1 to 31 available to the BSC.Holger Hans Peter Freyther1-1/+1
2010-08-30nat: Replace the MGCP Endpoint if that is requiredHolger Hans Peter Freyther1-1/+1
Add code to replace the Endpoint number for the mgcp.
2010-08-29nat: Attempt to assign the BSC Timeslot based on a free listHolger Hans Peter Freyther1-1/+5
Do attempt to not reassign an endpoint immediately but go to the next free one.
2010-08-29nat: Remove the CRCX value from the natHolger Hans Peter Freyther1-1/+0
Assume that if the MSC has assigned a timeslot/multiplex it will also be used for the MGCP. So we just assume that it was allocated on the BSC as well... in the worse case we will send a DLCX downstream but it should be fine.
2010-08-29nat: Make the code work in terms of endpoints instead of timeslot/multiplexHolger Hans Peter Freyther1-3/+6
We are going to have more than one trunk, so all code hardcoding the multiplex to zero must go. Avoid this kind of problem by saving the MGCP endpoint number and comparing that.
2010-08-29mgcp: Add method to go back from endpoint to multiplex/timeslotHolger Hans Peter Freyther1-0/+9
2010-08-29mgcp: Speculative mgcp fix...Holger Hans Peter Freyther1-1/+1
We really have 32 channels per multiplex... so use the right number... or at least it seems we do have 32.
2010-08-26vty: Provide a is_config_node for the VTY and use it for the bscHolger Hans Peter Freyther1-0/+2
Right now only bsc_hack and osmo_bsc need to have a custom config handling as they use the subscr/oml nodes.
2010-08-06mgcp: Remember if the endpoint was allocated...Holger Hans Peter Freyther1-0/+1
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-06nat: Keep the state (CRCX,MDCX,DLCX) of the operation..Holger Hans Peter Freyther1-0/+2
This will allow to have additional debug information and to use the state inside the forwarding code.
2010-08-06mgcp: Make the CI uint32_t all the way to avoid mismatchHolger Hans Peter Freyther3-3/+3
2010-08-06mgcp: Add a call tap feature to forward audio to another forward portHolger Hans Peter Freyther1-0/+18
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.openbsc/0.9.3Holger Hans Peter Freyther1-0/+3
2010-08-05mgcp: Allow to dynamically allocate ports from a range..Holger Hans Peter Freyther1-0/+2
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-0/+5
2010-08-05mgcp: Prepare to have different port allocation strategies.Holger Hans Peter Freyther1-2/+16
2010-08-05mgcp: Allocate a different port for the networking...Holger Hans Peter Freyther2-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-1/+1
2010-08-05mgcp: Move the bfd for rtp/rtcp into the portHolger Hans Peter Freyther1-8/+6
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: Make the function internal, only used by the init/config codeHolger Hans Peter Freyther2-1/+1
2010-08-05mgcp: Rename the bind method to show it is only binding for the bts portHolger Hans Peter Freyther1-1/+1
2010-08-05mgcp: Only use early bind for the BTS socket.Holger Hans Peter Freyther1-1/+0
Simplify the code by onlt allowing one way to allocate a socket.