aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_08_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-06Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-50/+5
* Move to the new log code and update binaries * Catch up with lchan changes from master Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/src/Makefile.am openbsc/src/bsc_rll.c openbsc/src/chan_alloc.c openbsc/src/debug.c openbsc/src/gsm_04_08.c openbsc/src/gsm_04_11.c openbsc/src/gsm_subscriber_base.c openbsc/src/handover_logic.c openbsc/src/silent_call.c openbsc/src/transaction.c openbsc/src/vty_interface.c openbsc/src/vty_interface_cmds.c
2010-03-28remove gsm48_mi_to_string() as it is now in libosmocore 0.1.3Harald Welte1-45/+0
2010-03-26Merge branch 'on-waves/sccp' into on-waves/bsc-masterHolger Hans Peter Freyther1-1/+1
2010-03-25lchan: Change transaction to work on the GSM Subscriber ConnectionHolger Hans Peter Freyther1-1/+1
Change the MSC transaction code to operate on a GSM Subscriber Connection instead of the lchan. This will help us to separate the two commands properly.
2010-03-25lchan: Create a structure for MSC data of the lchanHolger Hans Peter Freyther1-4/+4
Prepare to split the BSC and the MSC part by putting the MSC data for a connection into a "gsm_subscriber_connection" struct and renaming the macros.
2010-03-25channel requests: Add configuration to handle paging any with TCHHolger Hans Peter Freyther1-0/+10
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.
2010-03-25convert openbsc to use libosmocore-0.1.1 APIHarald Welte1-1/+1
the 0.1.1 API is cleaned up and removes all exported global static arrays (like rlm_cause_strs). There are now proper accessor functions.
2010-03-25channel request: Store the to be assigned channel type in the GSM NetworkHolger Hans Peter Freyther1-4/+27
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-03-04move some gsm48 utility functions to libosmocoreHarald Welte1-158/+2
* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi() * gsm48_cc_msg_names[]
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-1/+1
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2010-01-28[gsm48] Use optional Chan Mode 1 for the assignment commandHolger Hans Peter Freyther1-0/+2
Specify how we intend to use the assigned channel. This is needed to make CC with early assignment work properly.
2010-01-28[gsm48] Allow to send the assignment command on a different lchanHolger Hans Peter Freyther1-2/+2
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-07[signal] Differentiate paging success from expiration in SS_PAGINGSylvain Munaut1-1/+1
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>
2009-12-26[meas rep] fix parsing of BSIC in third reported neighbor cellHarald Welte (local)1-1/+1
2009-12-26fix off-by-one error when mapping from meas rep to neighbor cellHarald Welte1-6/+6
2009-12-26[meas_rep] Add raw neighbor index into per-cell parsed meas repHarald Welte1-9/+13
2009-12-26[meas rep] cosmetic cleanupHarald Welte1-19/+25
2009-12-26[meas rep] Correctly parse neighbor cell index of first reported neighbor cellHarald Welte1-1/+1
2009-12-2404_08: Differentiate between DEBUG and ERROR messagesHarald Welte1-6/+8
also, don't use stderr directly anymore
2009-12-22[gsm48] Move gsm48_parse_meas_rep to gsm_04_08_utilsHolger Hans Peter Freyther1-0/+69
Move the function over to the _utils side as handover measurement is compiled into libbsc and we don't want to end up with linking errors.
2009-12-22keep some internal statistics inside OpenBSCHarald Welte1-0/+2
the statistics will give us some idea about the network load and performance.
2009-12-17make handover reference a function call argumentHarald Welte1-4/+5
2009-12-12If we establish a TCH/H voice call, the reason is CALL, not OTHERHarald Welte1-1/+1
2009-11-29[handover] Implement 04.08 HANDOVER COMMANDHarald Welte1-6/+45
This is needed by a yet-to-be-implemented handover algorithm, after it has allocated a new lchan for the MS. Also missing: handling the actual HANDOVER COMPLETE / FAIL messages in response.
2009-11-22[chan] Alloc SDCCH for certain reserved typesHolger Hans Peter Freyther1-0/+16
Follow notes: 2.) Allocate a SDCCH for type "LMU" 2a.)Allocate a SDCCH for the three reserved types 2b.)Pick LCHAN type none to "ignore" the request
2009-11-19[lchan] RSL and RR need the multirate config, place it in the lchanHolger Hans Peter Freyther1-12/+9
Both GSM 04.08 RR and GSM 08.58 RSL need the multirate config in the channel modify. Place the config in the lchan, change the gsm48 methods to not take the argument, change the RSL implementation to make use of it with the right IE. The other code should use the t(l)v_put routines as well but were left untouched for now.
2009-11-19[gsm48] Send the IPA CRCX after the chan modify ackHolger Hans Peter Freyther1-6/+8
Change the CRCX after the channel has been modified.
2009-11-19[ipa] Change names of RTP methods to follow MGCP namingHolger Hans Peter Freyther1-1/+1
IPA is naming these functions CRCX, MDCX, DLCX to follow the naming of the MediaGatewayControlProtocol. Change the code to go from BIND to CRCX (create connection) and from CONNECT to MDCX (modify connection). Connect indicates that it is only possible to call it once while it is possible to call it more than once to modify the audio parmaters and such. So the IPA terminology is making a bit more sense here (now that we know it).
2009-11-17[gsm48] When picking AMR we need to supply the multirate configHolger Hans Peter Freyther1-4/+31
On channel mode modify and assignment command when using the a multirate code the multirate configuration must be present in the packet. Add a parameter and add a warning when using it in a broken way.
2009-11-17[neci] Separate handling of chan requested for paging anyHolger Hans Peter Freyther1-4/+6
Allow to handle the channel requested differently based on the NECI value for the "paging any" case. This will allow to open a TCH/H, TCH/F depending on the neci mode.
2009-11-17[neci] Use the correct length when going over the arrayHolger Hans Peter Freyther1-6/+25
Use the correct length when going over the array instead of using the neci0 values. Remove the fixme from the method as well as the issue has been addressed by adding a parameter to the method.
2009-11-17[si] Make it possible to set the NECI value...Holger Hans Peter Freyther1-4/+4
Allow to configure the NECI value... and change code that is relying on the NECI value.
2009-10-27[gsm48] Handle the RR CHAN MODIFY ACK in the gsm04_08_utilsHolger Hans Peter Freyther1-0/+36
Move the handling code to the gsm_04_08_utils.c and add a note that the method value needs to be checked.
2009-10-27[gsm48] Move RR CHANNEL MODIFY to gsm_04_08_utils.cHolger Hans Peter Freyther1-0/+45
Be able to send RR CHANNEL MODIFY from the BSC/MSC code as well. Move the method that knows about the IPAccess RTP and issues the "bind" to the utils tool
2009-10-27[gsm48] Add generation of ASSIGNMENT COMMAND to the 0408 utilsHolger Hans Peter Freyther1-0/+32
Add code to generate an assignment command for a given lchan. It is expected that the lchan is modified already and the mode will be picked up from their. Currently only the mandantory items are supported.
2009-10-06[gsm0408] Add parameter to gsm48_send_rr_ciph_mode for controling the responseHolger Hans Peter Freyther1-2/+2
This parameter controls if the response should include the IMEISV or not. This will be set by the MSC and this is why this parameter was added.
2009-10-06[gsm0408] Move encryption message creation to gsm_04_08_utils.cHolger Hans Peter Freyther1-0/+25
Be able to use the cipher mode command message from the MSC code.
2009-09-28[gsm0408] Move paging handling to gsm_04_08_utils.cHolger Hans Peter Freyther1-0/+44
Add one method to extract the MI which will allow to load the gsm_subscriber depending on the MSC/BSC setup and then use gsm48_handle_paging_resp to finish the paging response handling.
2009-09-28[gsm0408] Move send_siemens_mrpci to gsm_04_08_utils.cHolger Hans Peter Freyther1-0/+18
2009-08-20[gsm48] Introduce a gsm48_generate_mid_from_imsi methodHolger Hans Peter Freyther1-1/+36
Prefix generate_mid_from_tmsi with a gsm48_, create a new method to binary encode the imsi. Add a unit test for parsing and decoding. The implementation can parse the data it generated and the last octet seems to be filled with the end mark.
2009-08-20[gsm48] Move parsing of the MI from to gsm_04_08_utils.cHolger Hans Peter Freyther1-0/+52
The parsing of the IMSI is needed for the MSC part as well. Move it to the gsm_04_08_utils.c so it can be used.
2009-08-17[bsc] Move the GSM 04.08 helper functions to gsm_04_08_utils.cHolger Hans Peter Freyther1-0/+310
The existing gsm_04_08.c implementation is mixing BSC and MSC behavior. Move some simple parsing and generation functions over to gsm_04_08_utils.c to allow a different MSC to define the policy.