Closed peterm2109 closed 6 years ago
when I enter the command "sgsn list" I get this: OpenBTS> sgsn list GMM Context: imsi = 001010000000021 ptmsi = 0x34001 tlli = 0xc0034001 state = GmmDeregistered age = 0 idle = 702 MS = not_active IPs = none
solved the authentication ... the problem was that the command to add the IMSI numeric value must have before it the letters IMSI .. sorry
13:05.4 UL GMM Msg: AuthenticationAndCipheringFailure UE#1 URNTI=e9aa stCELL_FACH im50000000005
I also did it like you, but still can't register, there will always be registration failure information as above, have you modified other places?
following all the steps to authenticate a user in the network:
./nmcli.py sipauthserve subscribers create Magic 001010000000021 1001 1108306A830921B09469C910226DCAFE
raw request: {"command":"subscribers","action":"create","fields":{"name":"Magic","imsi":"001010000000021","msisdn":"1001","ki":"1108306A830921B09469C910226DCAFE"}} raw response: { "code" : 200, "data" : "both ok"
then I try to read:
./nmcli.py sipauthserve subscribers read
raw request: {"command":"subscribers","action":"read","key":"","value":""} raw response: { "code" : 200, "data" : [ { "imsi" : "001010000000021", "msisdn" : "1001", "name" : "Magic" } up here all right... both the OPENBTS application and sipauthserve run without errors:
./sipauthserve
ALERT 18737:18737 2018-03-28T16:19:16.4 sipauthserve.cpp:328:main: ./sipauthserve (re)starting
./OpenBTS-UMTS
1522275524.722422 139752963340160:
OpenBTS, OpenBTS-UMTS Copyright 2008, 2009, 2010 Free Software Foundation, Inc. Copyright 2010 Kestrel Signal Processing, Inc. Copyright 2011, 2012, 2013, 2014 Range Networks, Inc. Release 1.0-master P formal build date 2018-03-28T15:16:02 d528034ac8 CommonLibs:d528034ac8 "OpenBTS" is a trademark of Range Networks, Inc. "OpenBTS-UMTS" is a trademark of Range Networks, Inc.
Contributors: Range Networks, Inc.: David Burgess, Harvind Samra, Donald Kirker, Doug Brown, Pat Thompson, Michael Iedema Kestrel Signal Processing, Inc.: David Burgess, Harvind Samra, Raffi Sevlian, Roshan Baliga GNU Radio: Johnathan Corgan Others: Anne Kwong, Jacob Appelbaum, Joshua Lackey, Alon Levy Alexander Chemeris, Alberto Escudero-Pascual Incorporated GPL libraries and components: libosip2 (LGPL), liportp2 (LGPL)
This program comes with ABSOLUTELY NO WARRANTY.
Use of this software may be subject to other legal restrictions, including patent licsensing and radio spectrum licensing. All users of this software are expected to comply with applicable regulations and laws. See the LEGAL file in the source code for more information.
ALERT 139752963340160 16:18:44.9 OpenBTS-UMTS.cpp:166:main: OpenBTS-UMTS (re)starting, ver 1.0-master build date Mar 28 2018 1522275524.923600 139752963340160: Starting the system... TBSIZE: 260 RACH radioFrameSize=1200 total=1200 tbsize=256 TBSIZE: 360 FACH SF=64 radioFrameSize=1080 total=1080 tbsize=360
TBSIZE: 260 RACH radioFrameSize=1200 total=1200 tbsize=256 TBSIZE: 360 FACH SF=64 radioFrameSize=1080 total=1080 tbsize=360
RACH TFS: mPresent=2 mMaxTfSize=0 mMaxTbSize=0 multiplexed=1 mTTI=10 mTypeOfChannelCoding=2 mRateMatchingAttribute=256 mCRCSize=16 TF( mTBSize=256 mNumTB=1) TF( mTBSize=256 mNumTB=2) FACH TFS: mPresent=2 mMaxTfSize=0 mMaxTbSize=0 multiplexed=1 mTTI=10 mTypeOfChannelCoding=2 mRateMatchingAttribute=256 mCRCSize=12 TF( mTBSize=360 mNumTB=0) TF( mTBSize=360 mNumTB=1) chReserve(64,2) ALERT 139752963340160 16:18:44.9 UMTSPhCh.cpp:654:chConflict: Attempt to reserve channel: sf=64 chcode=2 which conflicts with reserved channel: sf=32 chcode=1 chReserve(256,2) ALERT 139752963340160 16:18:44.9 UMTSPhCh.cpp:654:chConflict: Attempt to reserve channel: sf=256 chcode=2 which conflicts with reserved channel: sf=128 chcode=1 chReserve(64,3) ALERT 139752963340160 16:18:44.9 UMTSPhCh.cpp:654:chConflict: Attempt to reserve channel: sf=64 chcode=3 which conflicts with reserved channel: sf=32 chcode=1 chReserve(256,4) ALERT 139752963340160 16:18:44.9 UMTSPhCh.cpp:654:chConflict: Attempt to reserve channel: sf=256 chcode=4 which conflicts with reserved channel: sf=128 chcode=2 chReserve(64,2) ALERT 139752963340160 16:18:44.9 UMTSPhCh.cpp:654:chConflict: Attempt to reserve channel: sf=64 chcode=2 which conflicts with reserved channel: sf=32 chcode=1 Dumping SIB5... SysInfoType5 ::= { sib6indicator: FALSE pich-PowerOffset: -10 modeSpecificInfo: fdd ::= { aich-PowerOffset: -10 } primaryCCPCH-Info: fdd ::= { tx-DiversityIndicator: FALSE } prach-SystemInformationList: PRACH-SystemInformationList ::= { PRACH-SystemInformation ::= { prach-RACH-Info: PRACH-RACH-Info ::= { modeSpecificInfo: fdd ::= { availableSignatures: 20 00 availableSF: 0 (sfpr32) preambleScramblingCodeWordNumber: 0 puncturingLimit: 15 (pl1) availableSubChannelNumbers: 00 20 } } transportChannelIdentity: 3 rach-TransportFormatSet: CommonTransChTFS ::= { tti: CommonDynamicTF-InfoList ::= { CommonDynamicTF-Info ::= { rlc-Size: fdd ::= { octetModeRLC-SizeInfoType2: 26 } numberOfTbSizeList: numberOfTbSizeList ::= {