aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_08_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2010-01-28Revert "[bssap] Open a traffic channel for the paging any reason"Holger Hans Peter Freyther1-2/+2
This reverts commit 55a0716da7d06860addfba1812c309eac6d82f1a. Using a TCH/H, TCH/F for paging purpose any will break the MT-SMS case because this needs a SDCCH to establish SAPI=3. The On Waves BSC Master branch has support for early assignment now so this hack is not needed anymore.
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.
2009-12-22Merge commit 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-7/+118
Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/src/Makefile.am openbsc/src/abis_rsl.c openbsc/src/chan_alloc.c openbsc/src/gsm_04_08.c openbsc/src/gsm_data.c openbsc/src/vty_interface.c The biggest problem is the moving of the RTP code into the RSL layer. This may break quite some things...
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-24Merge branch 'master' into on-waves/bsc-masterHolger Hans Peter Freyther1-0/+16
Conflicts: openbsc/src/abis_nm.c openbsc/src/bsc_init.c openbsc/src/vty_interface.c
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-20[bssap] Open a traffic channel for the paging any reasonHolger Hans Peter Freyther1-2/+2
In the case the MS is requesting a channel with the paging any channel reason, use a TCH. This allows us to keep using very early assignment and the SDCCHs are kept free for location updating requests.
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.