Fix the DIAMETER_MISSING_AVP on Rx #610

This commit is contained in:
Sukchan Lee 2020-10-16 14:05:49 -04:00
parent c052193a37
commit c244dcc5e9
3 changed files with 22 additions and 6 deletions

View File

@ -766,8 +766,10 @@ int pcrf_gx_send_rar(
*/
if (gx_message.pdn.qos.qci != OGS_PDN_QCI_5 ||
gx_message.pdn.qos.arp.priority_level != 1) {
ogs_error("CHECK WEBUI : No APN in DB with [QCI:%d]", qci);
ogs_error("Please add APN using WEBUI");
ogs_error("CHECK WEBUI : Even the Default "
"Bearer(QCI:%d,ARP:%d) cannot support IMS signalling.",
gx_message.pdn.qos.qci,
gx_message.pdn.qos.arp.priority_level);
rx_message->result_code =
OGS_DIAM_RX_DIAMETER_REQUESTED_SERVICE_NOT_AUTHORIZED;
goto out;

View File

@ -670,8 +670,10 @@ static int pcrf_rx_str_cb( struct msg **msg, struct avp *avp,
sess_data->gx_sid, sess_data->rx_sid, &rx_message);
if (rv != OGS_OK) {
result_code = rx_message.result_code;
ogs_error("pcrf_gx_send_rar() failed");
goto out;
if (result_code != ER_DIAMETER_SUCCESS) {
ogs_error("pcrf_gx_send_rar() failed");
goto out;
}
}
}

View File

@ -1161,9 +1161,9 @@ static void test3_func(abts_case *tc, void *data)
"\"downlink\" : { \"$numberLong\" : \"1000000\" } "
"},"
"\"qos\" : { "
"\"qci\" : 6, "
"\"qci\" : 5, "
"\"arp\" : { "
"\"priority_level\" : 6,"
"\"priority_level\" : 1,"
"\"pre_emption_vulnerability\" : 1, "
"\"pre_emption_capability\" : 1"
"} "
@ -1426,6 +1426,18 @@ static void test3_func(abts_case *tc, void *data)
/* DELAY is needed in default EPS bearer */
ogs_msleep(100);
/* Send AA-Request */
pcscf_rx_send_aar_ctrl(&rx_sid, sess,
OGS_DIAM_RX_SUBSCRIPTION_ID_TYPE_END_USER_SIP_URI);
/* DELAY is needed for receiving AA-Answer */
ogs_msleep(100);
pcscf_rx_send_str(rx_sid);
/* DELAY is needed for receiving Session-Termination-Answer */
ogs_msleep(100);
/* Send GTP-U ICMP Packet */
rv = test_gtpu_send_ping(gtpu, bearer, TEST_PING_IPV4);
ABTS_INT_EQUAL(tc, OGS_OK, rv);