summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* ipaccess: initial works to get BTS mode workingPablo Neira Ayuso2011-06-213-8/+71
| | | | | | | | | | | | | | This patch adds the initial support to get BTS mode working with the ipaccess driver. Now, the driver handles IPA ping, pong and id_ack messages internally in BTS modes, and it passes the signalling messages to the client application by invoking the callback line operations. Moreover, with this patch, each IPA link object always has one E1 line object associated. Still HSL BTS-mode remains unimplemented.
* ipaccess: create RSL socket in BTS modePablo Neira Ayuso2011-06-211-5/+25
| | | | | | | | With this patch, we create the RSL socket in BTS mode. This patch also fixes a crash if the RSL socket goes down before we have set the RSL line via OML with the existing code.
* input: use generic ipa_msg_recv() instead of ipaccess_read_msg()Pablo Neira Ayuso2011-06-212-59/+4Star
| | | | | | | | We use the new generic function to receive messages, instead of ipaccess_read_msg. It's a mere renaming, but it's the first step before the rework that will happen soon to avoid calling read() twice.
* hsl: add support for BTS-modePablo Neira Ayuso2011-06-213-6/+30
| | | | This patch adds support for BTS-mode for the hsl input driver.
* e1input: add address as parameter to e1inp_line_update(...)Pablo Neira Ayuso2011-06-216-24/+25
| | | | | This patch adds a new parameter to e1inp_line_update that allows to specific the address for A-bis over IP BSC/BTS.
* input: ipaccess: add preliminary BTS-side for A-bis over IPPablo Neira Ayuso2011-06-143-4/+260
| | | | | | | | | | | | This patch adds the BTS-side for the ip.access driver for A-bis over IP communications. This patch adds one example under test/ so you can test the existing BSC and BTS sides over ip.access. Still incomplete, it requires to allow to register some callback in the BTS side to perform some action once we receive some message. This will come in next updates.
* src: add support for logging infrastructure in libosmo-abisPablo Neira Ayuso2011-06-122-1/+45
| | | | | | This patch uses the new libosmocore logging infrastructure that allows to invoke log_init(&my_log_info) multiple times so we can register categories from libraries and applications.
* include: remove internal definition that are now in libosmocorePablo Neira Ayuso2011-06-096-7/+7
| | | | | Still in one separate patch for libosmocore, but they may become part of mainline soon.
* hsl: use include/abis/ipaccess.hPablo Neira Ayuso2011-06-071-1/+1
| | | | instead of deprecated include/gsm/protocol/ipaccess.h
* e1input: rework generic (virtual and real) E1 line operationsPablo Neira Ayuso2011-06-075-21/+143
| | | | | | | | | | | | | | | | | | | | | | struct e1inp_line_ops { int (*sign_link_up)(struct msgb *msg, struct e1inp_line *line); int (*sign_link)(struct msgb *msg, struct e1inp_sign_link *link); int (*error)(struct msgb *msg, int error); }; The description of the operations is the following: * sign_link_up is invoked if the signalling link becomes up. In A-bis over IP, we have to wait until the other peer identifies itself as a BTS/BSC device, then this function is invoked. This function is not used by ISDN drivers, the signalling link can be set up just after the line is created. * sign_link is called if we receive OML/RSL message. This function is used both by ISDN and A-bis over IP drivers. * error is called if we receive a malformed message. It is used both by ISDN and A-bis over IP drivers.
* e1input: log_set_context(...) should be called from the applicationPablo Neira Ayuso2011-06-071-1/+0Star
| | | | Remove this line, it should be called from the application.
* e1input: fix TRAU frame handlingPablo Neira Ayuso2011-06-071-5/+4Star
| | | | | | | With this patch, we pass TRAU frames to the callback that e1inp_ts_config_trau(...) takes as parameter. Instead of passing it to the line->rx(...) callback. The function e1inp_ts_config_trau(...) should only be used by ISDN drivers.
* src: add libosmo_abis_init(void *ctx) to set the talloc contextPablo Neira Ayuso2011-06-075-6/+39
| | | | | This function is called during initialization, so we can set what's the talloc context for the application and the library.
* src: use include/osmocom/abis instead of include/osmocom/gsm/abisPablo Neira Ayuso2011-06-078-44/+10Star
| | | | | | Harald prefers short paths. This patch also remove commented includes in several files.
* src: use new socket API in libosmocorePablo Neira Ayuso2011-06-074-117/+40Star
| | | | | get rid of internal copy of openbsc/libcommon/socket.c, we now use the new socket API available in libosmocore.
* missing logging header in trau_frame.cPablo Neira Ayuso2011-06-051-0/+1
|
* initial commit of libosmo-abisPablo Neira Ayuso2011-06-0511-0/+3898
still many things to get fixed