From 312996e26c793460869c5569d73cb4159a13f996 Mon Sep 17 00:00:00 2001 From: gokuls Date: Fri, 18 Aug 2017 16:38:13 -0400 Subject: Modified hardcoded eventname id to user defined Issue-Id: VNFRQTS-77 Change-Id: I7141a1cd5206893007873efbeaef377e5e00c96b Signed-Off-by: Gokul Singaraju --- .../VES5.0/evel/evel-library/code/evel_library/evel_sipsignaling.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel_sipsignaling.c') diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_sipsignaling.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_sipsignaling.c index 09c95cd0..45f53487 100644 --- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_sipsignaling.c +++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_sipsignaling.c @@ -33,6 +33,8 @@ * this factory function and are immutable once set. Optional fields * have explicit setter functions, but again values may only be set * once so that the event has immutable properties. + * @param event_name Unique Event Name confirming Domain AsdcModel Description + * @param event_id A universal identifier of the event for: troubleshooting correlation, analysis, etc * @param vendor_name The vendor id to encode in the event vnf field. * @param module The module to encode in the event. * @param vnfname The Virtual network function to encode in the event. @@ -41,7 +43,8 @@ * ::evel_free_signaling. * @retval NULL Failed to create the event. *****************************************************************************/ -EVENT_SIGNALING * evel_new_signaling(const char * const vendor_name, +EVENT_SIGNALING * evel_new_signaling(const char* ev_name, const char *ev_id, + const char * const vendor_name, const char * const correlator, const char * const local_ip_address, const char * const local_port, @@ -72,7 +75,7 @@ EVENT_SIGNALING * evel_new_signaling(const char * const vendor_name, /***************************************************************************/ /* Initialize the header & the Signaling fields. */ /***************************************************************************/ - evel_init_header(&event->header,"SipSignaling"); + evel_init_header_nameid(&event->header,ev_name,ev_id); event->header.event_domain = EVEL_DOMAIN_SIPSIGNALING; event->major_version = EVEL_SIGNALING_MAJOR_VERSION; event->minor_version = EVEL_SIGNALING_MINOR_VERSION; -- cgit 1.2.3-korg