# BSC - Base Station Controller

```
sudo vi  /etc/osmocom/osmo-bsc.cfg
```

#### Log Configuration

```
log stderr
 logging color 1
 logging print category-hex 0
 logging print category 1
 logging timestamp 0
 logging print file basename last
 logging print level 1
```

#### E1 Configuration

```
e1_input
 e1_line 0 driver ipa
```

#### Network Configuration

```
network
 network country code 001
 mobile network code 10
 encryption a5 0
 neci 1
 paging any use tch 0
 handover 0
 handover algorithm 1
 handover1 window rxlev averaging 10
 handover1 window rxqual averaging 1
 handover1 window rxlev neighbor averaging 10
 handover1 power budget interval 6
 handover1 power budget hysteresis 3
 handover1 maximum distance 9999
 ! T3212 is in units of 6min, so below we set 5 * 6 = 30min
 timer net T3212 5
```

#### Media Gateway Configuration

```
 mgw 0
  remote-ip 127.0.0.1
  remote-port 2427
  local-port 2727
```

#### BTS Configuration

```
 bts 0
  type osmo-bts
  band GSM900
  cell_identity 777
  location_area_code 0x0001
  base_station_id_code 7
  ms max power 10
  cell reselection hysteresis 4
  rxlev access min 0
  radio-link-timeout 32
  channel allocator mode set-all ascending
  rach tx integer 9
  rach max transmission 7
  channel-description attach 1
  channel-description bs-pa-mfrms 5
  channel-description bs-ag-blks-res 1
  early-classmark-sending forbidden
  ipa unit-id 6969 0
  oml ipa stream-id 255 line 0
  codec-support fr
  gprs mode none
  trx 0
   rf_locked 0
   arfcn 21
   nominal power 23
   ! to use full TRX power, set max_power_red 0
   max_power_red 20
   rsl e1 tei 0
   timeslot 0
    phys_chan_config CCCH+SDCCH4
    hopping enabled 0
   timeslot 1
    phys_chan_config TCH/F
    hopping enabled 0
   timeslot 2
    phys_chan_config TCH/F
    hopping enabled 0
   timeslot 3
    phys_chan_config TCH/F
    hopping enabled 0
   timeslot 4
    phys_chan_config TCH/F
    hopping enabled 0
   timeslot 5
    phys_chan_config TCH/F
    hopping enabled 0
   timeslot 6
    phys_chan_config TCH/F
    hopping enabled 0
   timeslot 7
    phys_chan_config TCH/F
    hopping enabled 0
```

#### MSC Configuration

```
msc 0
 ! Do not allow emergency calls unless you can route
 ! them to the local emergency services
 allow-emergency deny
```

#### BSC Configuration

```
bsc
 mid-call-timeout 0
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gsm-hacking.telco-sec.com/2g-in-a-b0x/bsc-base-station-controller.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
