Handle TMSI reallocation complete by printing the subscriber

It looks like that certain phones that send their old TMSI from
a different network and we assign them a new one with LOCATION
UPDATING ACCEPT will send us a TMSI Reallocation Complete. Print out
the the imsi.
This commit is contained in:
Harald Welte 2009-01-06 19:47:00 +00:00
parent 9898188ca7
commit 69b2af293e
1 changed files with 6 additions and 1 deletions

View File

@ -562,8 +562,13 @@ static int gsm0408_rcv_mm(struct msgb *msg)
case GSM48_MT_MM_STATUS:
DEBUGP(DMM, "MM STATUS: FIXME parse error cond.\n");
break;
case GSM48_MT_MM_CM_REEST_REQ:
case GSM48_MT_MM_TMSI_REALL_COMPL:
DEBUGP(DMM, "TMSI Reallocation Completed. Subscriber: %s\n",
msg->lchan->subscr ?
msg->lchan->subscr->imsi :
"unknown subscriber");
break;
case GSM48_MT_MM_CM_REEST_REQ:
case GSM48_MT_MM_AUTH_RESP:
case GSM48_MT_MM_IMSI_DETACH_IND:
fprintf(stderr, "Unimplemented GSM 04.08 MM msg type 0x%02x\n",