<div dir="ltr">Hi, I am using OsmoSGSN in topology with OpenGGSN and proprietary simulator of BSS. There was a problem with an implementation of Network service, cause Network Service implementation in the simulator of BSS is based on different release of 3GPP standard (<span style="font-size:12pt;line-height:115%;font-family:Calibri,sans-serif">3GPP TS 48. 016 v7. 4. 0 (2008-04)/Network
service (Release 7)</span>)...and the problem is that in IP-subnetwork, which I am using there is no use for RESET or UNBLOCK procedure, so I had to do a PATCH in gprs_ns.c, which was needed to complete succesful connection between sim-bss and OsmoSGSN:<div>
<br></div><div>switch (nsh->pdu_type) {</div><div>     case NS_PDUT_ALIVE:</div><div>+++        LOGP(DNS, LOGL_INFO, "Rx NS ALIVE\n");</div><div>+++        /*mark NS-VC as alive*/</div><div>+++        (*nsvc)->state = NSE_S_ALIVE;</div>
<div>+++        (*nsvc)->remote_state = NSE_S_ALIVE;</div><div>+++        /*initiate TEST procedure: Send ALIVE_ACK and start timer*/</div><div>+++        rc = gprs_ns_tx_simple((*nsvc), NS_PDUT_ALIVE_ACK);</div><div>+++        nsvc_start_timer((*nsvc), NSVC_TIMER_TNS_TEST);</div>
<div>+++        break;</div><div>.</div><div>.</div><div>.</div><div>}</div><div><br></div><div><br></div><div>another PATCH I needed to do was to change a little bit procedure for allocation of P-TMSI in procedure uint32_t sgsn_alloc_ptmsi(void) in gprs_sgsn.c</div>
<div><br></div><div>uint32_t sgsn_alloc_ptmsi(void)</div><div>{</div><div>      struct sgsn_mm_ctx *mm;</div><div>      uint32_t ptmsi;</div><div><br></div><div>restart:</div><div>+++    ptmsi = rand() | 0xc0000000;              /*because of GPRS IMSI ATTACH*/</div>
<div>          llist_for_each_entry(mm, &sgsn_mm_ctxts, list) {</div><div>                 if (mm->p_tmsi == ptmsi)</div><div>                          goto restart;</div><div>          }</div><div>          return ptmsi;</div>
<div>}</div><div><br></div><div>because in GPRS IMSI ATTACH in message ATTACH COMPLETE (3GPP 24.008, 23.003, 48.018) there is new TLLI==new allocated P-TMSI and I need local TLLI, so I had to do it this way</div><div><br>
</div><div>regards Michal</div></div>