<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p></p>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
      font-size: 12px;" lang="x-unicode">
Hello all, <br>
<br>
I have run into some problems while building and running osmo-nitb, osmo-bts-trx and osmo-trx on Ubuntu 16.04. I am trying to create a self-contained gsm network box. I have successfully built libosmocore, libosmo-abis, libosmo-netif, libosmo-sccp, openbsc,
 osmo-bts and osmo-trx all from git sources, and i am also using linux call router. All make checks pass corrently without issues.
<br>
<br>
As for the SDR side, i am have the latest UHD, SoapySDR and SoapyUHD, and latest LimeSuite library for LimeSDR support.
<br>
<br>
SMS send/receive works correctly without any issues. Calling, however, works neither with osmo-nitb as standalone, neither with osmo-nitb with -m parameter + LCR. when trying to call, the receiving phone rings, but when trying to answer it randomly either gets
 stuck and does not answer, drops the call instantly or actually takes the call (and the elapsed seconds counter starts counting), but all you can hear is random noises coming both from the calling and from receiving phones, while the calling phone still shows
 that the call has not been answered, as in still calling. <br>
<br>
this is the debug info from osmo-trx: <br>
<br>
<0000> rsl.c:606 (bts=0,trx=0,ts=2,ss=0) Tx CHAN ACT ACK <br>
<0011> lapd_core.c:920 Store content res. (dl=0xb668cec8) <br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=0, V(R)=1 (dl=0xb668cec8 state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=0, V(R)=1 (dl=0xb668cec8 state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=1, V(R)=2 (dl=0xb668cec8 state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=1, V(R)=2 (dl=0xb668cec8 state LAPD_STATE_MF_EST)
<br>
<0000> rsl.c:1639 CRCX does not specify a remote IP <br>
<0000> rsl.c:1646 CRCX does not specify a remote port <br>
<0000> rsl.c:1650 speech mode: 16 <br>
<0000> rsl.c:1656 payload type: 3 <br>
<0000> rsl.c:1636 connect_ip 16777343 <br>
<0000> rsl.c:1643 connect_port 12405 <br>
<0000> rsl.c:1650 speech mode: 0 <br>
<0000> rsl.c:1656 payload type: 3 <br>
<0009> pcu_sock.c:668 PCU socket not connected, dropping message <br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=2, V(R)=3 (dl=0xb668cec8 state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=2, V(R)=3 (dl=0xb668cec8 state LAPD_STATE_MF_EST)
<br>
<0009> pcu_sock.c:668 PCU socket not connected, dropping message <br>
<0009> pcu_sock.c:668 PCU socket not connected, dropping message <br>
<0009> pcu_sock.c:668 PCU socket not connected, dropping message <br>
<0000> rsl.c:606 (bts=0,trx=0,ts=3,ss=0) Tx CHAN ACT ACK <br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 2080 vs 160 (2291865->2291921)
<br>
<0011> lapd_core.c:920 Store content res. (dl=0xb66a83dc) <br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=0, V(R)=1 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=0, V(R)=1 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<0000> rsl.c:1639 CRCX does not specify a remote IP <br>
<0000> rsl.c:1646 CRCX does not specify a remote port <br>
<0000> rsl.c:1650 speech mode: 16 <br>
<0000> rsl.c:1656 payload type: 3 <br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=1, V(R)=2 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=1, V(R)=2 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=2, V(R)=3 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2292212->2292182)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=2, V(R)=3 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2292208->2292246)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2292246->2292212)
<br>
<0000> rsl.c:1636 connect_ip 16777343 <br>
<0000> rsl.c:1643 connect_port 12917 <br>
<0000> rsl.c:1650 speech mode: 0 <br>
<0000> rsl.c:1656 payload type: 3 <br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=3, V(R)=4 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<0011> lapd_core.c:1556 N(S) sequence error: N(S)=3, V(R)=4 (dl=0xb66a83dc state LAPD_STATE_MF_EST)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 2080 vs 160 (2292814->2292870)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2293165->2293131)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2293178->2293221)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2293221->2293191)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2293200->2293239)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2293239->2293204)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2293404->2293447)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2293447->2293417)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2293417->2293455)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2293455->2293421)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2293443->2293486)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2293486->2293456)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2293469->2293507)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2293507->2293473)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2293677->2293720)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594080 vs 160 (2293720->2293681)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2293789->2293832)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594080 vs 160 (2293832->2293794)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1760 vs 160 (2293967->2294014)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2294014->2293984)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2293989->2294027)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2294027->2293993)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2294240->2294283)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2294283->2294253)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2294257->2294296)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2294296->2294262)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2294262->2294305)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594080 vs 160 (2294305->2294266)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1760 vs 160 (2294283->2294331)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2294331->2294296)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 480 vs 160 (2294318->2294331)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2294335->2294374)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2294374->2294340)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2294409->2294452)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594080 vs 160 (2294452->2294413)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1760 vs 160 (2294929->2294976)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2294976->2294946)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2294951->2294989)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2294989->2294955)
<br>
<0000> rsl.c:689 (bts=0,trx=0,ts=2,ss=0) Sending Connection Failure: cause = 0x01
<br>
<0011> lapdm.c:1144 ((nil)) RLL Message 'REL_REQ' received without LAPDm context. (sapi 0)
<br>
<0000> rsl.c:1433 (bts=0,trx=0,ts=2,ss=0) Sending RTP delete indication: cause = Normal event, unspecified
<br>
<0000> rsl.c:580 (bts=0,trx=0,ts=2,ss=0) Tx RF CHAN REL ACK <br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2295705->2295748)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2295752->2295718)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2295817->2295860)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2295869->2295835)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2295960->2296003)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594400 vs 160 (2296003->2295973)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1440 vs 160 (2295978->2296016)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2296016->2295982)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 1600 vs 160 (2296030->2296073)
<br>
<000e> l1sap.c:96 RTP clock out of sync with lower layer: 82594240 vs 160 (2296077->2296043)
<br>
<0000> rsl.c:689 (bts=0,trx=0,ts=3,ss=0) Sending Connection Failure: cause = 0x01
<br>
<0011> lapdm.c:1144 ((nil)) RLL Message 'REL_REQ' received without LAPDm context. (sapi 0)
<br>
<0000> rsl.c:1433 (bts=0,trx=0,ts=3,ss=0) Sending RTP delete indication: cause = Normal event, unspecified
<br>
<0000> rsl.c:580 (bts=0,trx=0,ts=3,ss=0) Tx RF CHAN REL ACK <br>
<br>
<br>
osmo-nitb -c config.cfg -C -m -P <br>
<br>
<0004> abis_rsl.c:1852 BTS 0 CHAN RQD: reason: call re-establishment (ra=0x4f, neci=0x01, chreq_reason=0x02)
<br>
<000a> bsc_api.c:415 Sending (bts=0,trx=0,ts=2,ss=0) ChanModify for speech: SPEECH_V1 on channel TCH_F
<br>
<0004> abis_rsl.c:1852 BTS 0 CHAN RQD: reason: answer to paging (ra=0x27, neci=0x01, chreq_reason=0x01)
<br>
<000a> bsc_api.c:415 Sending (bts=0,trx=0,ts=3,ss=0) ChanModify for speech: SPEECH_V1 on channel TCH_F
<br>
<0004> abis_rsl.c:1358 (bts=0,trx=0,ts=2,ss=0) CONNECTION FAIL: RELEASING state ACTIVE CAUSE=0x01(Radio Link Failure)
<br>
<0004> abis_rsl.c:1358 (bts=0,trx=0,ts=3,ss=0) CONNECTION FAIL: RELEASING state ACTIVE CAUSE=0x01(Radio Link Failure)
<br>
<br>
<br>
<br>
<br>
versions of software: <br>
<br>
<br>
osmo-nitb --version <br>
OpenBSC version 1.0.0.14-98a2ba <br>
<br>
~/Desktop/osmo/openbsc$ git log -1 <br>
commit 98a2ba4c57e95d2ce1e1e8147ea5a8d51788a191 <br>
Author: Vadim Yanitskiy <a class="moz-txt-link-rfc2396E" href="mailto:axilirator@gmail.com">
<axilirator@gmail.com></a> <br>
Date:   Wed Jan 10 22:25:17 2018 +0600 <br>
<br>
<br>
((*)) <br>
  | <br>
 / \ OsmoBTS <br>
OsmoBTS version 0.7.0.77-54be <br>
<br>
~/Desktop/osmo/osmo-bts$ git log -1 <br>
commit 54be46949e93e07e9e57b706388ebb832e5fad0a <br>
Author: Pau Espin Pedrol <a class="moz-txt-link-rfc2396E" href="mailto:pespin@sysmocom.de">
<pespin@sysmocom.de></a> <br>
Date:   Fri Feb 9 12:08:38 2018 +0100 <br>
<br>
<br>
osmo trx: <br>
<br>
~/Desktop/osmo/osmo-trx$ git log -1 <br>
commit 77ce99ac6720896f504a0581a5c57b2929a13cef <br>
Author: Pau Espin Pedrol <a class="moz-txt-link-rfc2396E" href="mailto:pespin@sysmocom.de">
<pespin@sysmocom.de></a> <br>
Date:   Mon Feb 5 13:05:06 2018 +0100 <br>
<br>
<br>
older osmo-bts-trx does actually work at least somewhat, but then voice transmission stops after 10-20 seconds, or sometimes even after 4 minutes of talking, while . The older version is:
<br>
<br>
commit 9982b95069c58a3cb9b97bb6bc75932db81886ad <br>
Author: Harald Welte <a class="moz-txt-link-rfc2396E" href="mailto:laforge@gnumonks.org">
<laforge@gnumonks.org></a> <br>
Date:   Tue Oct 24 18:42:30 2017 +0200 <br>
<br>
"OsmoBTS version 0.6.0.21-9982b-dirty" <br>
<br>
I would, however, like to use a newer, preferably the master branch version from git.
<br>
<br>
Any help in dealing with this issue would be very greatly appreciated. <br>
<br>
<br>
<br>
<br>
</div>
</body>
</html>