Author Topic: How do I change the location update reject code?  (Read 14340 times)

rod5413

  • Newbie
  • *
  • Posts: 13
    • View Profile
How do I change the location update reject code?
« 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.

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: How do I change the location update reject code?
« Reply #1 on: July 04, 2014, 12:50:31 AM »
Hi,
ybts.cpp:
See YBTSMM::locUpdTerminated()

rod5413

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: How do I change the location update reject code?
« Reply #2 on: July 05, 2014, 02:15:19 AM »
Thanks Marian,

Your help is greatly appreciated.  ;D ;D ;D

Mongo33

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How do I change the location update reject code?
« Reply #3 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.

rod5413

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: How do I change the location update reject code?
« Reply #4 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.

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: How do I change the location update reject code?
« Reply #5 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.

Mongo33

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How do I change the location update reject code?
« Reply #6 on: July 29, 2014, 11:42:30 AM »
Thanks for pointing me in the right direction.