aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
AgeCommit message (Collapse)AuthorFilesLines
2010-02-22[mgcp] Make the creation of the mgcp message public.Holger Hans Peter Freyther1-0/+1
2010-02-22[mgcp] Move away from global variables and split out VTY codeHolger Hans Peter Freyther3-11/+109
In separation of using the MGCP parsing in another context, refactor the code to operate on a struct mgcp_config, split out the vty code from the mgcp_protocol.c, and move the callbacks into the mgcp code. There should be no functional changes.
2010-02-03[mgcp] Refer to the right Company in the Copyright/Copyleft lineHolger Hans Peter Freyther1-1/+1
Use On-Waves instead of the name I made up from the domain name.
2010-02-03[mgcp] Make the mgcp_protocol generate a struct msgb*Holger Hans Peter Freyther1-2/+10
Do not directly send data from inside the mgcp_protocol.c implementation. Instead allocate and return a struct msgb*. The caller can then either wrap that into the IPA protcol or directly send it over the UDP socket.
2010-02-03[mgcp] Prepare the in process MGCP handling by adding callbacksHolger Hans Peter Freyther1-0/+8
* Call a callback when the endpoint was created, modified or deleted. This can be used by the BSC MUX to send a MGCP packet over TCP to the right the BSC to allocate the endpoint there with the right data, or it can be used in the BSC to send the right commands to the BTS.
2010-02-03[mgcp] Prepare to do MGCP over TCP and inside the bsc_msc_ip processHolger Hans Peter Freyther1-2/+8
* Separate main process and protocol handling into two parts. * Change the protocol handling to work with UDP and TCP connection * This will allow to speak MGCP over TCP between the BSC MUX and the real BSC.
2010-01-28[gsm48] Allow to send the assignment command on a different lchanHolger Hans Peter Freyther1-1/+1
Change the signature to take the lchan were the message is supposed to be sent and the lchan which is supposed to be assigned.
2010-01-10[OML] parse attributes depending on BTS typeHarald Welte2-2/+14
Some NM attributes are defined differently depending on the BTS type. Having one big nm_att_tlvdef[] table for all BTS types is no longer sufficient. This patch * introduces 'struct gsm_bts_model' to describe a BTS model * adds definitions of gsm_bts_model for BS-11 and nanoBTS * changes the abis_nm_tlv_parse() function: include a bts pointer
2010-01-10TLV: add function to patch a tlv definition tableHarald Welte1-0/+3
2010-01-07introduce new gsm_bts_trx_by_nr() functionHarald Welte1-0/+1
2010-01-07bis_nm_ipaccess_set_nvattr() executes on a TRX, not a BTSHarald Welte1-1/+1
2010-01-07[abis_nm] Add abis_nm_bs11_set_pll function to change the set/work valueDaniel Willmann1-0/+1
Whether this function changes the set or the work value depends on your type of login. In FACTORY login it changes the set value, in FIELD login it changes the work value (which is what is used by the BS11 to tune the frequency).
2010-01-07[abis_nm] Add abis_nm_bs11_infield_logon to logon as user fieldDaniel Willmann1-0/+1
As this user you are able to set the PLL work value which is especially useful if your BS11 got detuned by an inaccurate oscillator in your E1 card.
2010-01-07[abis_nm] Add generic abis_nm_bs11_logon functionDaniel Willmann1-0/+1
Factoring out common logon functionality will allow us to logon as different user. abis_nm_bs11_factory_logon now uses this function.
2010-01-07[signal] Differentiate paging success from expiration in SS_PAGINGSylvain Munaut1-1/+2
This is useful information to know and actually fixes a segfault in rllp.c where lchan is accessed even tough it could be NULL in case of failure. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_data: Move auth related structure earlierSylvain Munaut1-20/+22
This is gonna be needed by the next commit ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03encryption: Import a GPL comp128 implementationSylvain Munaut1-0/+22
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_04_08: Specify key_seq when calling gsm48_tx_mm_auth_reqSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add methods to set auth{info,tuple} for a subscriberSylvain Munaut1-0/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add declaration for get_auth{info,tuple_for_subscriberSylvain Munaut1-0/+6
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03gsm_data: Fix sres to be 4 bytesSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add issued/use_count/key_seq fields to AuthTuplesSylvain Munaut1-0/+2
Theses will be useful to know if we can reuse the tuples or if we should renew. The 'issued' is currently purely informative. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03abis_nm: Introduce & use a nm_is_running function to test gsm_nm_stateSylvain Munaut1-0/+1
This returns true if the gsm_nm_state can be considered 'running'. Note that we also accept availability==0xff (which is a code for no value) because according to 12.21 it is perfectly valid. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03silent_call: Add option to choose channel typeSylvain Munaut1-1/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-01introduce and implement silent_call_reroute() and silent_call_rx()Harald Welte1-0/+2
Thise two functions are interfacing with the 04.08 layer 3 to determine if a particular message should be handled inside the OpenBSC layer 3, or if it should be handled in the silent call handler.
2010-01-01keep 'silent call' state in struct lchanHarald Welte1-0/+2
This enables us to reliably detect if a lchan is part of a silent call or not.
2009-12-31[misc] Utilize rf_locking by setting the nm_state.administrativeHolger Hans Peter Freyther1-3/+0
* On start the vty code will call the abis_nm method and this will set the administrative state to unlock/lock * During startup the BTS will report its state as well and would possible overwrite the set administrative. We are only going to update the administrative if it was 0 before. This appears to work on all of my tests. In case this will not be the case for others we will have to split the administrative into two sets one for the BTS and one for the BSC.
2009-12-30[abis] Dispatch a IPAC restart ACK/NACK signalHolger Hans Peter Freyther2-0/+3
* Add the NACK version to the list * Dispatch the signal when we receive the message * Handle it in ipaccess-config by exiting the application
2009-12-30[ipaccess] Restart only after setting the OML IP, software loadHolger Hans Peter Freyther1-0/+5
* Do not issue the restart right aways if we have OML IP or software load in the queue (hint, we need a real queue of operations to carry out... with one big state machine) * Change the signal_data of ipacc ACK/NACK to contain the msg type and the bts pointer. * Issue a restart for software load and OML and use the BTS pointer we got out of the new signal data.
2009-12-30[ipaccess] Change the name to be slightly better..Holger Hans Peter Freyther1-1/+1
2009-12-30[ipaccess] Expose the sub header list as well..Holger Hans Peter Freyther1-1/+24
2009-12-30[ipaccess] Turn firmware parsing into a routine so it can be usedHolger Hans Peter Freyther1-0/+28
* text3 seems to be a version as the text content starts with a 'v' * move the sdp_firmware into the ipaccess.h and declare the function. The headers are returned through a list.
2009-12-30[abis] Add ACK signal and send it on SET NVATTR ACKHolger Hans Peter Freyther1-0/+1
* Add the signal definition to signal.h * Dispatch the signal from abis_nm.c * Handle it in ipaccess-config.c and say we are done with work
2009-12-29rsl: add new 'gsm_trx_name()' function and use itHarald Welte (local)1-0/+1
2009-12-29export the 'trx_is_usable() function and use it from pagingHarald Welte (local)1-0/+2
this ensures we don't send paging requests to currently inactive transceivers.
2009-12-29Introduce gsm_lchans_name() for human readable lchan state nameHarald Welte1-0/+1
Also, use this new function to dump lchan state on VTY and to improve readability of RSL log messages.
2009-12-29RSL: Introduce LCHAN_S_REL_REQ stateHarald Welte1-0/+1
This state will help us to differentiate between channels where we have requested the release, and channels that are actually released.
2009-12-28vty: replace'logging level' numeric value with human readable stringHarald Welte (local)1-0/+2
2009-12-28set the TRX nominal power by default and/or VTYHarald Welte (local)1-0/+1
2009-12-28Introduce and use gsm_lchan_name() in addition to gsm_ts_name()Harald Welte (local)1-0/+1
In many cases we actually want a name / unique ID for the lchan, not just for the on-air timeslot... especially in SDCCH/8 case, where 8 SDCCHs share one timeslot...
2009-12-28Introduce new ACT_REQ state to prevent race condition during channel allocationHarald Welte (local)1-0/+1
When we allocate a channel, we send the RSL CHAN ACT REQ and wait until we get a CHAN ACT ACK. Only the ACK will change the state, so there is a race where we allocate that same channel to a different channel request before we get the ACT ACK. Introducing a new ACT_REQ state resolves this issue.
2009-12-28rename gsm_lchan_name() to gsm_lchant_name()Harald Welte (local)1-1/+1
2009-12-26add 'get_string_value()' as inverse function of 'get_value_string()'Harald Welte (local)1-0/+1
2009-12-26[meas_rep] Add raw neighbor index into per-cell parsed meas repHarald Welte1-0/+1
2009-12-24add (and use) new subscr_name() function to get name or IMSIHarald Welte1-0/+2
2009-12-24[debug] Introduce DREF debug category for reference countingHarald Welte2-2/+3
2009-12-24Converrt the database later to use DEBUGP/LOGP instead of stderrHarald Welte1-0/+1
2009-12-24vty: sub-divide talloc contexts and include them in talloc reportHarald Welte2-0/+4
The VTY code makes so many allocations that a full report is simply too long to provide any useful information. So we sub-divide it in multiple contexts, and report only one level deep at SIGURS1. We also introduce SIGUSR2 for the full detailed VTY report.
2009-12-24db: Fix compile warning, declare db_sms_get_unsent_by_subscrSylvain Munaut1-0/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24use enum for operational stateHarald Welte1-0/+6