aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-06-03add HSL femtocell openbsc.cfg exampleopenbsc/0.9.13+deb10.9.13+deb1Harald Welte1-0/+87
2011-06-02mgcp: Fix a typo in the function nameHolger Hans Peter Freyther1-5/+5
2011-06-01nat: Add VTY code to configure the SMSC rewritingHolger Hans Peter Freyther1-9/+47
2011-06-01nat: Look into the TPDU/SMS-SUBMIT and use the TP-DestAddress for matchesHolger Hans Peter Freyther3-9/+79
Match the used SMSC and the destination of the SMS and change the SMSC address if both are matched.
2011-06-01nat: Patch the destination SMS address of a messageHolger Hans Peter Freyther5-10/+208
Use the same filtering infrasturcture to patch the SMSC address in a CP-DATA/RP-DATA message. Add a very simple testcase for this code.
2011-06-01nat: Move the common new message generation code into the base methodHolger Hans Peter Freyther1-26/+28
2011-06-01nat: Prepare to patch more than the CC Setup messageHolger Hans Peter Freyther4-30/+37
Refactor the code to allow having different handlers. The goal is to be able to patch some SMS messages too.
2011-06-01nat: Allow to have a regexp to match the MSISDNHolger Hans Peter Freyther4-33/+117
The idea that MCC and MNC is enough to classify a subscriber turns out to be wrong. Certain operatos license a number range of IMSIs to others. When we see a '^' in the MCC field we treat it as a regexp. The code now turns the MCC/MNC into a regexp for the IMSI. It is not using extended POSIX regexp to match the behavior of the access list.
2011-05-31nat: Add a test utility for the number rewritingHolger Hans Peter Freyther1-0/+30
2011-05-31nat: Allow to rewrite any non international numberHolger Hans Peter Freyther1-2/+0
Remove the arteficial limitation of the number format of an unknown number.
2011-05-31nat: Refactor the number patching code into a new methodHolger Hans Peter Freyther1-45/+56
Separate the code to patch the code and the code to find a new number based on the old number. This will allow to add multiple targets for number changing.
2011-05-31abis: Get the structs and values from libosmocoreHolger Hans Peter Freyther2-6/+2
Remove the forward declarations for functions and structs that have been moved to libosmocore.
2011-05-31misc: Provide a uninstall-hook to remove the extra filesHolger Hans Peter Freyther1-0/+7
Fix make distcheck to uninstall files that were installed by our custom hook. This is fixing: ERROR: files left after uninstall: ./share/doc/openbsc/examples/osmo-bsc_mgcp/mgcp.cfg ./share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc.cfg ./share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg ./share/doc/openbsc/examples/osmo-nitb/rbs2308/openbsc.cfg
2011-05-24move some more abis_nm related code into libosmocoreHarald Welte2-42/+0
This syncs openbsc.git with libosmocore.git commit rev 11c7193ad8ceb4f3898799dc44b700b8b93a59b8
2011-05-24libabis: fix segfault on malformed ipaccess RSL linkAlexander Huemer1-1/+4
This patch fixes a segfault that occured when a ipaccess RSL link gets closed unexpectedly. The segfault can be provoked by connecting to the RSL port with ncat and hitting ^C.
2011-05-24openbsc: update .gitignoreAlexander Huemer1-0/+3
2011-05-24openbsc: rename configure.in -> configure.acAlexander Huemer1-0/+0
rename autoconf input file to align with osmocom-bb host applications, and because that suffix is preferred nowadays.
2011-05-24openbsc: add missing AC_LANG_SOURCE for current autoconfAlexander Huemer1-1/+1
autoconf >=2.68 demands the body of an AC_COMPILE_IFELSE to be wrapped in an AC_LANG_SOURCE macro, otherwise outputs annoying warnings on the invocation of `autoreconf -i`. this patch follows that demand.
2011-05-24Move system information related defines and code to libosmocoreHarald Welte3-146/+12
This brings openbsc in sync with the following libosmocore commit: b5503136fa234690d5493b19a8aee3a4ef74190d
2011-05-24prepare gsm_data.h header file sharing with osmo-btsHarald Welte6-114/+141
This should not introduce any functional changes, it just re-arranges some definitions in the header file, and introduces the ROLE_BSC define that we enable for the BSC-specific fields.
2011-05-23abis_nm: Some more fall-out from the abis_nm move to libosmocoreHarald Welte3-3/+5
we want get_string_value(), not the equivalent of get_value_string()
2011-05-23abis_nm: fix some fallout regarding abis_nm migration to libosmocoreHarald Welte4-6/+7
Thanks to Holger for noticing this.
2011-05-22abis_nm: Move lots of generic definitions + code to libosmocoreHarald Welte1-388/+26
2011-05-22use new libosmogsm ip.access protocol header fileHarald Welte1-87/+1
2011-05-22bsc: on-demand setup of nanoBTS and HSL femto socketsPablo Neira Ayuso14-35/+112
The daemons set up nanoBTS and HSL femto sockets by default, ie. the three sockets to support these two drivers are open even if we have no BTS of that kind. This patch enables on-demand socket creation, ie. we only enable them if we have one BTS at least that requires it. I added two new attributes to the gsm_bts object, they are: * the start() function includes the code that we need to run to start the BTS. This new function contains the socket creation in the particular case of nanoBTS and HSL femto. * the started boolean, which is used to know if we have already started the BTS, ie. we have already invoked start(). Note that, I have splitted the bts_model_*_init() function into two functions, the _init() functions that register the BTS driver and the _start() functions that start BTS driver on-demand. While I was at it, I added several changes/cleanups to this patch: * Group all bts_model_*_init() calls into one function bts_init(), which is called in the initialization path of osmo-nitb and osmo-bsc. * Add openbsc/bss.h that contains the declaration of bsc_bootstrap_network, bsc_shutdown_net and bts_init. * Add missing e1inp_init() in osmo-bsc. * Fix missing declaration of hsl_setup in openbsc/e1_input.h
2011-05-22abis: add init function for emulated ipaccess/HSL emulated E1 inputPablo Neira Ayuso3-12/+14
This patch is a cleanup. It adds an init function for the ipaccess and HSL emulated E1 input drivers.
2011-05-22bsc: fix bail out in case of problems bootstrapping BTS or E1 inputPablo Neira Ayuso1-4/+6
The error message was missing in case of problems bootstrapping the BTS. The E1 input driver initialization was displayed in the standard output, now this error is reported via logs.
2011-05-22abis: skip e1_input nesting if emptyPablo Neira Ayuso1-0/+3
With this patch, we don't include e1_input if it's empty [...] timeslot 7 phys_chan_config TCH/F hopping enabled 0 e1_input <----------------- empty, it should not show up. msc [...]
2011-05-17ipaccess: Fix the case of specifying the interfaceHolger Hans Peter Freyther1-0/+1
Pablo pointed out that my previous commit was rubish. If we have less than two arguments we want ifname to remain NULL and if we have a second argument (or more) we want to use that as the interface name to bind to.
2011-05-17nat: Use 'paging group' because we have paging forbidden.Holger Hans Peter Freyther1-7/+15
Make paging-group deprecated and introduce the new paging group.
2011-05-14ipaccess-find: Work without providing an interface nameHolger Hans Peter Freyther1-3/+2
This will use the default route of the operating system, e.g. be able to use ipaccess-find without special permission.
2011-05-12misc: Use the osmo_init code for signals and loggingHolger Hans Peter Freyther11-98/+65
Use the libosmocore code to ignore certain signals by default (e.g. SIGHUP, SIGPIPE) and use the new code to create a default stderr logging target and initialize it properly.
2011-05-11debian: update ChangelogHarald Welte1-0/+6
2011-05-11debian: examples can now be installed with a single line in .examplesHarald Welte1-6/+1
2011-05-11debian: bsc_nat is now called osmo-bsc_natHarald Welte1-1/+1
2011-05-11add examples for osmocom-bscHarald Welte1-0/+1
2011-05-11osmocom-nitb.init: remove reference to old bsc_hackHarald Welte2-3/+3
2011-05-11examples: automatically copy all examples in dist and install it to docdirHarald Welte12-1/+20
2011-05-11move config file examples to doc/examples/Harald Welte8-0/+0
2011-05-11add git-version-gen script to EXTRA_DISTHarald Welte1-0/+1
2011-05-10gprs: Add a lua script to collect buffers on the downlink.Holger Hans Peter Freyther1-0/+80
This can be used to throw the data into GNUplot. It collects the time (from the start of the trace), the buffer data in kbyte and the number of buffered PDUs. It is assuming that no PDU is delivered toward the target.
2011-05-08configure.in: Require libosmocore >= 0.3.0 for namespace changesHarald Welte1-3/+3
2011-05-07src: rename msg_entr* to osmo_config_*Pablo Neira Ayuso4-5/+5
Summary of changes: s/msg_entry_parse/osmo_config_list_parse/g s/msg_entry/osmo_config_entry/g s/msg_entries/osmo_config_list/g
2011-05-07src: use namespace prefix osmo_* for misc utilsPablo Neira Ayuso31-84/+84
Summary of changes: s/bcd2char/osmo_bcd2char/g s/char2bcd/osmo_char2bcd/g s/hexparse/osmo_hexparse/g s/hexdump/osmo_hexdump/g s/hexdump_nospc/osmo_hexdump_nospc/g s/ubit_dump/osmo_ubit_dump/g s/static_assert/osmo_static_assert/g
2011-05-06src: use namespace prefix osmo_counter*Pablo Neira Ayuso21-149/+149
Summary of changes: s/struct counter/struct osmo_counter/g s/counter_inc/osmo_counter_inc/g s/counter_get/osmo_counter_get/g s/counter_reset/osmo_counter_reset/g s/counter_alloc/osmo_counter_alloc/g s/counter_free/osmo_counter_free
2011-05-06src: use namespace prefix osmo_wqueue*Pablo Neira Ayuso12-32/+32
Summary of changes: s/struct write_queue/struct osmo_wqueue/g s/write_queue_init/osmo_wqueue_init/g s/write_queue_clear/osmo_wqueue_clear/g s/write_queue_enqueue/osmo_wqueue_enqueue/g s/write_queue_bfd_cb/osmo_wqueue_bfd_cb/g
2011-05-06src: use namespace prefix osmo_signal*Pablo Neira Ayuso36-85/+85
Summary of changes: s/signal_cbfn/osmo_signal_cbfn/g s/register_signal_handler/osmo_signal_register_handler/g s/unregister_signal_handler/osmo_signal_unregister_handler/g s/dispatch_signal/osmo_signal_dispatch/g
2011-05-06src: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso39-211/+211
Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
2011-05-06src: use namespace prefix osmo_timer* for timer functionsPablo Neira Ayuso42-157/+157
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-05-04bsc: Provide a show statistics commandHolger Hans Peter Freyther1-0/+11