Yate Community Forum

OpenLTE => YateBTS => Topic started by: rod5413 on July 03, 2014, 06:06:43 PM

Title: How do I change the location update reject code?
Post by: rod5413 on July 03, 2014, 06:06:43 PM
Hi guys,

I've just started playing around with YateBTS, and found that when a handset is rejected from a location update, it appears that the handset is given a invalid code (Reject cause =111 Protocol error, unspecified).
The effect on this rejected handset is that it doesn't return to it's previous network. It just stays hanging around, disconnected from any network (so it appears).
So my question is, can this reject code be easily changed, and where about in the ybts.cpp file does the changes need to be made.
Any help regarding this matter is greatly appreciated.
Title: Re: How do I change the location update reject code?
Post by: marian on July 04, 2014, 12:50:31 AM
Hi,
ybts.cpp:
See YBTSMM::locUpdTerminated()
Title: Re: How do I change the location update reject code?
Post by: rod5413 on July 05, 2014, 02:15:19 AM
Thanks Marian,

Your help is greatly appreciated.  ;D ;D ;D
Title: Re: How do I change the location update reject code?
Post by: Mongo33 on July 28, 2014, 09:52:05 AM
Is the reject cause code required to be set prior to compiling or am I miss interpreting this?  I am trying to set my system to reject cause code of 13 (no roaming this LAC).  In OpenBTS there was a config line you could set, but I am unable to find that in YateBTS.  I do appreciate the help.
Title: Re: How do I change the location update reject code?
Post by: rod5413 on July 28, 2014, 10:31:16 PM
Hi Mongo,

You need to change the reject code value within the ybts.cpp file, before compiling.
Title: Re: How do I change the location update reject code?
Post by: marian on July 29, 2014, 01:26:08 AM
You may use a script to catch the user.register message after the registering module (I suppose you are using nib.js for that).
Set the handler priority at higher value then nib.js (I think 100 is ok).
Check the error parameter.
You should ignore the message if the error is 'noauth'.
You may set your code in the error parameter.
Title: Re: How do I change the location update reject code?
Post by: Mongo33 on July 29, 2014, 11:42:30 AM
Thanks for pointing me in the right direction.