Pass paging group instead of imsi where later is not needed
Change-Id: Id0663a81f439f2d0b893b0d34f85a6db1927ef8e
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index e3c1ff4..7113d65 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -507,6 +507,7 @@
/* depending on the current TBF, we assign on PACCH or AGCH */
void gprs_rlcmac_dl_tbf::trigger_ass(struct gprs_rlcmac_tbf *old_tbf)
{
+ uint16_t pgroup;
/* stop pending timer */
stop_timers("assignment (DL-TBF)");
@@ -530,7 +531,9 @@
TBF_SET_ASS_ON(this, GPRS_RLCMAC_FLAG_CCCH, false);
/* send immediate assignment */
- bts->snd_dl_ass(this, false, imsi());
+ if ((pgroup = imsi2paging_group(imsi())) > 999)
+ LOGPTBFDL(this, LOGL_ERROR, "IMSI to paging group failed! (%s)\n", imsi());
+ bts->snd_dl_ass(this, false, pgroup);
m_wait_confirm = 1;
}
}