aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
AgeCommit message (Collapse)AuthorFilesLines
2010-03-22ipa-firmware: Look at the table offsetHolger Hans Peter Freyther1-0/+7
* The two dummy bytes appear to be an offset, check that they are zero and refuse to work when they are not.
2010-03-22ipa-firmware: Warn/Exit when the required ids can not be found.Holger Hans Peter Freyther1-5/+13
2010-03-22ipa-firmware: Remove dummy check...Holger Hans Peter Freyther1-3/+0
We have derefenced that way before and would have crashed already.
2010-03-22ipa-firmware: The more_more_magic is to indicate the payloadHolger Hans Peter Freyther1-4/+0
* Ignore the value of the field there is no sematnic change to the content of the file..
2010-03-22debug: Use the right enum value for the ref counting group.Holger Hans Peter Freyther1-1/+1
2010-03-07move large parts of mncc.h and gsm48 encode/decode into libosmocoreHarald Welte2-621/+85
2010-03-04move some gsm48 utility functions to libosmocoreHarald Welte3-169/+13
* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi() * gsm48_cc_msg_names[]
2010-03-04move gsm_band_name() and gsm_band_parse() to libosmocoreHarald Welte1-54/+2
2010-03-04rsl: use the rsl_rll_push_l3() and rsl_rll_simple() functions of libosmocoreHarald Welte1-28/+10
2010-03-02remove gsm04.08 utility code that has been moved to libosmocoreHarald Welte1-122/+14
2010-03-01value_string functions and some RSL related stuff has moved to libosmocoreHarald Welte2-250/+6
2010-02-26Merge remote branch 'origin/on-waves/sccp'Holger Hans Peter Freyther1-0/+23
2010-02-26Merge remote branch 'origin/master' into on-waves/sccpHolger Hans Peter Freyther60-3263/+178
2010-02-26Merge remote branch 'origin/master' into on-waves/mgcpHolger Hans Peter Freyther62-3482/+550
Conflicts: openbsc/include/openbsc/Makefile.am openbsc/src/Makefile.am
2010-02-26[sccp] Implement parsing the rather easy IT messages.Holger Hans Peter Freyther1-0/+23
2010-02-26[mgcp] Patch the rtp payload depending on the direction.Holger Hans Peter Freyther1-0/+36
The RTP header code is taken from the rtp_proxy, we will need to figure out how to unite these properly in the long run.
2010-02-26[mgcp] Keep track of the local and remote RTP payload typeHolger Hans Peter Freyther1-2/+8
Keep track of which RTP payload type to use for which direction.
2010-02-26[mgcp] Introduce a policy CB for the MGCP protocolHolger Hans Peter Freyther1-0/+55
The are three policies. Accept, Reject and Defer. This will allow to handle network connections and such from the policy callback instead of directly acting on it.
2010-02-26[mgcp] Fix two bugs in the protocol handlingHolger Hans Peter Freyther1-1/+3
In case of a wrongly formatted AUEP, CRCX, DLCX, MDCX the transaction id pointer was a dangling pointer... Initialize the transaction id to a static string.. Also fix a off by one bug. We want to extract four elements from the MGCP message and not only 3... So a short AUEP message made it us read too many things.
2010-02-26[mgcp] Switch logging from notice to debugHolger Hans Peter Freyther1-3/+3
2010-02-26[mgcp] Add a method to free the endpoint.Holger Hans Peter Freyther1-12/+25
2010-02-26[rtp] Describe the struct in a way that it will work for Big Endian tooHolger Hans Peter Freyther1-0/+10
Play with the right bits on PPC.
2010-02-26[mgcp] Print the rtp_port number, do not assume it was already assigned.Holger Hans Peter Freyther1-1/+1
2010-02-22[mgcp] Move the network bits to a separate file...Holger Hans Peter Freyther3-186/+224
This change separates the protocol from the actual network code (bind, forward data). This will allow to more easily hook up the RTP code from OpenBSC and to not use local sockets at all.
2010-02-22[mgcp] Make the creation of the mgcp message public.Holger Hans Peter Freyther1-3/+3
2010-02-22[mgcp] Cleanup the code. send_ was a misleading nameHolger Hans Peter Freyther1-22/+22
The send_ methods stopped to send the MGCP messages but was changed to actually just create a msgb_ that can be sent to a mediagateway. Rename the methods now.
2010-02-22[mgcp] Move away from global variables and split out VTY codeHolger Hans Peter Freyther4-406/+438
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-20finish openbsc / libosmocore separationHarald Welte1-7/+5
* use pkg-config from openbsc to find header and library * move sms and timer tests to libosmocore itself * ensure "make distcheck" works on both packages
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte60-3260/+135
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-02-20Merge branch 'on-waves/sccp'Holger Hans Peter Freyther1-1/+1
2010-02-20[sccp] Use msgb->l2h instead of msgb->data for CRHolger Hans Peter Freyther1-1/+1
Using msgb->data only works as long as msgb->data == msgb->l2h.. In the case of receiving a MSU unit from a E1 link, or even receiving the IPA header we will have some non SCCP data at msgb->data and then cast garbage to what we think is making sense.. Use msgb->l2h and everything is fine.
2010-02-19ipaccess.c: Fix some resource leaks in error conditions.Holger Hans Peter Freyther1-0/+13
* Close the socket when the bind is failing. * Close the socket when the listen is failing. * Close the socket then the bsc_register_fd is failing. * Return an error when the socket call is not returning a socket.
2010-02-14Merge branch 'on-waves/sccp'Holger Hans Peter Freyther1-0/+1
2010-02-12[sccp] Set the data_len when parsing UDT messages as wellHolger Hans Peter Freyther1-0/+1
For UDT the msgb_l3len can be safely used but it is better to set it to data_len for everyone..
2010-02-12Merge branch 'on-waves/sccp'Holger Hans Peter Freyther1-215/+365
2010-02-12[sccp] Make the file includable outside of OpenBSCHolger Hans Peter Freyther1-3/+4
2010-02-12Move debug.c into the liblaf0rge1.a tooHolger Hans Peter Freyther1-2/+2
The msgb class is using the debug framework and needs to be able to output data. We would need a way to add custom areas or to have the struct of areas outside of the default debug.c... but this can happen at a later point.
2010-02-12[sccp] Install the static sccp library and the headersHolger Hans Peter Freyther1-2/+2
2010-02-09liblaf0rge: Make the other targets depend on the liblaforge...Holger Hans Peter Freyther1-5/+5
Everything is linking fine here.
2010-02-09Create a liblaforge with OpenBSC utility functions to be used for other projectsHolger Hans Peter Freyther1-0/+5
2010-02-09[bsc] Allow to set a EGSM900, RGSM900 ARFCNHolger Hans Peter Freyther1-2/+4
For R-GSM900 the channels 955-1023 are within the 900er band. The System Information Type generation can not cope with these channels yet.
2010-02-09[ipaccess] Make the IPA version of LTV public.Holger Hans Peter Freyther1-2/+2
2010-02-07[ipa] Make sending of ID REQ public...Holger Hans Peter Freyther1-1/+6
Make sending of the ID Request message public. We are going to use this in the BSC NAT code to ask for querying the BSC.
2010-02-07[ipaccess] Create a method to send the ID ACK messagesHolger Hans Peter Freyther1-1/+7
2010-02-03[sccp] Slightly improve the log messageHolger Hans Peter Freyther1-1/+1
2010-02-03[sccp] 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-03Merge branch 'master' into on-waves/sccpHolger Hans Peter Freyther61-1393/+9569
2010-02-03[mgcp] Refer to the right Company in the Copyright/Copyleft lineHolger Hans Peter Freyther2-2/+2
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 Freyther2-60/+81
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/+16
* 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.