[Cx] Add sip:<MSISDN> (#921)

This commit is contained in:
Sukchan Lee 2021-04-08 23:09:13 +09:00
parent 27cee12a7b
commit 8710cae0fd
2 changed files with 6 additions and 1 deletions

View File

@ -861,6 +861,11 @@ char *hss_cx_download_user_data(
hss_cx_associate_identity(user_name, public_identity);
ogs_free(public_identity);
public_identity = ogs_msprintf("sip:%s", ims_data->msisdn[i].bcd);
ogs_assert(public_identity);
hss_cx_associate_identity(user_name, public_identity);
ogs_free(public_identity);
public_identity = ogs_msprintf(
"sip:%s@ims.mnc%03d.mcc%03d.3gppnetwork.org",
ims_data->msisdn[i].bcd,

View File

@ -682,7 +682,7 @@ static int hss_ogs_diam_cx_sar_cb( struct msg **msg, struct avp *avp,
goto out;
}
/* Check if IMSI */
/* Check if Visited-PLMN-ID from S6A */
visited_plmn_id = hss_cx_get_visited_plmn_id(public_identity);
if (!visited_plmn_id) {
ogs_error("Cannot find PLMN-ID for User-Name[%s] Public-Identity[%s]",