From 489b633e087771d926a60274db0e0f75b9e8cd91 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sat, 16 Oct 2021 17:41:53 +0900 Subject: [PATCH] Update Supported-Feature AVP (#1202) Add the Vendor-Id AVP in Supported-Features AVP in CCR(Credit-Control-Request) --- src/pcrf/pcrf-gx-path.c | 8 ++++++++ src/smf/gx-path.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/pcrf/pcrf-gx-path.c b/src/pcrf/pcrf-gx-path.c index a7de68218..1d35470a8 100644 --- a/src/pcrf/pcrf-gx-path.c +++ b/src/pcrf/pcrf-gx-path.c @@ -544,6 +544,14 @@ static int pcrf_gx_ccr_cb( struct msg **msg, struct avp *avp, ret = fd_msg_avp_new(ogs_diam_gx_supported_features, 0, &avp); ogs_assert(ret == 0); + ret = fd_msg_avp_new(ogs_diam_vendor_id, 0, &avpch1); + ogs_assert(ret == 0); + val.i32 = OGS_3GPP_VENDOR_ID; + ret = fd_msg_avp_setvalue (avpch1, &val); + ogs_assert(ret == 0); + ret = fd_msg_avp_add (avp, MSG_BRW_LAST_CHILD, avpch1); + ogs_assert(ret == 0); + ret = fd_msg_avp_new(ogs_diam_gx_feature_list_id, 0, &avpch1); ogs_assert(ret == 0); val.i32 = 1; diff --git a/src/smf/gx-path.c b/src/smf/gx-path.c index 338ad45ce..61628a6ac 100644 --- a/src/smf/gx-path.c +++ b/src/smf/gx-path.c @@ -244,6 +244,14 @@ void smf_gx_send_ccr(smf_sess_t *sess, ogs_gtp_xact_t *xact, ret = fd_msg_avp_new(ogs_diam_gx_supported_features, 0, &avp); ogs_assert(ret == 0); + ret = fd_msg_avp_new(ogs_diam_vendor_id, 0, &avpch1); + ogs_assert(ret == 0); + val.i32 = OGS_3GPP_VENDOR_ID; + ret = fd_msg_avp_setvalue (avpch1, &val); + ogs_assert(ret == 0); + ret = fd_msg_avp_add (avp, MSG_BRW_LAST_CHILD, avpch1); + ogs_assert(ret == 0); + ret = fd_msg_avp_new(ogs_diam_gx_feature_list_id, 0, &avpch1); ogs_assert(ret == 0); val.i32 = 1;