Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - John

Pages: [1]
1
Yate bugs / SIP Registration Error
« on: March 21, 2019, 09:48:34 AM »
Hello there,

i have a working yate / yatebts configuration in nipc mode.
the version is: Yate 6.1.1 devel1 r6325
I can call and send message inside network.
Now i'd like to make call outside the network and possibly have incoming connection.

If I setup a connection with SIP provider and with a VOIP software it's work like sharm,
but when i try to use my yate i got this error:

Code: [Select]
<sip:WARN> SIP line 'outbound' logon timeout

my accfile is:
Code: [Select]
[outbound]
enabled=yes
protocol=sip
number=6xxxxx
username=6xxxxx
authname=6xxxxx
password=kxxxxxxxxxxx
registrar=sip.zadarma.com
domain=sip.zadarma.com
interval=120

my regexroute.conf
Code: [Select]
^.*$=line/\0;line=outbound

debug message: debug sip level 10
Code: [Select]
2019-03-21_16:22:16.511155 <sip:INFO> 'udp:0.0.0.0:5060' sending 'REGISTER sip:sip.zadarma.com' 0x7f30bc01d800 to 185.45.152.174:5060 [0x55f52e2b5f60]
------
REGISTER sip:sip.zadarma.com SIP/2.0
Contact: <sip:6xxxxxxxx@192.168.100.4:5060>
Expires: 120
To: <sip:6xxxxxxxx@sip.zadarma.com>
Call-ID: 1604500942@sip.zadarma.com
Via: SIP/2.0/UDP 192.168.100.4:5060;rport;branch=z9hG4bK1517351562
From: <sip:6xxxxxx@sip.zadarma.com>;tag=1838966968
CSeq: 22 REGISTER
User-Agent: YATE/6.1.1
Max-Forwards: 70
Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO
Content-Length: 0



or with second provider 'messagenet' i have the same result
accfile:
Code: [Select]
[outbound]
protocol=sip
username=1xxxxxx
server=sip.messagenet.it:5061
password=dxxxxxxxxxxx
ip_transport=UDP
enabled=yes
match_port=yes
match_user=yes

debug code : debug sip level 10
Code: [Select]
<sip:INFO> 'udp:0.0.0.0:5060' sending 'REGISTER sip:sip.messagenet.it:5061' 0x7f30bc006d80 to 212.97.59.76:5061 [0x55f52e2b5f60]
------
REGISTER sip:sip.messagenet.it:5061 SIP/2.0
Contact: <sip:5xxxxxxxx@192.168.100.4:5060>
Expires: 600
To: <sip:5xxxxxxxxx@sip.messagenet.it:5061>
Call-ID: 432445012@sip.messagenet.it:5061
Via: SIP/2.0/UDP 192.168.100.4:5060;rport;branch=z9hG4bK1091355561
From: <sip:5406096367@sip.messagenet.it:5061>;tag=1198750290
CSeq: 2 REGISTER
User-Agent: YATE/6.1.1
Max-Forwards: 70
Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO
Content-Length: 0

2
Yate bugs / Re: No GPRS connection with some devices
« on: January 25, 2019, 05:50:02 AM »
My device doesn't support that command, i think that data roaming is enable by default.

John

3
Yate bugs / Re: No GPRS connection with some devices
« on: January 24, 2019, 03:39:05 AM »
hi nour,

i can't figure out how to enable roaming on telit, but i can tell to you that with osmocom i had test network as yate (100 01) and it works with the same SIM as now.

Code: [Select]
at
OK
at
OK
AT+CMEE=2
OK
AT+CGEREP=1,1
OK
AT+CGREG?
+CGREG: 0,0

OK
AT+COPS=1,2,"10001"
OK
AT+CGREG?
+CGREG: 0,0

OK
at#dns=4,"8.8.8.8","8.8.4.4"
OK
AT+CGREG=?
+CGREG: (0-2)

OK
AT+CGREG?
+CGREG: 0,0

OK
AT+CGREG=1
OK
AT+CGREG?
+CGREG: 1,0

OK
AT#CEERNET
#CEERNET: 0

OK
AT#CEERNET=?
OK
at+creg?
+CREG: 0,5

OK
AT#GPIO=2,1,1
OK
AT+CIND=?
+CIND: (("battchg",(0-5,99)),("signal",(0-7,99)),("service",(0,1)),("sounder",(0,1)),("message",(0,1)),("call",(0,1)),("roam",(0,1)),("smsfull",(0,1)),("rssi",(0-5,99)))

OK
AT+CIND=1,1,1,1,1,1,1,1,1
OK
AT+CIND=?
+CIND: (("battchg",(0-5,99)),("signal",(0-7,99)),("service",(0,1)),("sounder",(0,1)),("message",(0,1)),("call",(0,1)),("roam",(0,1)),("smsfull",(0,1)),("rssi",(0-5,99)))

OK
AT+WGPRS=?
ERROR
AT+CGACT=0
OK
AT# EVMONI?
#EVMONI: "VBATT",0,"",0,0
#EVMONI: "DTR",0,"",0,0
#EVMONI: "ROAM",0,""
#EVMONI: "CONTDEACT",0,""
#EVMONI: "RING",0,"",1
#EVMONI: "STARTUP",0,""
#EVMONI: "REGISTERED",0,""
#EVMONI: "GPIO1",0,"",1,0,0
#EVMONI: "GPIO2",0,"",1,0,0
#EVMONI: "GPIO3",0,"",1,0,0
#EVMONI: "GPIO4",0,"",1,0,0
#EVMONI: "GPIO5",0,"",1,0,0
#EVMONI: "ADCH1",0,"",1,0,0
#EVMONI: "ADCL1",0,"",1,0,0

OK
AT#EVMONI=?
#EVMONI: "VBATT",(0,1),(0-2),(0-500),(0-255)
#EVMONI: "DTR",(0,1),(0-2),(0,1),(0-255)
#EVMONI: "ROAM",(0,1),0
#EVMONI: "CONTDEACT",(0,1),0
#EVMONI: "RING",(0,1),(0,1),(1-50)
#EVMONI: "STARTUP",(0,1),0
#EVMONI: "REGISTERED",(0,1),0
#EVMONI: "GPIO1",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO2",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO3",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO4",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO5",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "ADCH1",(0,1),(0-3),(1-3),(0-2000),(0-255)
#EVMONI: "ADCL1",(0,1),(0-3),(1-3),(0-2000),(0-255)

OK
AT#EVMONI="ROAM",1
OK
AT#EVMONI=?
#EVMONI: "VBATT",(0,1),(0-2),(0-500),(0-255)
#EVMONI: "DTR",(0,1),(0-2),(0,1),(0-255)
#EVMONI: "ROAM",(0,1),0
#EVMONI: "CONTDEACT",(0,1),0
#EVMONI: "RING",(0,1),(0,1),(1-50)
#EVMONI: "STARTUP",(0,1),0
#EVMONI: "REGISTERED",(0,1),0
#EVMONI: "GPIO1",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO2",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO3",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO4",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "GPIO5",(0,1),(0-3),(1-10),(0,1),(0-255)
#EVMONI: "ADCH1",(0,1),(0-3),(1-3),(0-2000),(0-255)
#EVMONI: "ADCL1",(0,1),(0-3),(1-3),(0-2000),(0-255)

OK
AT# EVMONI?
#EVMONI: "VBATT",0,"",0,0
#EVMONI: "DTR",0,"",0,0
#EVMONI: "ROAM",1,""
#EVMONI: "CONTDEACT",0,""
#EVMONI: "RING",0,"",1
#EVMONI: "STARTUP",0,""
#EVMONI: "REGISTERED",0,""
#EVMONI: "GPIO1",0,"",1,0,0
#EVMONI: "GPIO2",0,"",1,0,0
#EVMONI: "GPIO3",0,"",1,0,0
#EVMONI: "GPIO4",0,"",1,0,0
#EVMONI: "GPIO5",0,"",1,0,0
#EVMONI: "ADCH1",0,"",1,0,0
#EVMONI: "ADCL1",0,"",1,0,0

OK
at
OK

+CGREG: 2
AT+CGREG?
+CGREG: 1,0

OK
AT+CSQ
+CSQ: 20,0

OK
AT+cgatt=1
+CME ERROR: operation not allowed
AT+CGDCONT=1,”IP”,”internet”
+CME ERROR: operation not allowed
AT+CGREG?
+CGREG: 1,2

OK

+CGREG: 5


Ty, you have a lot of patience :)
John

4
Yate bugs / Re: No GPRS connection with some devices
« on: January 23, 2019, 02:17:03 AM »
hello,
i haven't configurable sim, and the same device in osmocom network works.

Best regards
John

5
Yate bugs / Re: No GPRS connection with some devices
« on: January 21, 2019, 07:25:07 AM »
Hi nour,

Quote
What I noticed, the output of CREG is 5 which is registered / roaming.
-> is this the scenario you are trying to achieve?

nope, i would have gprs connection, telit registers to gsm i can have calls and sms but no gprs connection.

Quote
On the other hand, I was checking for the tilet error message while triggering the attach and I found if there is a mismatch with auto attach command you will have this error message, can you please check:

ty for this indication but i think that this is not the problem, the telit should be connected instead i cannot navigate.
BTW i'll try to disable autoattach later and update this message, stay tuned.

ty for your reply
John


EDIT
as i said it was the same, no gprs connection and this error as always
Code: [Select]
15:34:33.7,70110: 15:34:33.7@@@failed tbf cause=3101 TBF#10 TFI=10 TBF_TLLI=0x7c1cb512 mtMS= MS#10,TLLI=7c1cb512 mtDir=RLCDir::Up
channels: down=( 0:2) up=( 0:2,usf=1)
mtState==TBFState::DataTransmit mtAttached=1 mtTFI=10 mtTlli=0x7c1cb512
mtMsgExpectedBits=0x0 mtMsgAckBits=0x2
mtUnAckMode=0 OnCCCH=0 mtAssignCounter=1 N3101=21
msNumDataUSFGrants=21 msAckNackUSFGrant=0 Pacch= idle=0
TA=2 TE=(0.00) RSSI=(-28) CV=(18) ILev=(0) RXQual=(0) SigVar=(0) ChCoding=(3) RXLev=(0) mLastAlpha=10 mLastGamma=31 mGamma=31
VR=0 VQ=0 stalled=0 mNumUpBlocksSinceAckNack=0 mtUpState=0
blocks: total=0 unique=0 grants=21


and mbts gprs list -v gime to me

Code: [Select]
MS#9,TLLI=7f282fd6 rrmode=PacketIdle Bytes:0up/0down Utilization=0%
GMM state unknown
TA=2 TE=(0.00) RSSI=(-28) CV=(19) ILev=(0) RXQual=(0) SigVar=(0) ChCoding=(3) RXLev=(0) mLastAlpha=10 mLastGamma=31 mGamma=31
dataER:0% (0) recent:0% (0) tbfER:1.0% (1)
rrbpER:0% (1) recent:0% (0) ccchER:0% (0) recent:0% (0)
DownlinkQ:bytes=(0) delay=(0)
TBFs: total=1 failed=1
current=()
USFs=( 0 0 0 0 0 0 0 0 )
channels: down=( 0:2) up=( 0:2,usf=0)
msNumDataUSFGrants=0 msAckNackUSFGrant=-1 Pacch= idle=1381
 PDCH ARFCN=512 TN=1 FER=100%
Reservations=()
USFList=( 1=>free 2=>free 3=>free 4=>free 5=>free 6=>free)
TFI=()
 PDCH ARFCN=512 TN=2 FER=100%
Reservations=()
USFList=( 1=>free 2=>free 3=>free 4=>free 5=>free 6=>free)
TFI=()
 PDCH ARFCN=512 TN=3 FER=100%
Reservations=()
USFList=( 1=>free 2=>free 3=>free 4=>free 5=>free 6=>free)
TFI=()

6
Yate bugs / Re: No GPRS connection with some devices
« on: January 18, 2019, 02:41:01 AM »
Hi Nour,
thanks for your reply

i'm not able to get sgsn log, i don't know why because in my conf i have

Code: [Select]

[sgsn]
;Add layer-3 messages to the GGSN.Logfile, if any.
Debug=yes


link for attach:

https://drive.google.com/file/d/1Y_CUePvmYDgTUyXGXQg_EiABZ8Q3hG9S/view?usp=sharing



tell me if you need more log o more output
John

7
Yate based projects / Re: Where can I find the javascripts on YateBTS?
« on: December 19, 2018, 02:43:46 AM »
I think, but i'm not sure, you should load it,
add to  /usr/local/etc/yate/javascript.conf

scriptname=scriptname.js

under [scripts] section.


8
Yate bugs / Re: No GPRS connection with some devices
« on: November 07, 2018, 08:13:35 AM »
Let's split the problem:

(1) for telit we have this kind of behavior

Device:
GT864_QUAD with modem GE865_QUAD with virmware revision 10.xxxx.03

Code: [Select]
https://www.telic.de/en/downloads/downloads-m2m-terminals
https://www.telic.de/Load/Telemetry/M2M_Terminals/GT864_QUAD/EN_UserManual_GT864-QUAD-PY.pdf
https://www.telic.de/Load/Telemetry/M2M_Terminals/GT864_QUAD/EN_Datasheet_GT864-Quad.pdf

the problem is when i try to activate context i got error.

Code: [Select]
AT+CGACT?
ERROR

and when i try to use it in a "normal" network i got full working gprs.
But now i'm going to retry and got more log with error reporting and many try of context activation.

(2) With that filter in wireshark i see that honor device sent a GPRS suspension and then go to RAU loop, see attach

EDIT:
added telit at command log + wireshark log + yate-vvvvv log, note that every time i try to activate gprs with at command i have about a mitues of lag on putty and i got 3101 error on terminal and :GSM RLC/MAC: PACKET_DOWNLINK_DUMMY_CONTROL_BLOCK (37) (Downlink)

9
Yate bugs / Re: No GPRS connection with some devices
« on: November 06, 2018, 11:20:43 AM »
UP!
Telit logs.  ;D ;D

10
YateBTS / Re: Excessive TOA errors
« on: October 30, 2018, 02:44:10 AM »
From source code :

Code: [Select]
   
// TOA error.  Negative for early, positive for late.
// indexing relationships
// maxIndex - actual t0 of the received signal channel estimate
// center - expected t0 of the received signal channel estimate
// toaError - the offset of the channel estimate from its expected position, negative for early
// TOA error should not exceed +/-2 for a normal burst.
// It indicates a failure of the closed loop timing control.

are you using a vm? i had the same error when using a vm

11
Yate bugs / Re: No GPRS connection with some devices
« on: October 25, 2018, 05:23:52 AM »
Attached yate -vvvv log of telit modem

with command:
Code: [Select]
"debug mbts level 10"
"debug transceiver level 10"
"sniffer on"
"debug on"
"color on"
"output on"

12
Yate bugs / Re: Routing Area Identification Not Set Correctly
« on: October 16, 2018, 03:02:48 AM »
Same problem here!
Code: [Select]
Yate 6.1.1 devel1 r6325Maybe this probles is related to my post https://forum.yate.ro/index.php?topic=2004.0
and some device cannot accept this LA so GPRS doesn't works!

13
Yate bugs / Re: No GPRS connection with some devices
« on: October 15, 2018, 10:10:22 AM »
I'm trying to go deep into the problem, i fond some difference in my devices and i wanna show to you.

In the GGSN log for the honor device i got a persistent loop blocked into "RAU"

Code: [Select]
10:31:51.9:ip link set sgsntun0 up
 10:31:52.2:ip route add to 192.168.99.0/24 dev sgsntun0
 10:34:50.9:SGSN: Received GPRS SuspensionRequest for tlli=0xeb28e958
 10:34:54.6:SGSN: Created SgsnInfo: MS#1,TLLI=ab28e958 (TLLI=0xab28e958) ConnID=-1 (-1) [0x7f13a4031230]
 10:34:54.6:LLC: llcWriteLowSide sapi=1
 10:34:54.6:LLC: UI::llcProcess
 10:34:54.6:LLC: LlcEntityGmm lleUplinkData
 10:34:54.6:SGSN: Received RoutingAreaUpdateRequest mUpdateType=0 mFollowOnRequestPending=0 mobileId=not present addtionalMobileId=not present drx=8192 tmsiStatus=0 pdpContextStatus=PdpContextStatus=0,0 mCypheringKeySequenceNumber=1 oldRaId=MCC=222 MNC=88f LAC=14506 RAC=0 mOldPtmsiSignature=10620458 mRequestedReadyTimerValue=22 mMsNetworkCapability=ByteVector(size=3 data: e5 60 0c)
  MsRaCapability[GSM_E]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_1800]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_850]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
 MS#1,TLLI=ab28e958 (TLLI=0xab28e958) ConnID=-1 (-1) [0x7f13a4031230]
 10:34:54.6:SGSN: Received RA Update Req on  MS#1,TLLI=ab28e958 (TLLI=0xab28e958) ConnID=-1 (-1) [0x7f13a4031230]
 10:34:54.6:SGSN: Connection allocated to MS#1,TLLI=ab28e958 (TLLI=0xab28e958) ConnID=8193 (8193) [0x7f13a4031230]
 10:34:54.6:SGSN: Sending IdentityRequest mIdentityType=1 mForceToStandby=0 MS#1,TLLI=ab28e958 (TLLI=0xab28e958) ConnID=-2 (-2) [0x7f13a4031230] frame(first20)=ByteVector(size=3 data: 08 15 01)
 10:34:54.6:SGSN: Creating 'IdentityRequest' PDU with TLLI=0xab28e958,0x0 for  MS#1,TLLI=ab28e958
 10:34:55.1:LLC: llcWriteLowSide sapi=1
 10:34:55.1:LLC: UI::llcProcess
 10:34:55.1:LLC: LlcEntityGmm lleUplinkData
 10:34:55.1:SGSN: Received IdentityResponse mobileId= IMSI=xxxxxxxxxxxxx MS#1,TLLI=ab28e958 (TLLI=0xab28e958) ConnID=-2 (-2) [0x7f13a4031230]
 10:34:55.1:SGSN: Allocated new GMM info for MS#1,TLLI=ab28e958 (TLLI=0xab28e958) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4031230]
 10:34:55.1:SGSN: Created SgsnInfo: (TLLI=0xc00af001) ConnID=-1 (-1) [0x7f13a4033f90]
 10:34:55.1:SGSN: Changing TLLI to MS#1,TLLI=ab28e958,c00af001 (TLLI=0xc00af001) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4033f90]
 10:34:55.1:SGSN: adjusting connection MS#1,TLLI=ab28e958,c00af001 (TLLI=0xab28e958) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4031230]
 10:34:55.1:SGSN: Sending RoutingAreaUpdateAccept mUpdateResult=0 mForceToStandby=0 ptmsi=0xaf001 MSIdentity(mTmsi)=0x0 RAUpdateTimer=5400 RAUpdateIE=0x49 PdpContextStatusCurrent=PdpContextStatus=0,0 MS#1,TLLI=ab28e958,c00af001 (TLLI=0xab28e958) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4031230] frame(first20)=ByteVector(size=14 data: 08 09 00 49 17 22 17 03 e8 00 18 05 f4 00 0a f0 01 32 02 00)
 10:34:55.1:SGSN: Creating 'RoutingAreaUpdateAccept' PDU with TLLI=0xab28e958,0xc00af001 for  MS#1,TLLI=ab28e958,c00af001
 10:35:09.7:LLC: llcWriteLowSide sapi=1
 10:35:09.7:LLC: UI::llcProcess
 10:35:09.7:LLC: LlcEntityGmm lleUplinkData
 10:35:09.7:SGSN: Received RoutingAreaUpdateRequest mUpdateType=0 mFollowOnRequestPending=0 mobileId=not present addtionalMobileId=not present drx=8192 tmsiStatus=0 pdpContextStatus=PdpContextStatus=0,0 mCypheringKeySequenceNumber=1 oldRaId=MCC=222 MNC=88f LAC=14506 RAC=0 mOldPtmsiSignature=10620458 mRequestedReadyTimerValue=22 mMsNetworkCapability=ByteVector(size=3 data: e5 60 0c)
  MsRaCapability[GSM_E]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_1800]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_850]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
 MS#1,TLLI=ab28e958,c00af001 (TLLI=0xab28e958) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4031230]
 10:35:09.7:SGSN: Received RA Update Req on  MS#1,TLLI=ab28e958,c00af001 (TLLI=0xab28e958) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4031230]
 10:35:09.7:SGSN: Sending RoutingAreaUpdateAccept mUpdateResult=0 mForceToStandby=0 ptmsi=0xaf001 MSIdentity(mTmsi)=0x0 RAUpdateTimer=5400 RAUpdateIE=0x49 PdpContextStatusCurrent=PdpContextStatus=0,0 MS#1,TLLI=ab28e958,c00af001 (TLLI=0xab28e958) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4031230] frame(first20)=ByteVector(size=14 data: 08 09 00 49 17 22 17 03 e8 00 18 05 f4 00 0a f0 01 32 02 00)
 10:35:09.7:SGSN: Creating 'RoutingAreaUpdateAccept' PDU with TLLI=0xab28e958,0xc00af001 for  MS#1,TLLI=ab28e958,c00af001
 10:35:24.5:LLC: llcWriteLowSide sapi=1
 10:35:24.5:LLC: UI::llcProcess
 10:35:24.5:LLC: LlcEntityGmm lleUplinkData
 10:35:24.5:SGSN: Received RoutingAreaUpdateRequest mUpdateType=0 mFollowOnRequestPending=0 mobileId=not present addtionalMobileId=not present drx=8192 tmsiStatus=0 pdpContextStatus=PdpContextStatus=0,0 mCypheringKeySequenceNumber=1 oldRaId=MCC=222 MNC=88f LAC=14506 RAC=0 mOldPtmsiSignature=10620458 mRequestedReadyTimerValue=22 mMsNetworkCapability=ByteVector(size=3 data: e5 60 0c)
  MsRaCapability[GSM_E]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_1800]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_850]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
 MS#1,TLLI=ab28e958,c00af001 (TLLI=0xab28e958) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f13a4031230]
 10:35:24.5:SGSN: Received RA Update Req on ....
and it goes for ever, so the sgsn dosn't get the ROUTINGAREACOMPLETE.

I can see the same on wireshark :

Code: [Select]
No.     Time           Source                Destination           Protocol Length Info
 217200 157.586892     192.168.100.4         192.168.100.121       GPRS-LLC 120    SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 3(DTAP) (GMM) Routing Area Update Request

Frame 217200: 120 bytes on wire (960 bits), 120 bytes captured (960 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Uplink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Routing Area Update Request

No.     Time           Source                Destination           Protocol Length Info
 217202 157.589253     192.168.100.4         192.168.100.121       GPRS-LLC 67     SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 0(DTAP) (GMM) Identity Request

Frame 217202: 67 bytes on wire (536 bits), 67 bytes captured (536 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Downlink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Identity Request

No.     Time           Source                Destination           Protocol Length Info
 217244 158.048129     192.168.100.4         192.168.100.121       GPRS-LLC 75     SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 4(DTAP) (GMM) Identity Response

Frame 217244: 75 bytes on wire (600 bits), 75 bytes captured (600 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Uplink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Identity Response

No.     Time           Source                Destination           Protocol Length Info
 217245 158.048434     192.168.100.4         192.168.100.121       GPRS-LLC 85     SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 1(DTAP) (GMM) Routing Area Update Accept

Frame 217245: 85 bytes on wire (680 bits), 85 bytes captured (680 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Downlink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Routing Area Update Accept

No.     Time           Source                Destination           Protocol Length Info
 217496 172.623109     192.168.100.4         192.168.100.121       GPRS-LLC 120    SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 5(DTAP) (GMM) Routing Area Update Request

Frame 217496: 120 bytes on wire (960 bits), 120 bytes captured (960 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Uplink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Routing Area Update Request

No.     Time           Source                Destination           Protocol Length Info
 217497 172.623412     192.168.100.4         192.168.100.121       GPRS-LLC 85     SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 2(DTAP) (GMM) Routing Area Update Accept

Frame 217497: 85 bytes on wire (680 bits), 85 bytes captured (680 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Downlink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Routing Area Update Accept

No.     Time           Source                Destination           Protocol Length Info
 217784 187.462624     192.168.100.4         192.168.100.121       GPRS-LLC 120    SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 6(DTAP) (GMM) Routing Area Update Request

Frame 217784: 120 bytes on wire (960 bits), 120 bytes captured (960 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Uplink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Routing Area Update Request

No.     Time           Source                Destination           Protocol Length Info
 217785 187.462911     192.168.100.4         192.168.100.121       GPRS-LLC 85     SAPI: LLGMM, UI, protected, non-ciphered information, N(U) = 3(DTAP) (GMM) Routing Area Update Accept

Frame 217785: 85 bytes on wire (680 bits), 85 bytes captured (680 bits) on interface 0
Ethernet II, Src: Dell_68:2d:ec (64:00:6a:68:2d:ec), Dst: Pegatron_69:33:65 (4c:72:b9:69:33:65)
Internet Protocol Version 4, Src: 192.168.100.4, Dst: 192.168.100.121
User Datagram Protocol, Src Port: 51771, Dst Port: 4729
GSM TAP Header, ARFCN: 0 (Downlink), TS: 255, Channel: UNKNOWN (255)
MS-SGSN LLC (Mobile Station - Serving GPRS Support Node Logical Link Control)  SAPI: GPRS Mobility Management
GSM A-I/F DTAP - Routing Area Update Accept

The only differences i can see are :
Code: [Select]
MsRaCapability[GSM_E]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
 MsRaCapability[GSM_1800]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
 MsRaCapability[GSM_850]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
for the HONOR device and

Code: [Select]
MsRaCapability[GSM_E]=( GPRSMultislotClass=10 GPRSExtendedDynamicAllocationCapability=1)
 MsRaCapability[GSM_850]=( GPRSMultislotClass=10 GPRSExtendedDynamicAllocationCapability=1)
 MsRaCapability[GSM_1800]=( GPRSMultislotClass=10 GPRSExtendedDynamicAllocationCapability=1)
for the huawei device.

I thing that GPRSMultislotClass is not a problem but GERANFeaturePackage1 may be a problem cause searching in the source code i found only this:
Code: [Select]
// Extended dynamic mode means # channels up > # channels down.
bool MSInfo::msCanUseExtendedUplink()
{
// The Blackberry and iphone set the GeranFeaturePackI bit, but
// the danged Multitech modems truncate the MS capabilities before
// the GeranFeaturePackI bit, even though they do support extended uplink TBF
// They are multislot class 12, so if the MS multislot class > 10, assume ok.
return gL2MAC.macUplinkPersist > 0 && this->msIsRegistered()
&& (this->sgsnGetGeranFeaturePackI(this->msTlli) ||
    this->sgsnGetMultislotClass(this->msTlli) > 10);
}
here https://github.com/ctxis/yate-bts/blob/7386c0e28867304a76e1bc101b0fcc61aefc5c38/mbts/GPRS/MSInfo.cpp.


I have an embedded device and this doesn't work, like honor, the error is quite similar, no gprs connection but the loop is on AttachRequest :
Code: [Select]
16:56:05.8:GGSN logging to file /tmp/ggsn.log
 16:56:05.8:ip link set sgsntun0 up
 16:56:06.1:ip route add to 192.168.99.0/24 dev sgsntun0
 16:56:48.0:SGSN: Created SgsnInfo: MS#1,TLLI=7dbcf269 (TLLI=0x7dbcf269) ConnID=-1 (-1) [0x7f1f44030a90]
 16:56:48.0:LLC: llcWriteLowSide sapi=1
 16:56:48.0:LLC: XID frame received size=0 llcsapi=1
 16:56:48.0:LLC: Sending XID command:01FB
 16:56:48.0:SGSN: Creating 'xid cmd' PDU with TLLI=0x7dbcf269,0x0 for  MS#1,TLLI=7dbcf269
 16:56:48.0:LLC: llcWriteLowSide sapi=1
 16:56:48.0:LLC: UI::llcProcess
 16:56:48.0:LLC: LlcEntityGmm lleUplinkData
 16:56:48.0:SGSN: Received AttachRequest mAttachType=1 mobileId= IMSI=xxxxxxxxxxxxx addtionalMobileId=not present drx=8192 tmsiStatus=0 pdpContextStatus=PdpContextStatus=ff,ff mCypheringKeySequenceNumber=1 oldRaId=MCC=222 MNC=99f LAC=65534 RAC=0 mOldPtmsiSignature=0 mRequestedReadyTimerValue=22 mMsNetworkCapability=ByteVector(size=3 data: e5 60 0c)
  MsRaCapability[GSM_E]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_1800]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_850]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
 MS#1,TLLI=7dbcf269 (TLLI=0x7dbcf269) ConnID=-1 (-1) [0x7f1f44030a90]
 received buffer 080103E5600C11200008292299227016441922F299FFFE001B1953432B2596420040000CD89632100200006EC6319080100002001716
 16:56:48.0:SGSN: Allocated new GMM info for MS#1,TLLI=7dbcf269 (TLLI=0x7dbcf269) imsi=xxxxxxxxxxxxx ConnID=-1 (-1) [0x7f1f44030a90]
 16:56:48.0:SGSN: Created SgsnInfo: (TLLI=0xc0030001) ConnID=-1 (-1) [0x7f1f44032080]
 16:56:48.0:SGSN: Changing TLLI to MS#1,TLLI=7dbcf269,c0030001 (TLLI=0xc0030001) imsi=xxxxxxxxxxxxx ConnID=-1 (-1) [0x7f1f44032080]
 16:56:48.0:SGSN: Connection allocated to MS#1,TLLI=7dbcf269,c0030001 (TLLI=0x7dbcf269) imsi=xxxxxxxxxxxxx ConnID=8193 (8193) [0x7f1f44030a90]
 16:56:48.0:SGSN:
 16:56:48.0:SGSN: Sending AttachAccept mAttachResult=1 mPTmsi=0x30001 mForceToStandby=0 RAUpdateTimer=5400 RAUpdateIE=0x49 mobileId=not present MCC=nwy MNC=nwy LAC=1000 RAC=0 MS#1,TLLI=7dbcf269,c0030001 (TLLI=0x7dbcf269) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f1f44030a90] frame(first20)=ByteVector(size=12 data: 08 02 01 49 44 17 22 17 03 e8 00 18 05 f4 00 03 00 01)
 16:56:48.0:SGSN: Creating 'AttachAccept' PDU with TLLI=0x7dbcf269,0xc0030001 for  MS#1,TLLI=7dbcf269,c0030001
 16:57:02.8:LLC: llcWriteLowSide sapi=1
 16:57:02.8:LLC: UI::llcProcess
 16:57:02.8:LLC: LlcEntityGmm lleUplinkData
 16:57:02.8:SGSN: Received AttachRequest mAttachType=1 mobileId= IMSI=xxxxxxxxxxxxx addtionalMobileId=not present drx=8192 tmsiStatus=0 pdpContextStatus=PdpContextStatus=ff,ff mCypheringKeySequenceNumber=1 oldRaId=MCC=222 MNC=99f LAC=65534 RAC=0 mOldPtmsiSignature=0 mRequestedReadyTimerValue=22 mMsNetworkCapability=ByteVector(size=3 data: e5 60 0c)
  MsRaCapability[GSM_E]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_1800]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_850]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
 MS#1,TLLI=7dbcf269,c0030001 (TLLI=0x7dbcf269) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f1f44030a90]
 received buffer 080103E5600C11200008292299227016441922F299FFFE001B1953432B2596420040000CD89632100200006EC6319080100002001716
 16:57:02.8:SGSN: Sending AttachAccept mAttachResult=1 mPTmsi=0x30001 mForceToStandby=0 RAUpdateTimer=5400 RAUpdateIE=0x49 mobileId=not present MCC=nwy MNC=nwy LAC=1000 RAC=0 MS#1,TLLI=7dbcf269,c0030001 (TLLI=0x7dbcf269) imsi=xxxxxxxxxxxxx ConnID=-2 (-2) [0x7f1f44030a90] frame(first20)=ByteVector(size=12 data: 08 02 01 49 44 17 22 17 03 e8 00 18 05 f4 00 03 00 01)
 16:57:02.8:SGSN: Creating 'AttachAccept' PDU with TLLI=0x7dbcf269,0xc0030001 for  MS#1,TLLI=7dbcf269,c0030001
 16:57:02.8:SGSN:
 16:57:17.9:LLC: llcWriteLowSide sapi=1
 16:57:17.9:LLC: UI::llcProcess
 16:57:17.9:LLC: LlcEntityGmm lleUplinkData
 16:57:17.9:SGSN: Received AttachRequest mAttachType=1

and here i have the same class and GERAN feature of the honor
Code: [Select]
MsRaCapability[GSM_E]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_1800]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)
  MsRaCapability[GSM_850]=( GPRSMultislotClass=12 GPRSExtendedDynamicAllocationCapability=1 GERANFeaturePackage1=1)

I wanna get GPRS connection, so Stay tuned! :)


14
Yate bugs / No GPRS connection with some devices
« on: October 12, 2018, 09:33:46 AM »
Hi,

I installed yate and yateBTS on Debian sistem with a Bladerf x115 and i can easily call and send sms, with bot and with 2 device in the same network (I'm in NiPC MODE).
I can connect with no problem iphone 5s (apple SOC) and Huawei (Qualcomm SOC) in GPRS but i cannot get any connection with my Honor (Kirin Soc) smartphone, i thing that is something related to the different modem because similar post
here : https://forum.yate.ro/index.php?topic=1927.0
and here : https://forum.yate.ro/index.php?topic=1843.msg5990#msg5990
but i have no responce to my questions.

On attachment you can find the GGSN and SGSN log and a wireshark pcap, both related to honor smartphone connection.

Versions:
Code: [Select]
Yate 6.0.1 devel1 r6313
Code: [Select]
bladeRF-cli version:        1.6.1-2018.08-release-1-ppabionic
libbladeRF version:         2.0.2-2018.08-release-1-ppabionic

Firmware version:           2.2.0-git-3d38fac2
FPGA version:               0.1.2

Pages: [1]