Commit Graph

30 Commits

Author SHA1 Message Date
Pau Espin e394d9dc58 Bump version: 1.4.0.54-9f17-dirty → 1.5.0
Change-Id: I3a850a19d842227577a6fb247b5681998d759c2c
2023-09-12 13:39:09 +02:00
Philipp Maier 2b880d6474 e1_input: add new driver callback function: line_create
When a line is created using e1inp_line_create, then the line data
structures are initialized and the line is registered in the line list.

struct e1inp_line also contains driver specific sub structs that,
depending on the driver, might also need some initialization. At the
moment is no way. Let's add a line_create callback that, when
populated by the driver, is executed on line creation.

Related: OS#5983
Change-Id: I404fa23e9b8a952be84e9716889c0dbbbc665d22
2023-05-02 15:00:19 +02:00
Mychaela N. Falconia 2d70a93734 osmo_rtp2trau() for FR & EFR UL: set C13 & C14 correctly
Control bits C13 & C14 in TRAU-UL frames indicate SID classification
per section 6.1.1 of GSM 06.31 for FR or GSM 06.81 for EFR.
Previous commit 08d0c09902 implements correct setting of C16 in
TRAU-DL, but the case of generating TRAU-UL was left as a FIXME.
Now that we have osmo_{fr,efr}_sid_classify() functions in
libosmocodec, we can set C13 & C14 in TRAU-UL too.  Do it.

Change-Id: Ifcfc28ad7d77e561d456be546689995abfd8a6f5
2023-04-27 19:53:51 +00:00
Andreas Eversberg 9a151091cc Add function to set Sa bits to common part
Change-Id: I4f5f975f0e5f708ae573a1e1ce41c6a08c207fad
2023-02-18 10:39:31 +01:00
Pau Espin 656f135ed0 Bump version: 1.3.0.31-1950-dirty → 1.4.0
Change-Id: Ib6738f44e8a7495ac7eddc10b0a68b76c33dc0dd
2023-02-07 13:15:26 +01:00
Daniel Willmann c20af05bfc ipaccess: Add connect timeout in e1inp_line
* VTY command e1_line N connect-timeout T to set the connect() timeout
* use ipa_client_conn_open2 to connect with timeout

Related: SYS#6237
Change-Id: I7379102d19c172bed2aa00377d92bc885f54b640
2022-12-15 16:10:36 +01:00
Daniel Willmann 6113525d6b ipa: Add ipa_client_conn_open2 with connect timeout argument
Related: SYS#6237
Change-Id: Iaeb672a4c981e9769443fb0cd6c8e59cb76307bd
2022-12-15 16:10:36 +01:00
Pau Espin a6eda5ae01 Bump version: 1.1.1.14-57ff-dirty → 1.2.0
Change-Id: I0536137e6221fd322536111dfda6e19d3c57de6c
2021-11-16 14:18:45 +01:00
Harald Welte 6bcc32bcfa ipa: Introduce support for user-specific DSCP and priority
This adds new members to struct ipa_server_link and ipa_client_conn,
which can be set by the user before ipa_client_conn_open() or
ipa_server_link_open() to ensure DSCP / priority values are applied
from the first outgoing packet onwards.

Change-Id: I5ab22d35d9b11eca47d9ea12208e5589a1a5713c
Depends: libosmocore.git If22988735fe05e51226c6b091a5348dcf1208cdf
2021-04-29 21:21:56 +02:00
Harald Welte 2a8a34cd01 Bump version: 0.8.0.59-1f92-dirty → 1.0.0
Change-Id: Iffbb96739f53c7e005f440bc1615f158f7c661eb
2020-08-13 12:09:39 +02:00
Pau Espin ffc92d5b23 lapd: Use lapd_dl_init2 instead of deprecated lapd_dl_init
Change-Id: If25957d10bf9e32d2fe601111a9c1311aee21094
2020-07-15 15:42:19 +02:00
Pau Espin 5196cd5641 e1_input: Use osmo_use_count in e1inp_line
osmo_use_count is available since libosmocore 1.1.0 release, so bump
required libosmocore version in autotools and packages.

struct e1inp_line field refcnt is kept in order to keep ABI
compatibility accessing struct fields. The new use_count is added at the
end. Size of struct changing is fine since it is allocated through
an API and a pointer should be used by clients.

e1inp_line_clone API is changed but it's not used by anyone outside
libosmo-abis, so it's fine.

Related: OS#4624
Change-Id: I0658b2e9c452598025cc0f1d0b060076171767cc
2020-07-15 15:39:33 +02:00
Harald Welte b90318808b lapd: Always print context information when logging
Historically, OpenBSC has primarily been used with setups that have
a single E1 based BTS connected. This meant that an error message on
the E1 LAPD implicitly has to be related to that single BTS.

However, in more comprehensive setups, there may be many BTSs on many
E1 lines with many signaling slots.  At this point, it's important to
know which line/timeslot/tei/sapi a given log message relates to.

This patch introduces related log context.

Change-Id: Ib81a749ae24013b17caaf5fd64ccd9acbbc3ce08
Requires: libosmocore.git Change-Id Ie6742843fff809edffcac24c4dce4edf66bc71be
Related: OS#1938
2020-06-09 07:11:42 +00:00
Oliver Smith 3c51482e3d osmo_ortp: add osmo_rtp_socket_set_dscp()
Related: OS#4438
Change-Id: I41603db8c1286660ad57ac1c78a8fb393a2b080b
2020-03-07 15:07:27 +01:00
Eric Wild ef1f327c96 add ipa ping/pong keepalive for OML/RSL links between bts and bsc
Patch-by: ewild, osmith
Related: OS#4070
Change-Id: I30e3bd601e55355aaf738ee2f2c44c1ec2c46c6a
Depends: (libosmo-abis) Ie453fdee8bfd7fc1a3f1ed67ef0331f0abb1d59b
2020-01-24 14:35:09 +01:00
Pau Espin c313d44272 Bump version: 0.7.0.8-4c2c-dirty → 0.8.0
Change-Id: If7099f91a3610d61d16e769406ac27f54e7363f3
2020-01-02 20:53:32 +01:00
Pau Espin b6e28bf77b ipa: Allow setting local addr and port for struct ipa_client_conn
Change-Id: I3133c6b01647506a5b9c67e4699bcad3ff59f843
2019-11-08 17:30:28 +01:00
Pau Espin 7b89f12e66 Bump version: 0.4.0.21-60fd-dirty → 0.5.0
libosmotrau library version in debian package was wrong, fix it while
releasing.

Change-Id: I399618c7353a4150e3d571758b522dd2e9d9724f
2018-05-03 16:12:04 +02:00
Harald Welte d1dd22c38e Add a new osmo_rtp_set_source_desc() function to set the RTCP SDES items
This allows the users of libosmotrau to set the content of the SDES
items to something more useful than their compile-time defaults.

Change-Id: Ice794f9e0c6caeea1c67520c12efbfa375d1fb82
Related: OS#2701
2017-12-03 11:03:50 +01:00
Max 7f17b8c45d Bump version: 0.3.2 → 0.4.0
Change-Id: Ibefe53a7f5b06fb8a9294574af41dacac68bdbe9
2017-08-25 16:12:37 +02:00
Max 02ceea8342 Extend RTP RX callback parameters
While debugging low-level RTP issues it is handy to be able to match
exact RTP packet with the payload available to higher-level
functions. Having Sequence number and Timestamp RTP fields as parameter
to receiving callback is the easiest way to do so.

Change-Id: I0c9b08d247d7342d6139badca77ce64fda0cf274
2016-10-21 19:45:00 +02:00
Harald Welte f35d8898ab e1_input: Add E1 timeslot number to input_signal_data
It is quite useful for the signal receiver to know on which of the many
E1/T1 timeslots a given event (like a 'link down' event) has happened.
The line number, TEI and SAPI are isnuficcient in case there are
multiple signalling TS in the line.

Change-Id: I07f0f79e0cda09766f357032ffb4e7ad643d448a
2016-10-16 22:13:46 +00:00
Max 6dab90f39f Change API to convey marker bit
Previously RTP receive callback ignored Marker bit from RTP
headers. Extend API to include it explicitly.

Change-Id: I3c2b6365d8a51bf98805614e07344d2639875fde
Related: OS#1750
2016-09-09 06:34:54 +00:00
Holger Hans Peter Freyther b6d2834eef Prepare a new release of libosmo-abis 2014-09-08 07:57:09 +02:00
Holger Hans Peter Freyther c97b9e64e3 Add missing TODO-RELEASE entry to remind us of the ABI bump on release 2014-08-29 09:05:48 +02:00
Holger Hans Peter Freyther ecd0a36ce8 release: Prepare the 0.2.0 release of libosmo-abis 2014-03-31 15:49:13 +02:00
Jacob Erlbeck 98af3c3a6d ipa: Change ipa_msg_recv() to support partial receive
Currently ipa_msg_recv() fails, when messages are received partially.

This patch provides a new function ipa_msg_recv_buffered() that uses
an additional ** to a message buffer to store partial data.  When
this happens, -EAGAIN is returned. If NULL is used, the function
behaves similar to ipa_msg_recv() and fails on partial read.
In addition in case of errors the return value is now always -EXXX
and the contents of errno is undefined.

Note that this feature needs support by the calling code insofar that
*tmp_msg must be set to NULL initially and it must be freed and
set to NULL manually when the socket is closed.

Note also that ipa_msg_recv() is then a wrapper around
ipa_msg_recv_buffered() which mimics the old error behaviour by
setting errno explicitely to -rc and returning -1 when an error has
happened.

Ticket: OW#728
Sponsored-by: On-Waves ehf
2014-03-31 14:33:18 +02:00
Holger Hans Peter Freyther ba9aa8941b Prepare the v0.1.6 release of libosmo-abis 2014-01-20 10:22:45 +01:00
Holger Hans Peter Freyther 901ef1cbbb ipaccess: Change the visibility of the ipa messages 2014-01-20 08:11:51 +01:00
Jacob Erlbeck 86dae84bed input: Make keep alive configurable (generic)
This patch adds a generic keep alive configuration layer that mainly
consists of additional fields in e1_input structs and VTY commands
and extensions.

Ticket: OW#1060
Sponsored-by: On-Waves ehf
2014-01-20 08:10:43 +01:00