Giter Site home page Giter Site logo

dev's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dev's Issues

Loosen dependency on range-libzmq

The debian/control depends lines of openbts, smqueue and sipauthserve should point to libzmq >=3 and not range-libzmq. Additionally, the libzmq package hosted here should define "provides libzmq" in debian/control.

Document the PowerScanner Application

The new openbts/apps/PowerScanner application cycles through all ARFCNs in the currently configured band and determines the current receive power on that ARFCN. The lower the receive power the better. This needs documentation though.

remove requirement of openbts user

The system-config repo, maybe others, assumes a openbts:openbts user and group are present on the system. This dependency must be removed.

./build.sh cann`t find uhd

I try install OpenBTS (and otherr software) on Ubuntu 15.04 (Vivid), but after running installation I get next messages in terminal:

-# checking build dependencies
dpkg-query: package 'uhd' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
-# - missing uhd, installing dependency
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package uhd
-# - done

After installation I cann`t run program servises and while I try running ./OpenBTS --- I get:

1431196263.361118 140097295300416:
Starting the system...
ALERT 22639:22639 2015-05-09T21:31:03.3 TRXManager.cpp:492:setTSC: SETTSC failed with status -1
ALERT 22639:22639 2015-05-09T21:31:03.3 TRXManager.cpp:456:powerOn: POWERON failed with status -22
ALERT 22639:22639 2015-05-09T21:31:03.3 TRXManager.cpp:565:clearHandover: NOHANDOVER(0) failed with status -1
ALERT 22639:22639 2015-05-09T21:31:03.3 GSML1FEC.cpp:578:handoverPending: SCH handover clear failed
ALERT 22639:22639 2015-05-09T21:31:03.3 TRXManager.cpp:565:clearHandover: NOHANDOVER(0) failed with status -1
ALERT 22639:22639 2015-05-09T21:31:03.3 GSML1FEC.cpp:578:handoverPending: FCCH handover clear failed
ALERT 22639:22639 2015-05-09T21:31:03.3 TRXManager.cpp:565:clearHandover: NOHANDOVER(0) failed with status -1
ALERT 22639:22639 2015-05-09T21:31:03.3 GSML1FEC.cpp:578:handoverPending: BCCH handover clear failed
..........................................

./OpenBTSCLI says “is openbts running”

I sudo start sipauthserve/smqueue/openbts/asterisk.
It's all normal.
But when i ./OpenBTSCLI ,something wrong happend.
I try to re-install,the same problem appeared.
I think i have started openbts ,why is openbts not running?

Ran /dev/build.sh and met a problem (debian/rules:55: recipe for target 'clean' faile)

Ran /dev/build.sh and met a problem (debian/rules:55: recipe for target 'clean' faile)
`
pi@raspberrypi:/opt/dev $ sudo ./build.sh SDR1
** checking for a supported radio type
** - found
** checking for a compatible build host
** - WARNING : dev-tools is currently only tested on Ubuntu 16.04, YMMV. Please open an issue if you've used it successfully on another version of Ubuntu.
**
** adding additional repo tools
** - done

** checking build dependencies
** - done

** make a home for this build
mkdir -p BUILDS/2017-03-09--23-42-13
** libcoredumper - building Debian package and installing as dependency
cd libcoredumper
./build.sh
wget http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/google-coredumper/coredumper-1.2.1.tar.gz
--2017-03-09 23:42:13-- http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/google-coredumper/coredumper-1.2.1.tar.gz
正在解析主机 storage.googleapis.com (storage.googleapis.com)... 192.168.1.200
正在连接 storage.googleapis.com (storage.googleapis.com)|192.168.1.200|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:437668 (427K) [application/x-gzip]
正在保存至: “coredumper-1.2.1.tar.gz”

coredumper-1.2.1.tar.gz 100%[=========================================================>] 427.41K 1.87MB/s 用时 0.2s

2017-03-09 23:42:14 (1.87 MB/s) - 已保存 “coredumper-1.2.1.tar.gz” [437668/437668])

tar zxf coredumper-1.2.1.tar.gz
cd coredumper-1.2.1
mv packages/deb debian
chmod 644 debian/control
patch -p0
patching file src/elfcore.c
patching file src/linuxthreads.c
patching file src/linux_syscall_support_unittest.cc
dpkg-buildpackage -us -uc
dpkg-buildpackage: source package libcoredumper
dpkg-buildpackage: source version 1.2.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Google Inc. [email protected]
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build coredumper-1.2.1
debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
** Add here commands to clean up after the build process.
/usr/bin/make distclean
make[1]: Entering directory '/opt/dev/libcoredumper/coredumper-1.2.1'
make[1]: *** No rule to make target 'distclean'。 停止。
make[1]: Leaving directory '/opt/dev/libcoredumper/coredumper-1.2.1'
debian/rules:55: recipe for target 'clean' failed
make: [clean] Error 2 (ignored)
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
dh_clean
dh_clean: Compatibility levels before 5 are no longer supported (level 4 requested)
debian/rules:55: recipe for target 'clean' failed
make: *** [clean] Error 25
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
ERROR: command failed!
** ERROR: command failed!
`

P.S. I use ** to replace # which are in the nofication.

As you see , I want to build a base station with Motorola C118 on my raspberrypi.
But I met a problem with running /dev/build.sh .
I try to edit /dev/libcoredumper/build.sh. Unfortunately, it didn't work.
By the way, the package (coredumper-1.2.1.tar.gz) caches at my temp server. Because I behind the GreatFireWall and can not link to Google. But it was surly from Google.

My OpenBTS is working correctly but can't make call

I registered IMSI to caller ID by using
$sudo ./nmcli.py sipauthserve subscribers create Yondko IMSI206018827546392 \ 99992299
And Asterisk CLI shows me those messages


Spawn extension (to-pstn, h, 2) exited non-zero on 'SIP/00101100010-0000000e'
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [99991199@from-openBTS:1] Set("SIP/00101100010-0000000f", "CDR(B-Number)=99991199") in new stack
    -- Executing [99991199@from-openBTS:2] Set("SIP/00101100010-0000000f", "CDR(A-IMSI)=IMSI206018827546392") in new stack
    -- Executing [99991199@from-openBTS:3] Set("SIP/00101100010-0000000f", "CDR(A-Name)=") in new stack
[2017-05-30 05:53:40.059] WARNING[8077][C-0000000f]: func_odbc.c:191 generic_execute: SQL Execute returned an error -1: HY000: [SQLite]unable to open database file (14) (41)
[2017-05-30 05:53:40.059] WARNING[8077][C-0000000f]: func_odbc.c:199 generic_execute: SQL Exec Direct failed (-1)![select callerid from sip_buddies where username="IMSI206018827546392"]
[2017-05-30 05:53:40.059] WARNING[8077][C-0000000f]: res_odbc.c:608 ast_odbc_direct_execute: SQL Execute error! Verifying connection to asterisk [asterisk]...
[2017-05-30 05:53:40.059] WARNING[8077][C-0000000f]: func_odbc.c:191 generic_execute: SQL Execute returned an error -1: HY000: [SQLite]unable to open database file (14) (41)
[2017-05-30 05:53:40.059] WARNING[8077][C-0000000f]: func_odbc.c:199 generic_execute: SQL Exec Direct failed (-1)![select callerid from sip_buddies where username="IMSI206018827546392"]
[2017-05-30 05:53:40.059] ERROR[8077][C-0000000f]: func_odbc.c:538 acf_odbc_read: Unable to execute query [select callerid from sip_buddies where username="IMSI206018827546392"]
    -- Executing [99991199@from-openBTS:4] Set("SIP/00101100010-0000000f", "CDR(A-Number)=") in new stack
    -- Executing [99991199@from-openBTS:5] ExecIf("SIP/00101100010-0000000f", "1?Set(CDR(A-Number)=IMSI206018827546392):Set(CALLERID(num)=)") in new stack
    -- Executing [99991199@from-openBTS:6] GotoIf("SIP/00101100010-0000000f", "0?emergency,911,1") in new stack
    -- Executing [99991199@from-openBTS:7] GotoIf("SIP/00101100010-0000000f", "0?default,99991199,1") in new stack
    -- Executing [99991199@from-openBTS:8] Goto("SIP/00101100010-0000000f", "phones,99991199,1") in new stack
    -- Goto (phones,99991199,1)
[2017-05-30 05:53:40.060] WARNING[8077][C-0000000f]: func_odbc.c:191 generic_execute: SQL Execute returned an error -1: HY000: [SQLite]unable to open database file (14) (41)
[2017-05-30 05:53:40.060] WARNING[8077][C-0000000f]: func_odbc.c:199 generic_execute: SQL Exec Direct failed (-1)![select dial from dialdata_table where exten="99991199"]
[2017-05-30 05:53:40.060] WARNING[8077][C-0000000f]: res_odbc.c:608 ast_odbc_direct_execute: SQL Execute error! Verifying connection to asterisk [asterisk]...
[2017-05-30 05:53:40.060] WARNING[8077][C-0000000f]: func_odbc.c:191 generic_execute: SQL Execute returned an error -1: HY000: [SQLite]unable to open database file (14) (41)
[2017-05-30 05:53:40.060] WARNING[8077][C-0000000f]: func_odbc.c:199 generic_execute: SQL Exec Direct failed (-1)![select dial from dialdata_table where exten="99991199"]
[2017-05-30 05:53:40.060] ERROR[8077][C-0000000f]: func_odbc.c:538 acf_odbc_read: Unable to execute query [select dial from dialdata_table where exten="99991199"]
    -- Executing [99991199@phones:1] Set("SIP/00101100010-0000000f", "CDR(B-IMSI)=") in new stack
    -- Executing [99991199@phones:2] GotoIf("SIP/00101100010-0000000f", "0?B-IPAddr") in new stack
    -- Executing [99991199@phones:3] Gosub("SIP/00101100010-0000000f", "to-e164,99991199,1") in new stack
    -- Executing [99991199@to-e164:1] Return("SIP/00101100010-0000000f", "99991199") in new stack
    -- Executing [99991199@phones:4] Set("SIP/00101100010-0000000f", "CDR(B-Number)=99991199") in new stack
[2017-05-30 05:53:40.061] WARNING[8077][C-0000000f]: func_odbc.c:191 generic_execute: SQL Execute returned an error -1: HY000: [SQLite]unable to open database file (14) (41)
[2017-05-30 05:53:40.061] WARNING[8077][C-0000000f]: func_odbc.c:199 generic_execute: SQL Exec Direct failed (-1)![select dial from dialdata_table where exten="99991199"]
[2017-05-30 05:53:40.061] WARNING[8077][C-0000000f]: res_odbc.c:608 ast_odbc_direct_execute: SQL Execute error! Verifying connection to asterisk [asterisk]...
[2017-05-30 05:53:40.062] WARNING[8077][C-0000000f]: func_odbc.c:191 generic_execute: SQL Execute returned an error -1: HY000: [SQLite]unable to open database file (14) (41)
[2017-05-30 05:53:40.062] WARNING[8077][C-0000000f]: func_odbc.c:199 generic_execute: SQL Exec Direct failed (-1)![select dial from dialdata_table where exten="99991199"]
[2017-05-30 05:53:40.062] ERROR[8077][C-0000000f]: func_odbc.c:538 acf_odbc_read: Unable to execute query [select dial from dialdata_table where exten="99991199"]
    -- Executing [99991199@phones:5] Set("SIP/00101100010-0000000f", "CDR(B-IMSI)=") in new stack
    -- Executing [99991199@phones:6] GotoIf("SIP/00101100010-0000000f", "1?to-pstn,99991199,1") in new stack
    -- Goto (to-pstn,99991199,1)
    -- Executing [99991199@to-pstn:1] Set("SIP/00101100010-0000000f", "CDR(hangupdirection)=A") in new stack
    -- Executing [99991199@to-pstn:2] Gosub("SIP/00101100010-0000000f", "CallLimit,s,1(IMSI206018827546392,99991199)") in new stack
    -- Executing [s@CallLimit:1] GotoIf("SIP/00101100010-0000000f", "1?A-IMSI") in new stack
    -- Goto (CallLimit,s,4)
    -- Executing [s@CallLimit:4] ExecIf("SIP/00101100010-0000000f", "0?Return()") in new stack
    -- Executing [s@CallLimit:5] Set("SIP/00101100010-0000000f", "GROUP(A)=IMSI206018827546392") in new stack
    -- Executing [s@CallLimit:6] GotoIf("SIP/00101100010-0000000f", "0?VM") in new stack
    -- Executing [s@CallLimit:7] Return("SIP/00101100010-0000000f", "") in new stack
    -- Executing [99991199@to-pstn:3] Dial("SIP/00101100010-0000000f", "SIP/99991199@voipms-LosAngeles,3600,g") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
[2017-05-30 05:53:40.075] ERROR[8077][C-0000000f]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("voipms-LosAngeles", "(null)", ...): Name or service not known
[2017-05-30 05:53:40.075] WARNING[8077][C-0000000f]: chan_sip.c:6202 create_addr: No such host: voipms-LosAngeles
[2017-05-30 05:53:40.075] WARNING[8077][C-0000000f]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [99991199@to-pstn:4] Set("SIP/00101100010-0000000f", "CDR(hangupdirection)=SYSTEM") in new stack
    -- Executing [99991199@to-pstn:5] GotoIf("SIP/00101100010-0000000f", "1?:h-20,1") in new stack
    -- Executing [99991199@to-pstn:6] Dial("SIP/00101100010-0000000f", "SIP/99991199@voipms-Seattle,3600,g") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
[2017-05-30 05:53:40.089] ERROR[8077][C-0000000f]: netsock2.c:269 ast_sockaddr_resolve: getaddrinfo("voipms-Seattle", "(null)", ...): Name or service not known
[2017-05-30 05:53:40.089] WARNING[8077][C-0000000f]: chan_sip.c:6202 create_addr: No such host: voipms-Seattle
[2017-05-30 05:53:40.089] WARNING[8077][C-0000000f]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [99991199@to-pstn:7] Set("SIP/00101100010-0000000f", "CDR(hangupdirection)=SYSTEM") in new stack
    -- Executing [99991199@to-pstn:8] Goto("SIP/00101100010-0000000f", "h-20,1") in new stack
    -- Goto (to-pstn,h-20,1)
    -- Executing [h-20@to-pstn:1] Progress("SIP/00101100010-0000000f", "") in new stack
    -- Executing [h-20@to-pstn:2] Playback("SIP/00101100010-0000000f", "AST_CAUSE_SUBSCRIBER_ABSENT,noanswer") in new stack
[2017-05-30 05:53:40.089] WARNING[8077][C-0000000f]: file.c:701 ast_openstream_full: File AST_CAUSE_SUBSCRIBER_ABSENT does not exist in any format
[2017-05-30 05:53:40.089] WARNING[8077][C-0000000f]: file.c:1017 ast_streamfile: Unable to open AST_CAUSE_SUBSCRIBER_ABSENT (format (gsm)): No such file or directory
[2017-05-30 05:53:40.089] WARNING[8077][C-0000000f]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/00101100010-0000000f for AST_CAUSE_SUBSCRIBER_ABSENT,noanswer
    -- Executing [h-20@to-pstn:3] Hangup("SIP/00101100010-0000000f", "20") in new stack
  == Spawn extension (to-pstn, h-20, 3) exited non-zero on 'SIP/00101100010-0000000f'
    -- Executing [h@to-pstn:1] Log("SIP/00101100010-0000000f", "NOTICE,A-Number=IMSI206018827546392 A-Name= A-IMSI=IMSI206018827546392 B-Number=99991199 B-Name= B-IMSI= hangupcause=20 dialstatus=CHANUNAVAIL hangupdirection=SYSTEM duration=0 billsec=0") in new stack
[2017-05-30 05:53:40.089] NOTICE[8077][C-0000000f]: Ext. h:1 @ to-pstn: A-Number=IMSI206018827546392 A-Name= A-IMSI=IMSI206018827546392 B-Number=99991199 B-Name= B-IMSI= hangupcause=20 dialstatus=CHANUNAVAIL hangupdirection=SYSTEM duration=0 billsec=0
    -- Executing [h@to-pstn:2] Hangup("SIP/00101100010-0000000f", "") in new stack
  == Spawn extension (to-pstn, h, 2) exited non-zero on 'SIP/00101100010-0000000f'

Help me guys

Error Installing on Ubuntu 14.04

Not working on Ubuntu 14.04.
deb files of all component are made in build directory but when i tried to install errors comes out
sudo dpkg -i BUILD-2014-04-27--19-53-08/*.deb
(Reading database ... 247888 files and directories currently installed.)
Preparing to unpack .../liba53_0.1_amd64.deb ...
Unpacking liba53 (0.1) over (0.1) ...
Preparing to unpack .../libcoredumper1_1.2.1-1_amd64.deb ...
Unpacking libcoredumper1 (1.2.1-1) over (1.2.1-1) ...
Preparing to unpack .../libcoredumper-dev_1.2.1-1_amd64.deb ...
Unpacking libcoredumper-dev (1.2.1-1) over (1.2.1-1) ...
Preparing to unpack .../openbts_4.1_amd64.deb ...
Unpacking openbts (4.1) over (4.1) ...
Preparing to unpack .../range-asterisk_11.7.0.4_amd64.deb ...
Unpacking range-asterisk (11.7.0.4) over (11.7.0.4) ...
Preparing to unpack .../range-asterisk-config_4.1_amd64.deb ...
Unpacking range-asterisk-config (4.1) over (4.1) ...
Selecting previously unselected package range-configs.
Preparing to unpack .../range-configs_4.1_amd64.deb ...
Unpacking range-configs (4.1) ...
Preparing to unpack .../range-libsqliteodbc_0.995-2_amd64.deb ...
SQLITE has been deleted (if it existed at all) because its usage count became zero
SQLITE3 has been deleted (if it existed at all) because its usage count became zero
Unpacking range-libsqliteodbc (0.995-2) over (0.995-2) ...
Preparing to unpack .../range-libzmq_3.2.2.3_amd64.deb ...
Unpacking range-libzmq (3.2.2.3) over (3.2.2.3) ...
Preparing to unpack .../sipauthserve_4.1_amd64.deb ...
Unpacking sipauthserve (4.1) over (4.1) ...
Preparing to unpack .../smqueue_4.1_amd64.deb ...
Unpacking smqueue (4.1) over (4.1) ...
Setting up liba53 (0.1) ...
Setting up libcoredumper1 (1.2.1-1) ...
Setting up libcoredumper-dev (1.2.1-1) ...
Setting up range-asterisk-config (4.1) ...
dpkg: dependency problems prevent configuration of range-configs:
range-configs depends on libapache2-mod-authnz-external; however:
Package libapache2-mod-authnz-external is not installed.
range-configs depends on pwauth; however:
Package pwauth is not installed.
range-configs depends on ntp; however:
Package ntp is not installed.
range-configs depends on bind9; however:
Package bind9 is not installed.

dpkg: error processing package range-configs (--install):
dependency problems - leaving unconfigured
Setting up range-libsqliteodbc (0.995-2) ...
odbcinst: Driver installed. Usage count increased to 1.
Target directory is /etc
odbcinst: Driver installed. Usage count increased to 1.
Target directory is /etc
Setting up range-libzmq (3.2.2.3) ...
Setting up sipauthserve (4.1) ...
Setting up smqueue (4.1) ...
Setting up openbts (4.1) ...
chown: invalid user: ‘openbts:openbts’
chown: invalid user: ‘openbts:openbts’
chown: invalid user: ‘openbts:openbts’
chown: invalid user: ‘openbts:openbts’
Setting up range-asterisk (11.7.0.4) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
range-configs

Can't open lib '/usr/lib/odbc/libsqlite3odbc.so' : file not found

I cann`t make call in the OpenBTS network and in the OpenBTS(Asterisk) logs I get next message
---Can't open lib '/usr/lib/odbc/libsqlite3odbc.so' : file not found

When I want to send SMS in my network I get the next messages on my phone:
---Can`t send your SMS to ******: Phone not registered here.:

How I can fix this errors?

Problems with ./build.sh

When I put the command ./buld.sh N210 always ends in a error because some packages can not be installed. I have tried with 4 different operating systems i386 but I can not fix the problem

Segmentation fault in 'lockerFile'?

Using Release 5.0.0-prealpha+41427ce363 CommonLibs:3ad343b97b P formal build date 2014-08-18T14:39:17:
Every few minutes openBTS crashes, gdb debugging information:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff2ae2700 (LWP 2359)]
Mutex::lock (this=this@entry=0x200000011) at Threads.cpp:142
142 if (lockerFile()) LOCKLOG(DEBUG,"lock unchecked");
(gdb)
(gdb) bt
#0 Mutex::lock (this=this@entry=0x200000011) at Threads.cpp:142
#1 0x00000000006a2750 in ScopedLock (wMutex=..., this=) at Threads.h:169
#2 Utils::RefCntBase::incRefCnt (this=0x200000009) at Utils.cpp:55
#3 0x00000000006352fa in rcInc (this=0x7ffff2adfb00) at ../CommonLibs/Utils.h:235
#4 RefCntPointer (other=..., this=0x7ffff2adfb00) at ../CommonLibs/Utils.h:241
#5 Control::MMContext::mmGetTran (this=0x7fffcc003030, ati=1) at L3MMLayer.cpp:812
#6 0x00000000006371e5 in Control::MMContext::mmCheckTimers (this=this@entry=0x7fffcc003030) at L3MMLayer.cpp:295
#7 0x00000000006246db in Control::checkemMessages (dcch=dcch@entry=0x9bf070, delay=delay@entry=100) at L3StateMachine.cpp:806
#8 0x0000000000628972 in L3SDCCHLoop (dcch=0x9bf070) at L3StateMachine.cpp:970
#9 Control::L3DCCHLoop (dcch=dcch@entry=0x9bf070, frame=frame@entry=0x7fffc0000930) at L3StateMachine.cpp:1001
#10 0x000000000065a877 in Control::DCCHDispatcher (DCCH=0x9bf070) at DCCHDispatch.cpp:56
#11 0x00007ffff7bc4182 in start_thread (arg=0x7ffff2ae2700) at pthread_create.c:312
#12 0x00007ffff658d38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Corefile analysis shows:
Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x91615f70:
(note that this is from a different crash)

recipe for target 'install-arch' failed

Hello,
First off I am trying to get openBTS installed on an I7-4700MQ, Ubuntu 16.04, 64-bit system, please let me know if I need to add any other machine specifics.

Next, I keep received this error when trying to build for the N210 (please see attached screen shot)

error

I tried ./pull.sh and it says everything is up to date

I know other people have successfully used openBTS with ubuntu 16.04 before so I don't understand why it won't build. Please let me know what I can try, Thank you.

NodeManager.cpp:(.text+0x1967): undefined reference to `zmq_msg_send' - build error

Hi,

I'm trying to build the master branch of openbts. The build fails with the following messages

In file included from BitVector.h:29:0,
from BitVectorTest.cpp:30:
Vector.h: In member function ‘void VectorBase::resize(size_t) [with T = char, size_t = long unsigned int]’:
Vector.h:197:3: instantiated from ‘void VectorBase::clone(const VectorBase&) [with T = char]’
BitVector.h:132:21: instantiated from here
Vector.h:186:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat]
Vector.h: In member function ‘void VectorBase::resize(size_t) [with T = float, size_t = long unsigned int]’:
Vector.h:326:27: instantiated from ‘Vector::Vector(size_t) [with T = float, size_t = long unsigned int]’
BitVector.h:331:48: instantiated from here
Vector.h:186:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat]
In file included from VectorTest.cpp:28:0:
Vector.h: In member function ‘void VectorBase::resize(size_t) [with T = int, size_t = long unsigned int]’:
Vector.h:326:27: instantiated from ‘Vector::Vector(size_t) [with T = int, size_t = long unsigned int]’
VectorTest.cpp:46:18: instantiated from here
Vector.h:186:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat]
NodeManager.cpp:83:14: warning: 'void* eventsLoop(void*)' defined but not used [-Wunused-function]
../NodeManager/.libs/libnodemanager.a(NodeManager.o): In function NodeManager::readRequest()': NodeManager.cpp:(.text+0x17ea): undefined reference tozmq_msg_recv'
../NodeManager/.libs/libnodemanager.a(NodeManager.o): In function NodeManager::writeResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': NodeManager.cpp:(.text+0x1967): undefined reference tozmq_msg_send'
sipauthserve-sipauthserve.o: In function zmq::context_t::context_t(int)': sipauthserve.cpp:(.text._ZN3zmq9context_tC2Ei[_ZN3zmq9context_tC5Ei]+0x13): undefined reference tozmq_ctx_new'
sipauthserve.cpp:(.text._ZN3zmq9context_tC2Ei[_ZN3zmq9context_tC5Ei]+0x6a): undefined reference to zmq_ctx_set' sipauthserve-sipauthserve.o: In functionzmq::context_t::close()':
sipauthserve.cpp:(.text._ZN3zmq9context_t5closeEv[zmq::context_t::close()]+0x23): undefined reference to `zmq_ctx_destroy'

I've installed all the required dependencies mentioned in
http://wush.net/trac/rangepublic/wiki/BuildInstallRun
http://sourceforge.net/p/openbts/mailman/message/32179506/

But the problem persists. Im using an AMD64 with Ubuntu 12.04.4 which is the supported OS. Im looking for some urgent help, sorry if this is the wrong platform.

Thanks,

Kashyap

Upstart replaced with Sysd on Ubuntu

Hello,

As of Ubuntu 15.04, Ubuntu has permanently switched to sysd from upstart. This change has not yet been incorporated in dev. The only option is to start Ubuntu in Upstart mode from GRUB. There are four upstart scripts: sipauthserve, smqueue, openbts and asterisk. Can they please be converted to sysd?

No voice calls (openbts-asterisk)

I don't know if this is the right place to post an issue, as is asterisk related.
So, everything works(sms, voice echo tests), except for voice calls between 2 registered phone-numbers.

I have the same problem as this user, and I am using the latest versions available:
call-not-placed-on-asterisk-using-openbts
Already did an append to sip.conf and extensions.conf with my current setup.

Any suggestions? Where can I find the error log for asterisk?

build.sh won't automatically install required packages if dependancies are found

The following function will throw a "Are you sure?" message if any of the components have dependancies. (Although I haven't tested this!!)

installIfMissing () {
    dpkg -s $@ > /dev/null
    if [ $? -ne 0 ]; then
        echo "# - missing $@, installing dependency"
        sudo apt-get install $@
    fi
}

Suggest the following

installIfMissing () {
    dpkg -s $@ > /dev/null
    if [ $? -ne 0 ]; then
        echo "# - missing $@, installing dependency"
        sudo apt-get install $@ -y
    fi
}

Need some help!. I'm having problem on creating dial plan to make call.

I cloned and built this version of openbts and my mobile phone could find and connected to the network correctly. But I have no idea on creating dial plan in extensions.conf or sip.conf. Also the server sent back the imsi code to my phone and I need to register that imsi in my openbts. Need some help on it.

OpenBTS doesn't start!!

Hi evryone,
i installed OpenBTS according to this tuto http://openbts.org/w/index.php?title=BuildInstallRun; but when i run the openbts by ./OpbenBTS command from apps directory i have got this erros:

Starting the system... ALERT 4659:4666 2017-02-08T09:54:06.6 OpenBTS.cpp:174:startTransceiver: starting transceiver ./transceiver with 1 ARFCNs EMERG 4659:4666 2017-02-08T09:54:06.7 OpenBTS.cpp:185:startTransceiver: Transceiver quit with status 256. Exiting.

I checked if there any transceiver process but i don't find anyone, then i ran a transceiver manualy by ./transceiver command, i have got no error and no process!!

any helps plz?

64-bit Development Environment Setup Instructions

All instructions and scripts are targeting 32-bit systems. This is because some software components have known issues compiling or running in 64-bit environments.

Chicken and egg. To solve those 64-bit issues we'll need a nice environment and easy setup.

factory status messages should be INFO level, not ALERT

ALERT 3073984256 15:30:09.0 TRXManager.cpp:595:getFactoryCalibration: READFACTORY failed with status 1

This is a harmless message and should be turned from an alert into an info message. On the RAD1, the factory calibration can be read out and is visible in OpenBTS. This message is simply saying that this radio type does not support the READFACTORY command.

Troubleshooting FAQ and "how to ask for help"

Most requests come in with very little useful information. A section needs to be added to the wiki with the most basic troubleshooting techniques and another about how to ask for help. Off the top of my head questions need submitted with:

  • os
  • radio hardware
  • package or source install
  • possibly "audit" output

Actually, a script could be written which gathers this automatically.

Issue while starting the installed components

Hey ,

I have just finished installing openbts v5 and components in ubuntu 16.04 LTS (64 bit). While installing range-configs, I answered yes for everything. Now when i start the services i get the following error:

start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused**

As mentioned in the guide , I switched to master branch and then build for N200. I faced some difficulties in the build script however the issues are resolved and components are installed now. I have learned about systemctl but don't know how it will work. Will it be sudo systemctl start openbts? but this doesn't work. It will be great help if you guide me about this error.

document how to switch Upstart services into manual mode

By default all services are set to start upon boot. This might not be desirable. This documentation task should be taken care of when we release the 4.0.0 manual. Hopefully early next week. For now though…

replace "$component" with openbts, smqueue, sipauthserve or asterisk

  • to switch a service into manual mode:
sudo echo "manual" > /etc/init/$component.override
  • and to switch it back to automatic mode:
sudo rm /etc/init/$component.override

Installation Error on VM windows 8

The output of build.sh shows error ,
After that

$ sudo start sipauthserve
$ sudo start smqueue

worked fine

But for services

sudo start openbts
$ sudo start asterisk

It shows unknown job: openbts
It shows unknown job: asterisk respectively

If any one can help.

Thanks

Need some help on building openbts ASAP.

I'm trying to build openbts and make the whole things correctly until $ ./build . But when I do this, I'm taking the error which is below. /home/vanchinbal/dev/openbts/Transceiver52M/UHDDevice.cpp:667: undefined reference to `uhd::msg::register_handler(void (* const&)(uhd::msg::type_t, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&))'
collect2: error: ld returned 1 exit status
Makefile:606: recipe for target 'transceiver' failed
make[3]: *** [transceiver] Error 1
make[3]: Leaving directory '/home/vanchinbal/dev/openbts/Transceiver52M'
Makefile:572: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/vanchinbal/dev/openbts'
Makefile:503: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/vanchinbal/dev/openbts'
debian/rules:74: recipe for target 'install-arch' failed
make: *** [install-arch] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2

ERROR: command failed!

How to solve this?

coredumper no longer on Google Code server

Hello,

A libcoredumper folder is generated by the build script which has its own build.sh inside it. This build.sh tries to fetch coredumper-$VERSION.tar.gz from googlecode.com:

sayAndDo wget http://google-coredumper.googlecode.com/files/coredumper-$VERSION.tar.gz

(line 28 of build.sh)

Unfortunately, coredumper is no longer housed on this server. I had to manually download this file and place it in the libcoredumper folder, commenting out this line. Please fix it in future releases.

clone.sh requires special permissions

Running clone.sh when you have no github account or no special permission results in the following command being executed:

$ git clone [email protected]:RangeNetworks/asterisk.git
Cloning into 'asterisk'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

The solution could be change the script to clone over HTTP. Alternatively the permissions of the repositories could be changed.

path for cli socket should be less specific

The current path used by default is /var/run/OpenBTS. That's much too specific and should be changed to just /var/run. This was the case in an earlier commit but was reverted by yours truly like a fool.

The workaround for now:

stop openbts from running
stop openbtscli from running
$ sudo mkdir /var/run/OpenBTS
start openbts
start openbtscli

openbts make fail

Hello, I am trying to build openbts 5.0 on a debian based distro. The build fails when "make all" is sent for openbts package (everything else builds fine)
Looks like g++ cannot convert ‘os’ type in some files. (gcc version (4:6.3.0-4),
Linux kali 4.9.0-kali3-amd64 # 1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux)

Here is a partial log.

...
In file included from /usr/include/c++/6/istream:39:0,
from /usr/include/c++/6/sstream:38,
from ../CommonLibs/Logger.h:41,
from L3StateMachine.h:31,
from L3StateMachine.cpp:19:
om ../CommonLibs/Logger.h:41,
from L3StateMachine.h:31,
from L3StateMachine.cpp:19:
/usr/include/c++/6/ostream:497:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
^~~~~~~~
/usr/include/c++/6/ostream:497:5: note: template argument deduction/substitution failed:
L3StateMachine.cpp:92:22: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘std::__cxx11::basic_ostringstream’)
Log(level).get() <<os <<" Unexpected"<<LOGHEX(state);
^~
In file included from /usr/include/c++/6/bits/ios_base.h:46:0,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from ../CommonLibs/Logger.h:41,
from L3StateMachine.h:31,
from L3StateMachine.cpp:19:
/usr/include/c++/6/system_error:209:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
^~~~~~~~
/usr/include/c++/6/system_error:209:5: note: template argument deduction/substitution failed:
L3StateMachine.cpp:92:22: note: cannot convert ‘os’ (type ‘std::ostringstream {aka std::__cxx11::basic_ostringstream}’) to type ‘const std::error_code&’
Log(level).get() <<os <<" Unexpected"<<LOGHEX(state);
^~
In file included from /usr/include/c++/6/string:52:0,
from /usr/include/c++/6/stdexcept:39,
from /usr/include/c++/6/array:39,
from /usr/include/c++/6/tuple:39,
from /usr/include/c++/6/bits/stl_map.h:63,
from /usr/include/c++/6/map:61,
from L3StateMachine.h:29,
from L3StateMachine.cpp:19:
/usr/include/c++/6/bits/basic_string.h:5340:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/include/c++/6/bits/basic_string.h:5340:5: note: template argument deduction/substitution failed:
L3StateMachine.cpp:92:22: note: ‘std::ostringstream {aka std::__cxx11::basic_ostringstream}’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
Log(level).get() <<os <<" Unexpected"<<LOGHEX(state);
^~
Makefile:568: recipe for target 'L3StateMachine.lo' failed
make[2]: *** [L3StateMachine.lo] Error 1
make[2]: Leaving directory '/root/Desktop/PwN/dev/openbts/Control'
Makefile:572: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/Desktop/PwN/dev/openbts'
Makefile:503: recipe for target 'all' failed
make: *** [all] Error 2

libsqliteodbc fails to build

gpg: WARNING: unsafe ownership on configuration file `/home/a/.gnupg/gpg.conf'
gpg: skipped "Christian Werner <[email protected]>": secret key not available
gpg: [stdin]: clearsign failed: secret key not available

 dpkg-genchanges  >../range-libsqliteodbc_0.995-2_i386.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build sqliteodbc-0.995
dpkg-buildpackage: full upload; Debian-native package (full source is included)
dpkg-buildpackage: warning: Failed to sign .dsc and .changes file
ERROR: command failed!
# ERROR: command failed!

Config database issues (minor, not critical at all)

Hi,

latest 5.0 with todays date, giving an "audit" on OpenBTS-cli sends this reply:

OpenBTS> audit
+---------------------------------------------------------------------+
| ERROR : Invalid Values [key current-value (default)] |
| To use the default value again, execute: rmconfig key |
+---------------------------------------------------------------------+
Control.LUR.FailMode "ACCEPT" ("ACCEPT")
GSM.CCCH.BS_AG_BLKS_RES "auto" ("auto")
GSM.CCCH.BS_PA_MFRMS "2" ("2")
GSM.CallerID.Source "auto" ("auto")
NodeManager.API.PhysicalStatus "disabled" ("disabled")
SMS.MIMEType "application/vnd.3gpp.sms" ("application/vnd.3gpp.sms")

rmconfig does not restore an error-free default, although the default already is set, so I assume this must be some minor bug in the config database handling.

With best regards

Ralph.

Fix code issues in 4.0 branch when using newer compilers

Example of the error. A simple change to "this->vConcat" is needed.

g++ -DHAVE_CONFIG_H -I. -I..  -D'REPO_REV="fa6e45cead
CommonLibs:abec8dabb6"' -I../CommonLibs -I../Globals -I../NodeManager
-I../NodeManager/JsonBox-0.4.3/include -I../NodeManager/JSONDB -
I../sqlite3
-Wall -O3 -g -ldl -lpthread -g -O2 -MT VectorTest.o -MD -MP -MF
.deps/VectorTest.Tpo -c -o VectorTest.o VectorTest.cpp
In file included from VectorTest.cpp:28:0:
Vector.h: In instantiation of 'Vector<T>::Vector(const Vector<T>&, const
Vector<T>&) [with T = int]':
VectorTest.cpp:69:31:   required from here
Vector.h:343:24: error: 'vConcat' was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
  vConcat(other1,other2);
                       ^
Vector.h:343:24: note: declarations in dependent base 'VectorBase<int>'
are
not found by unqualified lookup
Vector.h:343:24: note: use 'this->vConcat' instead

Control.LUR.FailedRegistration.ShortCode is not disableable

The handbook references this parameter as a way to disable sending "registration failed" messages to handsets. The parameter's schema, however, does not allow it to be disabled.

Disabling this parameter will accomplish the same thing though: Control.LUR.FailedRegistration.Message

The handbook and/or schema need updating.

Ubuntu 14.04 - error at build

Hello,

I get this error when I try to build on Ubuntu 14.04 - it seems it appears after the changes for Ubuntu 16.04 :)

checking build dependencies

dpkg-query: package 'libzmq5' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

- missing libzmq5, installing dependency

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libzmq5 : Depends: libsodium13 (>= 0.6.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

- ERROR : libzmq5 package was unable to be installed

Thank you,
Ruxandra

Try to conect to openbts network range and I fail

Hi,I never use till now osi linux and it's very dificul for me to set up ubuntu but i manage ,the big issue it's with physical conection ! What tipe of console can be use to conect ubuntu with openbts ? I have usb ,rj45, and cisco console cable one side usb one side rj45 ? I can use putty to telnet openbts or I have to run a ubundu server with ssh conection? If its anyone there to help me to login in openbts I much appreciate !!! Thanks

gConfig.defines("Control.LUR.QueryIMEI") Bug ??

case stateHaveImsi:
{
if (ludata()->mFullQuery && gConfig.defines("Control.LUR.QueryIMEI") && ludata()->store.getImei().size() == 0) { return sendQuery(IMEIType); }
return machineRunState(stateHaveIds);
}

gConfig.defines 这句是不是应该为 gConfig.getBool

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.