forked from acouzens/open5gs
[Cx] Add sip:<MSISDN> (#921)
This commit is contained in:
parent
27cee12a7b
commit
8710cae0fd
|
@ -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,
|
||||
|
|
|
@ -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]",
|
||||
|
|
Loading…
Reference in New Issue