aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c
diff options
context:
space:
mode:
authorgokuls <goksing@gmail.com>2017-08-18 16:38:13 -0400
committergokuls <goksing@gmail.com>2017-08-18 17:03:52 -0400
commit312996e26c793460869c5569d73cb4159a13f996 (patch)
tree76b415b13afdd55543fe508879949ad58b62b55c /vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c
parentbdc999846e5888a4e4c87b2fbdf06123f32b0c0f (diff)
Modified hardcoded eventname id to user defined
Issue-Id: VNFRQTS-77 Change-Id: I7141a1cd5206893007873efbeaef377e5e00c96b Signed-Off-by: Gokul Singaraju <goksing@gmail.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c')
-rw-r--r--vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c
index c3826cab..cf2ec878 100644
--- a/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c
+++ b/vnfs/VES5.0/evel/evel-library/code/evel_library/evel_voicequality.c
@@ -34,6 +34,8 @@
* factory function and are immutable once set. Optional fields have
* explicit setter functions, but again values may only be set once
* so that the Voice Quality has immutable properties.
+ * @param event_name Unique Event Name
+ * @param event_id A universal identifier of the event for analysis etc.
* @param calleeSideCodec Callee codec for the call.
* @param callerSideCodec Caller codec for the call.
* @param correlator Constant across all events on this call.
@@ -45,7 +47,8 @@
::evel_free_voice_quality.
* @retval NULL Failed to create the event.
*****************************************************************************/
-EVENT_VOICE_QUALITY * evel_new_voice_quality(const char * const calleeSideCodec,
+EVENT_VOICE_QUALITY * evel_new_voice_quality(const char* ev_name, const char *ev_id,
+ const char * const calleeSideCodec,
const char * const callerSideCodec, const char * const correlator,
const char * const midCallRtcp, const char * const vendorName) {
@@ -82,7 +85,7 @@ EVENT_VOICE_QUALITY * evel_new_voice_quality(const char * const calleeSideCodec,
/* Initialize the header & the fault fields. Optional integer values are */
/* initialized as 0. */
/***************************************************************************/
- evel_init_header(&voiceQuality->header,"voiceQuality");
+ evel_init_header_nameid(&voiceQuality->header,ev_name,ev_id);
voiceQuality->header.event_domain = EVEL_DOMAIN_VOICE_QUALITY;
voiceQuality->major_version = EVEL_VOICEQ_MAJOR_VERSION;
voiceQuality->minor_version = EVEL_VOICEQ_MINOR_VERSION;