Yate Community Forum

Yate server => Yate bugs => Topic started by: chewwtoy on January 23, 2017, 09:45:43 AM

Title: Routing Area Identification Not Set Correctly
Post by: chewwtoy on January 23, 2017, 09:45:43 AM
I set my MCC to 262 (Germany) and my MNC to 10 (M2M test Network) however my Routing Area Identification is not being set correctly for GPRS.

I tapping turned on an monitored the GPRS LLC message from my bts and the MCC and MNC are both being set to 712 (not 262).  The LAC and RAC are being set correctly.  Is anyone experiencing this issue?

I'm currently using Yate 5.5.1 devel1 r6165 (built from SVN)
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on January 24, 2017, 02:19:51 AM
Hi,

Please provide a wireshark capture and a Yate log, if possible.

Title: Re: Routing Area Identification Not Set Correctly
Post by: chewwtoy on January 24, 2017, 08:34:29 AM
The PCAP is here: https://www.dropbox.com/s/ivl84pmprcbyc9w/Routing%20Area%20Issue.pcapng?dl=0

The file is big! (255MB)

Look for line number 1038 with the filter "gsmtap && gsm_sms" enabled.  Time is 159.688363. 
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on January 25, 2017, 03:13:17 AM
Can you also post the configuration (ybts.conf)?

Also, did you do anything special (issued commands, modified code)?

Title: Re: Routing Area Identification Not Set Correctly
Post by: chewwtoy on January 26, 2017, 08:10:42 AM
Here is the ybts.conf file...

I have made no modifications.

https://www.dropbox.com/s/rpiw5jge6sefem6/ybts.conf?dl=0
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on January 27, 2017, 09:22:59 AM
1. YOu said you set MCC to 262 and MNC to 10, but it's set to 26204 (which is Vodafone's). You also set the ShortName to Vodafone (Do you see it on the phone?).  Please keep in mind that you could cause problems for actual Vodafone customers.
2. What version of YateBTS have you installed?
3. What phone are you using?
Title: Re: Routing Area Identification Not Set Correctly
Post by: chewwtoy on January 30, 2017, 11:57:31 AM
I've tried a few MNC's to test.  They all gave the same results.

Currently using YateBTS release 5.0.1 built Jan 19 2017 rev598

We're using an IOT device based on Heuwei IOT.
Title: Re: Routing Area Identification Not Set Correctly
Post by: chewwtoy on February 02, 2017, 08:20:21 AM
Bump...
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on February 06, 2017, 02:44:26 AM
Hi,

I cannot recreate your problem. The code reads the MCC and MNC for GPRS from the same place the GSM procedures read it.
Did you do any Yate reloads between CS attach and GPRS attach?

Title: Re: Routing Area Identification Not Set Correctly
Post by: chewwtoy on February 08, 2017, 09:32:53 AM
I did not?  Is there an issue with the version of Yate or YateBTS that I'm using?
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on February 09, 2017, 02:19:13 AM
Please post the Yate version, YateBTS version, how did you installed it, how are you starting the YateBTS and where is your configuration file located.

Are you running in nib or roaming mode?

Also what is your testing procedure?

A log from YateBTS with debugging enabled would also help (see http://wiki.yatebts.com/index.php/ Troubleshooting section and the debug options in ybts.conf file).
Title: Re: Routing Area Identification Not Set Correctly
Post by: chewwtoy on February 09, 2017, 07:54:23 AM
I'm using  YateBTS release 5.0.1 built Jan 19 2017 rev598 and Yate 5.5.1 devel1 r6165 (built from SVN).

I'm starting yate from the terminal.  "sudo yate"

My config file is located in /usr/local/etc/yate/

I'm running in nib mode.

Testing went as follows:
I tell the mobile device to connect to the network (262 10 or 01 or 04, etc).  It makes connection and is able to send and receive SMS messages.  It does not get an IP address.  To see the status of the device, I telnet into the BTS interface (telnet 0 5038).  I run command mbts gprs list.  I can see my ISMI listed but the status is Registration Pending and it stays there for a long time.  To find out why I enabled GSM tapping.  I logged the results using Wireshark ( https://www.dropbox.com/s/ivl84pmprcbyc9w/Routing%20Area%20Issue.pcapng?dl=0).  I noticed that the Routing Area ID is not correct.

I will follow up with a log from YateBTS with debugging enabled.
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on February 10, 2017, 06:51:12 AM
Can you also tell me on what machine/platform you are running the YateBTS?

Does this behaviour manifest with any other device (which would do an AttachRequest for GPRS, not a RoutingAreaUpdate) ?

Did you do a clean build and install?

Also can you post the output of the command "mbts rawconfig"?
Title: Re: Routing Area Identification Not Set Correctly
Post by: nicolas yate on April 26, 2017, 12:41:44 PM
Hello,

I am having the exact same issue as "chewwtoy", please see attached screenshots.

Has anyone successfully resolved this issue ?

Best regards,

Nicolas
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on April 27, 2017, 06:35:01 AM
Please tell me on what type of hardware you are running yateBTS and what compiler you are using for compiling YateBTS.

Title: Re: Routing Area Identification Not Set Correctly
Post by: nicolas yate on April 27, 2017, 06:41:58 AM
Hello,

I am using bladeRF, I am not sure what you mean by compiler, it's being ran on ubuntu.

Best regards,

Nicolas
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on April 27, 2017, 08:29:20 AM
By hardware I meant what kind of PC you are running on (Intel, ARM, which type of CPU, which version of operating system ).
By compiler I meant the version of GCC (seeing that you're on Ubuntu - I guess you are using gcc). You can check the version by using in a terminal
Code: [Select]
gcc --version command.

How did you install YateBTS and which version is it?
Title: Re: Routing Area Identification Not Set Correctly
Post by: nicolas yate on April 27, 2017, 09:14:33 AM
there are requested details :

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

YATE 5.5.1-devel1 r
yatebts Release 5.0.1 formal build date Jun 11 2016 rev

3,7 Gio
Intel® Core™ i3-3225 CPU @ 3.30GHz × 4
Intel® Ivybridge Desktop
64 bits
310,8 Go

It has been installed nearly a year ago I can not remember clearly how we installed it, probably using apt get
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on April 28, 2017, 01:20:35 AM
Then please post the output of
Code: [Select]
dpkg -s yate-bts
We don't provide Debian packages for YateBTS, so I'm interested from where it was installed and what version it is.


Title: Re: Routing Area Identification Not Set Correctly
Post by: nicolas yate on April 28, 2017, 01:37:12 AM
Hello,

The command you told me to use replies an error saying the package is not installed.

As I wrote previously it's been nearly a year it's installed and I did it with a friend more used to linux environement I do not really remember how it been installed.
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on April 28, 2017, 02:58:14 AM
From where did you get this information then?
Code: [Select]
YATE 5.5.1-devel1 r
yatebts Release 5.0.1 formal build date Jun 11 2016 rev
Title: Re: Routing Area Identification Not Set Correctly
Post by: nicolas yate on April 28, 2017, 03:06:50 AM
for YateBTS it's from yate-bts startup messages I launch with sudo yate -s
for Yate, I'm not sure how I made it appear if that's of great importance I will search again and tell you
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ioana Stanciu on April 28, 2017, 04:08:05 AM
Could you install again with current sources?

You would need to follow:

http://wiki.yatebts.com/index.php/Prerequisites
http://wiki.yatebts.com/index.php/Installing


After that, post if you have still have the issue.
Title: Re: Routing Area Identification Not Set Correctly
Post by: Ramzeth on June 19, 2018, 09:01:16 AM
Have the same issue here.

Code: [Select]
Yate 6.0.1 devel1 r6316
Built from sources https://wiki.yatebts.com/index.php/Installing with patch applied - http://yate.null.ro/mantis/view.php?id=416

Code: [Select]
Linux 4.15.0-kali3-amd64 #1 SMP Debian 4.15.17-1kali1 (2018-04-25) x86_64 GNU/Linux
Title: Re: Routing Area Identification Not Set Correctly
Post by: John 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 (https://forum.yate.ro/index.php?topic=2004.0)
and some device cannot accept this LA so GPRS doesn't works!
Title: Re: Routing Area Identification Not Set Correctly
Post by: marian on May 24, 2019, 08:09:11 AM
Bug fixed: it was related to wrong handling MCC/MNC in GPRS AttachAccept