> As I don't have access to a nanoBTS I never tried it, but you could take a
> look at Sylvain's chan_openbsc for Asterisk
> (http://github.com/smunaut/ast_chan_openbsc).
Yeah, that probably doesn't work anymore.
Yet another thing I must finish. But that's pretty low on my list ...
Sylvain
Hello guys,
I want to change a nanoBTS's id, so I can control two BTSs each as a
seperate BTS (not as a seperate TRX).
But this is what I get:
$ ./ipaccess-config -u 1801/1/0 10.100.2.27
ipaccess-config (C) 2009-2010 by Harald Welte and others
This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY
Trying to connect to ip.access BTS ...
<0005> abis_nm.c:518 OC=SITE-MANAGER(00) INST=(ff,ff,ff) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07)
<0005> abis_nm.c:518 OC=BTS(01) INST=(00,ff,ff) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=BASEBAND-TRANSCEIVER(04) INST=(00,00,ff) STATE
CHG: OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
OML link established using TRX 0
setting Unit ID to '1801/1/0'
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,00) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,01) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,02) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,03) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,04) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,05) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,06) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=CHANNEL(03) INST=(00,00,07) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=RADIO-CARRIER(02) INST=(00,00,ff) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=GPRS-NSE(f0) INST=(00,ff,ff) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=GPRS-CELL(f1) INST=(00,00,ff) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=GPRS-NSVC(f2) INST=(00,00,ff) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=GPRS-NSVC(f2) INST=(00,01,ff) STATE CHG:
OP_STATE=Disabled AVAIL=Not installed(07) ADM=Locked
<0005> abis_nm.c:518 OC=BASEBAND-TRANSCEIVER(04) INST=(00,00,ff)
IPACCESS(0xf1): <0005> abis_nm.c:2757 SET NVATTR NACK CAUSE=Parameter
value outside permitted range
Failure to set attribute. This seems fatal
Is this familiar to you?
Thank you.
Hi, List!
I have now to connect OpenBSC with Asterisk, in order to use a
VoIP-phone to call mobiles (and viceversa).
I found this HowTo: http://openbsc.osmocom.org/trac/wiki/OpenBSC_LCR
Since I don't know Asterisk I'm not sure if it is what I really need...
In the HowTo 2 ISDN-Cards are used. Need I really these? I'm using a
nanoBTS (accessed over Ethernet), so I think I don't need the Cologne
Chips E1 PCI card. Is it right?
Then, at least as first step, I don't want to connect my Asterisk with
the rest of the world.
I really want to create my own test-network with a VoiIP-phone and a
couple of mobiles.
Do I really need a ISDN-card?
And last, but not least, (as I said, I don't know Asterisk!!), how can
I decide, that a number I choose from mobile or VoiIP-phone is a mobile
or a VoiIP-phone?
Maybe there is a running configuration of Asterisk I can use as example?
Thanks a lot for your help!
--
_______________________________________________________________________
Luca Bertoncello
Entwicklung Mail: bertoncello(a)netzing.de
NETZING Solutions AG Tel.: 0351/41381 - 0
Kesselsdorfer Str. 216, 01169 Dresden Fax: 0351/41381 - 12
HRB 18926 / Ust.ID DE211326547 Mail: netzing.ag(a)netzing.de
_______________________________________________________________________
As horiz0n on IRC points out:
00:16 <horiz0n> hehe, calling the c123 from my 9500 communicator crashes openbsc
00:17 <horiz0n> here is the log http://notepad.cc/share/LQ3awCtXz9
00:21 <horiz0n> and here the debug log http://notepad.cc/share/tPJYXo3SJG
<0000> abis_rsl.c:1388 (bts=0,trx=0,ts=1,ss=0) SAPI=0 DATA INDICATION
<0003> gsm_04_08.c:1109 CIPHERING MODE COMPLETE
<0003> gsm_04_08_utils.c:197 Sending Channel Release: Chan: Number: 0 Type: 2
<0004> abis_rsl.c:586 (bts=0,trx=0,ts=1,ss=0) DEACTivate SACCH CMD
<0000> chan_alloc.c:363 (bts=0,trx=0,ts=1,ss=0) Recycling Channel
<0000> abis_rsl.c:1388 (bts=0,trx=0,ts=1,ss=0) SAPI=0 DATA INDICATION
./runbsc.sh: line 6: 1179 Segmentation fault sudo ./bsc_hack -e 1 -d DINP:DNM:DRSL:DRR:DMM:DCC:DRLL:DMNCC:DSMS:DPAG,0:0:0
So what happens: We get a CM Service request, then go through authentication
and ciphering. At that point, the network decides to release the channel
and the channel is not completely closed yet (only SACCH deactivated) when
we get an incoming SETUP message.
This message is treated as a new message (msc_compl_l3, but it has no
conn->subscr and the code segfaults in trans_find_by_id(subscr=NULL, ...)
So I think there are actually multiple bugs.
1) the channel should not be released at that time
2) we have some kind of a race condition at channel release, where incoming
messages should either be discarded _or_ should still be processed with
all the data structures intact.
Cheers,
Harald
--
- Harald Welte <laforge(a)gnumonks.org> http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
Good news, everyone [tm]
GPRS is by now in a fairly useful state. I've spent the better part of the
last 3 days to fix all the remaining known bugs. It is working fine from
a variety of phones including a G1 (MSM7200) , K800i (unkown baseband), TYTN2
(also Qualcomm MSM but with windows mobile), E680 (Neptune LTE), ...
The following parts are still missing:
* Integration with the HLR, so every phone is accepted on GPRS
* IP Header compression (ROHC)
* Data compression (v.42bis)
* Authentication (depends on HLR integration)
* GEA3 Encryption (though most of the infrastructure is there)
* Ability to route APNs to different GGSNs
So everyone who has access to a nanoBTS: Try it now. The build/config
instructions haven't changed from what I described last time when I wrote
a GPRS status update to this list.
Happy hacking,
Harald
--
- Harald Welte <laforge(a)gnumonks.org> http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
-------- Original-Nachricht --------
> Datum: Wed, 30 Jun 2010 12:10:20 +0800
> Von: Holger Hans Peter Freyther <holger(a)freyther.de>
> An: openbsc(a)lists.gnumonks.org
> Betreff: Re: Segmentation fault while sending sms via bsc_hack_VTY
> >
> > thanks a lot for starting to debug this. Could you help me a bit with
> > your test setup? Which type of BTS do you use? Could you get us a pcap
> > file for the Channel Activate NACK?
Attached I have a pcap file from bsc_hack. It logged until the segmentation fault happened. Additionally, I have captured the bsc_hack output and valgrind output in the other file. There you also find the openbsc config file. Only bsc_hack was started, without lcr or openggsn for this testing.
We use two nanoBTS - ipaccess-find prints out:
MAC Address='00:02:95:00:2f:b7' IP Address='10.1.1.10' Unit ID='1802/0/0' Location 1='' Location 2='BTS_NBT131G' Equipment Version='165a029_48' Software Version='168c002_v100b16d0' Unit Name='nbts-00-02-95-00-2F-B7' Serial Number='00071355'
MAC Address='00:02:95:00:57:3e' IP Address='10.1.1.11' Unit ID='1800/0/0' Location 1='' Location 2='BTS_NBT131G' Equipment Version='165a029_55' Software Version='168a302_v142b13d0' Unit Name='nbts-00-02-95-00-57-3E' Serial Number='00107709'
Each BTS has its own part in the openbsc.cfg
>
> please confirm that both the SMS crash and the NACKs are resolved.
I loaded and built the current version from OpenBSC (Jun., 30. ~ 3:00 p.m.). SMS still crashes when sending from vty console.
As far as I can tell, the NACKs are resolved.
>
> thanks
thank you too!
Hi folks.
I am currently playing with the crypto features of openBSC. When i want
to enter the key for a specific subscriber in the VTY console openBSC
crashes.
When i create the entry manually with sqlite3 and try again the entry in
the database will be overwritten and it seems to work.
The string i entered in VTY was:
subscriber imsi 001010000000000 a3a8 comp128v1
DEADBEEF0C0FFEE0F00D013370D00F23
The gdb backtrace is:
openbsc@openBSC:~/openbsc/openbsc/src$ gdb -- pid 1612
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
pid: No such file or directory.
Attaching to process 1612
Reading symbols from /home/openbsc/openbsc/openbsc/src/bsc_hack...done.
Reading symbols from /usr/local/lib/libosmocore.so.0...done.
Loaded symbols for /usr/local/lib/libosmocore.so.0
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libdbi.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libdbi.so.0
Reading symbols from /usr/local/lib/libosmovty.so.0...done.
Loaded symbols for /usr/local/lib/libosmovty.so.0
Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...(no debugging
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /usr/lib/dbd/libdbdsqlite3.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/dbd/libdbdsqlite3.so
Reading symbols from /usr/lib/libsqlite3.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsqlite3.so.0
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging
symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
0x00c9d422 in __kernel_vsyscall ()
(gdb) continue
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x0046450b in vfprintf () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0x0046450b in vfprintf () from /lib/tls/i686/cmov/libc.so.6
#1 0x00484147 in vasprintf () from /lib/tls/i686/cmov/libc.so.6
#2 0x006b042f in dbi_conn_queryf () from /usr/lib/libdbi.so.0
#3 0x08054c05 in db_sync_authinfo_for_subscr (ainfo=0x579ff4,
subscr=0x994ec18) at db.c:413
#4 0x0805408e in ena_subscr_a3a8 (self=0x8089ee0, vty=0x99501f8,
argc=4, argv=0xbfc33f6c) at vty_interface_layer3.c:502
#5 0x00a74cfb in cmd_execute_command_real (vline=<value optimized out>,
vty=<value optimized out>, cmd=0x0)
at command.c:1874
#6 0x00a74e27 in cmd_execute_command (vline=0x994a5c0, vty=0x99501f8,
cmd=0x0, vtysh=0) at command.c:1909
#7 0x00a7766f in vty_command (vty=0x99501f8) at vty.c:321
#8 vty_execute (vty=0x99501f8) at vty.c:585
#9 vty_read (vty=0x99501f8) at vty.c:1319
#10 0x00a793aa in client_data (fd=0x99504d4, what=1) at
telnet_interface.c:128
#11 0x003b7925 in bsc_select_main (polling=0) at select.c:119
#12 0x0804bc66 in main (argc=3, argv=0xbfc34604) at bsc_hack.c:271
(gdb)
Maybe this helps to find the bug.
regards.
Philipp
--
______________________________________
Philipp Fabian Benedikt Maier
philipp.maier(a)runningserver.com
Funk: DO5DXT
http://www.runningserver.comhttp://www.diskettenschlitz.de
______________________________________