Hello,<br><br>since some days I'm using an old version of OpenBSC and LCR (as suggested by University of Freiburg) to interconnect our GSM and PSTN. We are using Debian squeeze and a nanoBTS.<br>However, I would like to upgrade to a newer version of OpenBSC. Unfortunately, no current LCR version compiles without errors such as missing declarations etc., for example:<br>
<br>g++ -DHAVE_CONFIG_H -I.   -DWITH_GSM_BS -I./openbsc/include -I./libosmocore/include -I./openbsc   -Wall -DCONFIG_DATA="\"/usr/local/lcr\"" -DSHARE_DATA="\"/usr/local/lcr\"" -DLOG_DIR="\"/usr/local/lcr\"" -DEXTENSION_DATA="\"/usr/local/lcr/extensions\""    -g -O2 -MT gsm.o -MD -MP -MF .deps/gsm.Tpo -c -o gsm.o gsm.cpp<br>
In file included from ./openbsc/include/openbsc/rest_octets.h:4,<br>                 from ./openbsc/include/openbsc/gsm_data.h:9,<br>                 from gsm_bs.h:2,<br>                 from main.h:157,<br>                 from gsm.cpp:12:<br>
./openbsc/include/openbsc/gsm_04_08.h:33: error: use of enum ‘gsm_chan_t’ without previous declaration<br>./openbsc/include/openbsc/gsm_04_08.h:33: error: invalid type in declaration before ‘;’ token<br>./openbsc/include/openbsc/gsm_04_08.h:34: error: use of enum ‘gsm_chreq_reason_t’ without previous declaration<br>
./openbsc/include/openbsc/gsm_04_08.h:34: error: invalid type in declaration before ‘;’ token<br>In file included from ./openbsc/include/openbsc/gsm_data_shared.h:11,<br>                 from ./openbsc/include/openbsc/gsm_data.h:154,<br>
                 from gsm_bs.h:2,<br>                 from main.h:157,<br>                 from gsm.cpp:12:<br>./libosmocore/include/osmocom/gsm/gsm_utils.h:62: error: expected identifier before ‘)’ token<br>./libosmocore/include/osmocom/gsm/gsm_utils.h:62: error: two or more data types in declaration of ‘parameter’<br>
gsm.cpp: In function ‘gsm_mncc* create_mncc(int, unsigned int)’:<br>gsm.cpp:195: error: invalid application of ‘sizeof’ to incomplete type ‘gsm_mncc’<br><br>etc. etc.<br><br>If I manually include some header files from libosmocore and OpenBSC to LCR and declare missing ENUMs (dirty hacks), LCR starts without a problem.<br>
Starting osmo-nitb with -P and -m parameters, LCR can connect to MNCC socket. But any try to start voice traffic either from or to a mobile station results into these continuous messages:<br><br><0006> gsm_04_08.c:2954 receive message GSM_TCH_FRAME<br>
<0006> gsm_04_08.c:2986 TCH frame to lchan without RTP connection<br><0006> gsm_04_08.c:2954 receive message GSM_TCH_FRAME<br><0006> gsm_04_08.c:2986 TCH frame to lchan without RTP connection<br><0006> gsm_04_08.c:2954 receive message GSM_TCH_FRAME<br>
<0006> gsm_04_08.c:2986 TCH frame to lchan without RTP connection<br>.....<br><br>Furthermore, either OpenBSC ignores LCR messages or LCR does not send messages to OpenBSC, because calls from mobile stations are signalled through LCR to asterisk; calls from asterisk to a mobile station are indicated by LCR but not by OpenBSC.<br>
<br>All configuration files of the running setup (openbsc.cfg, LCR files) are used.<br>Commits...<br>- LCR: 39a36cb99a6dba1441a7a4b51914e0dadf3a7ae8<br>- libosmocore: 95f7eb288c4b8b69d61fa8d68957fb21f09e11e5<br>- OpenBSC: fe2d9b2fab2ae36a12411435f910efc9697d7b18 (debian branch, but same problem with master)<br>
<br>Is there really no possibility at the moment to run LCR with a current OpenBSC?<br><br>Many thanks in advance,<br>Lennart<br><br><br><br><br><br>