Current OpenBSC + LCR using MNCC socket

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Konrad Meier meierk at informatik.uni-freiburg.de
Mon Jul 25 10:24:30 UTC 2011


On 25.07.2011 11:49, Andreas.Eversberg wrote:
>> The problem is: The query is always false, so no messages are sent to OpenBSC.
>> If I comment out the if-query, everything works as expected: Calls can be made mobile originated and mobile terminated.
>> However, I don't think the if-query is there without a reason.
>
> Since there is only one (gsm-)network instance, the "gsm->network" pointer must be set to something != NULL. Then it should work
>
> Thanx, applied both fixes. (blindly) Please try if it works.

Hi Andreas,

I tried to compile the master branch of LCR with your last changes. It 
failed with the error below. Asterisk version is 1.6.2.5. Is Asterisk 
1.6 still supported or is 1.8 recommended now?

Best regards
Konrad


make[1]: Betrete Verzeichnis '/home/openbsc/bsc-software/lcr'
gcc   -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\"" 
-Dtone_zone_sound=ast_tone_zone_sound   -g -O2 -D_GNU_SOURCE -fPIC -c 
chan_lcr.c -o chan_lcr.po
In file included from /usr/include/asterisk/astobj2.h:20,
                  from /usr/include/asterisk/indications.h:29,
                  from chan_lcr.c:160:
/usr/include/asterisk/compat.h:93: error: expected identifier or ‘(’ 
before ‘__extension__’
/usr/include/asterisk/compat.h:101: error: expected identifier or ‘(’ 
before ‘__extension__’
/usr/include/asterisk/compat.h:101: error: expected identifier or ‘(’ 
before ‘)’ token
chan_lcr.c: In function ‘send_message’:
chan_lcr.c:383: warning: ignoring return value of ‘write’, declared with 
attribute warn_unused_result
chan_lcr.c:679:2: warning: #warning DISABLED DUE TO DOUBLE LOCKING PROBLEM
chan_lcr.c: In function ‘lcr_in_proceeding’:
chan_lcr.c:1115: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘lcr_in_alerting’:
chan_lcr.c:1136: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘lcr_in_connect’:
chan_lcr.c:1167: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘lcr_in_disconnect’:
chan_lcr.c:1208: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘lcr_in_release’:
chan_lcr.c:1242: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘lcr_in_information’:
chan_lcr.c:1285: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘lcr_in_pattern’:
chan_lcr.c:1361: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘lcr_in_dtmf’:
chan_lcr.c:1391: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘release_all_calls’:
chan_lcr.c:1655: warning: ignoring return value of ‘write’, declared 
with attribute warn_unused_result
chan_lcr.c: In function ‘wake_event’:
chan_lcr.c:1805: warning: ignoring return value of ‘read’, declared with 
attribute warn_unused_result
chan_lcr.c: In function ‘load_module’:
chan_lcr.c:3243: warning: passing argument 2 of 
‘ast_register_application2’ from incompatible pointer type
/usr/include/asterisk/module.h:427: note: expected ‘int (*)(struct 
ast_channel *, void *)’ but argument is of type ‘int (*)(struct 
ast_channel *, void *)’
make[1]: *** [chan_lcr.po] Fehler 1
make[1]: Verlasse Verzeichnis '/home/openbsc/bsc-software/lcr'
make: *** [all] Fehler 2




More information about the OpenBSC mailing list