[Gx] Use OGS_DIAM_GX_APPLICATION_ID define instead of hardcoded val (#1419)

This commit is contained in:
Pau Espin 2022-03-08 13:50:05 +01:00 committed by GitHub
parent c1fc25958c
commit 4388f9bf3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@
* uses some AVPs from the former, but not this one.
*/
#include <freeDiameter/extension.h>
#include "ogs-diameter-gx.h"
/* The content of this file follows the same structure as dict_base_proto.c */
@ -149,7 +150,7 @@ int ogs_dict_gx_entry(char *conffile)
{
struct dict_object * vendor;
CHECK_FCT(fd_dict_search(fd_g_config->cnf_dict, DICT_VENDOR, VENDOR_BY_NAME, "3GPP", &vendor, ENOENT));
struct dict_application_data app_data = { 16777238, "Gx" };
struct dict_application_data app_data = { OGS_DIAM_GX_APPLICATION_ID, "Gx" };
CHECK_FCT(fd_dict_new(fd_g_config->cnf_dict, DICT_APPLICATION, &app_data, vendor, NULL));
}