update: This has been solved. See my last message below
I've been having some issues with the ggsn when running in nipc mode.
When the GGSN doesn't work, i.e. when it can't create the link; then 2G works OK. Mobile can register and place calls
When It does come up, them the mobile doesn't stay registered and I get the following errors:
2018-08-02_17:48:59.183891 <ybts-mm:ALL> UE (0x74f015a8) IMSI set to 114096659 on conn=1 [0x1da8ba0]
2018-08-02_17:48:59.655312 <ybts:ALL> Started location updating thread for (0x74f015a8) TMSI= IMSI=114096659 [0x74f00d20]
2018-08-02_17:48:59.656394 <nipc:INFO> Got user.register for imsi='114096659', tmsi=''
2018-08-02_17:48:59.657489 <nipc:INFO> Allocated random number
2018-08-02_17:48:59.663835 <nipc:INFO> Registered imsi 114096659 with number 494096659
2018-08-02_17:48:59.664217 <ybts:ALL> Location updating thread for (0x74f015a8) TMSI= IMSI=114096659 terminated [0x74f00d20]
2018-08-02_17:48:59.664365 <ybts-mm:ALL> UE (0x74f015a8) registered TMSI '' -> '007b0001', IMSI '114096659' -> '262022114096659' conn=1 [0x1da8ba0]
2018-08-02_17:48:59.664428 <ybts-mm:ALL> UE (0x74f015a8) TMSI=007b0001 IMSI=114096659 register succeeded [0x1da8ba0]
018-08-02_17:49:01.245268 <ybts-signalling:ALL> Added GPRS connection (0x74f00c48,8193) [0x1da8938]
2018-08-02_17:49:01.245370 <ybts/ps/1:ALL> Created ConnID=8193 [0x74f05e48]
2018-08-02_17:49:01.248343 <javascript:NOTE> Channel 'ybts/ps/1' already assisted!
2018-08-02_17:49:01.250066 <INFO> Could not route gprs to 'sgsn' in context 'default', wasted 582 usec
2018-08-02_17:49:01.250271 <ybts/ps/1:MILD> Call rejected error='noroute' reason='No route to call target' [0x74f05e48]
2018-08-02_17:49:01.250349 <ybts/ps/1:INFO> Connection continuing locally in mbts
I've been searching for docs on how this routing takes place, but have not found any.
I'm running the current SVN versions of yate and yatebts and using a BladeRF x40
bladeRF-cli version: 1.5.1-git-821f8794
libbladeRF version: 1.9.0-git-821f8794
Firmware version: 1.8.0
FPGA version: 0.7.1
Thanks in advance for your help