summaryrefslogtreecommitdiffstats
path: root/src/input/dahdi.c
Commit message (Collapse)AuthorAgeFilesLines
* e1_input: rework configuration of virtual E1 line operationsPablo Neira Ayuso2011-08-191-4/+2Star
| | | | | | | | | | | | | | | | | | | | | | | | | struct e1inp_line_ops { - enum e1inp_line_role role; - char *addr; - void *data; + union { + struct { + enum e1inp_line_role role; /* BSC or BTS mode. */ + const char *addr; /* IP address .*/ + void *dev; /* device parameters. */ + } ipa; + struct { + const char *port; /* e.g. /dev/ttyUSB0 */ + unsigned int delay; + } rs232; + } cfg; Now this structure contains the configuration details for the virtual E1 line, instead of using a pointer. This also get the line_update callback to its original layout: + int (*line_update)(struct e1inp_line *line);
* src: replace S_INP_* signals by S_L_INP_* according to naming policyPablo Neira Ayuso2011-08-161-5/+5
|
* DAHDI: Actually increment e1_input related rate countersHarald Welte2011-08-161-0/+15
|
* LAPD: Propagate lapd_receive() errors to the E1 driverPablo Neira Ayuso2011-08-161-4/+16
| | | | | | | | | | Scenario: BTS are configured and working, then the BSC stops working for some reason (crash or administrative stop). If the BSC comes back to life, LAPD among other things does not know about the previous existing TEIs. Instead of ignoring these frames, we notify the driver that we are seeing frames with unknown TEIs, so it can try to recover, e.g. by resending the SABM message.
* DAHDI: Fix case where we have multiple E1 ports/cards (spans)Harald Welte2011-08-161-1/+7
| | | | | | | DAHDI creates one device node for every E1 timeslot, starting from '1', and keeps incrementing that number even for additional ports/cards. Thus, we have to use the e1inp_line number multiplied by 31 as a base.
* update to comply with libosmocore namespace fixesHarald Welte2011-07-191-13/+13
| | | | | This updates the code and brings it in sync to libosmocore git commit 892e621fec571c7cba3573caa0d328ed1b25d8ee
* talloc: revert to use talloc inside libosmocoreHarald Welte2011-07-181-1/+1
| | | | | | It's not a good idea to confuse the two changes with each other. Moving the Abis part into a separate library is independent from the question whether we have talloc inside libosmocore or use a stand-alone talloc library.
* src: use signal infrastructure that will be available in libosmocorePablo Neira Ayuso2011-07-051-1/+1
| | | | | This is still not in mainline yet, it's in a separate patch that I expect to send to Harald soon.
* logging: use new harald's logging infrastructure in libosmocorePablo Neira Ayuso2011-07-051-1/+0Star
| | | | | I can send patches to improve it later, better not to waste much time at it by now so port libosmo-abis upon it.
* include: export lapd.h since openBSC needs itPablo Neira Ayuso2011-07-051-1/+1
| | | | More specifically, the unfinished ericsson rbs2000 BTS.
* dahdi: fix driver compilationPablo Neira Ayuso2011-07-021-18/+8Star
| | | | | | Now dahdi driver compiles file. We force the compilation of this driver, I prefer to avoid condition compilation options that tend add problems IMO.
* e1_input: minor API changes to adapt it to openbscPablo Neira Ayuso2011-06-251-4/+4
| | | | | While working on the openbsc over libosmo-abis port, I noticed several API changes that we need to perform for better adaptation.
* e1input: add address as parameter to e1inp_line_update(...)Pablo Neira Ayuso2011-06-211-4/+4
| | | | | This patch adds a new parameter to e1inp_line_update that allows to specific the address for A-bis over IP BSC/BTS.
* e1input: rework generic (virtual and real) E1 line operationsPablo Neira Ayuso2011-06-071-2/+6
| | | | | | | | | | | | | | | | | | | | | | 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.
* src: use include/osmocom/abis instead of include/osmocom/gsm/abisPablo Neira Ayuso2011-06-071-2/+0Star
| | | | | | Harald prefers short paths. This patch also remove commented includes in several files.
* initial commit of libosmo-abisPablo Neira Ayuso2011-06-051-0/+495
still many things to get fixed