mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-hlr.git
synced 2025-11-02 13:13:29 +00:00
Compare commits
2 Commits
823b398cf8
...
falconia/p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca45040747 | ||
|
|
56ed3a309b |
10
src/hlr.c
10
src/hlr.c
@@ -420,13 +420,9 @@ static int rx_check_imei_req(struct osmo_gsup_req *req)
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
/* Check if subscriber exists and print IMEI */
|
||||
LOGP(DMAIN, LOGL_INFO, "IMSI='%s': has IMEI = %s (consider setting 'store-imei')\n", gsup->imsi, imei);
|
||||
struct hlr_subscriber subscr;
|
||||
if (db_subscr_get_by_imsi(g_hlr->dbc, gsup->imsi, &subscr) < 0) {
|
||||
osmo_gsup_req_respond_err(req, GMM_CAUSE_INV_MAND_INFO, "IMSI unknown");
|
||||
return -1;
|
||||
}
|
||||
/* ThemWi change: report IMSI-IMEI correspondence in syslog */
|
||||
LOGP(DMAIN, LOGL_NOTICE, "IMEI REPORT: IMSI=%s has IMEI=%s\n",
|
||||
gsup->imsi, imei);
|
||||
}
|
||||
|
||||
/* Accept all IMEIs */
|
||||
|
||||
@@ -386,7 +386,7 @@ static int handle_ussd_own_msisdn(struct ss_session *ss,
|
||||
if (strlen(subscr.msisdn) == 0)
|
||||
snprintf(buf, sizeof(buf), "You have no MSISDN!");
|
||||
else
|
||||
snprintf(buf, sizeof(buf), "Your extension is %s", subscr.msisdn);
|
||||
snprintf(buf, sizeof(buf), "Your phone number is %s", subscr.msisdn);
|
||||
ss_tx_to_ms_ussd_7bit(ss, req->invoke_id, buf);
|
||||
break;
|
||||
case -ENOENT:
|
||||
|
||||
Reference in New Issue
Block a user