[Cx] Chanage IMPUs (#921)

Change the order of IMPUs sent in XML as follows and also have only the
following IMPUs

i.e.
    1. sip:<MSISDN>@ims.mnc<MNC>.mcc<MCC>.3ggpnetwork.org
    2. tel:<MSISDN>
This commit is contained in:
Sukchan Lee 2021-04-30 07:07:52 +09:00
parent 8cf606fd6b
commit 19a8e4cd70
1 changed files with 5 additions and 10 deletions

View File

@ -856,16 +856,6 @@ char *hss_cx_download_user_data(
for (i = 0; i < ims_data->num_of_msisdn; i++) {
char *public_identity = NULL;
public_identity = ogs_msprintf("tel:%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_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,
@ -873,6 +863,11 @@ char *hss_cx_download_user_data(
ogs_assert(public_identity);
hss_cx_associate_identity(user_name, public_identity);
ogs_free(public_identity);
public_identity = ogs_msprintf("tel:%s", ims_data->msisdn[i].bcd);
ogs_assert(public_identity);
hss_cx_associate_identity(user_name, public_identity);
ogs_free(public_identity);
}