From 1166f8d0ded8745800ef57115bb5896808f68a5f Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Fri, 22 Oct 2010 12:21:49 -0400 Subject: [PATCH] switch_event: Correct the set of a uniq flag for request_param and channel_data event type. --- src/include/switch_event.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/switch_event.h b/src/include/switch_event.h index 1864e397e6..41bc75cada 100644 --- a/src/include/switch_event.h +++ b/src/include/switch_event.h @@ -345,11 +345,15 @@ SWITCH_DECLARE(switch_status_t) switch_event_create_pres_in_detailed(_In_z_ char */ #define switch_event_create(event, id) switch_event_create_subclass(event, id, SWITCH_EVENT_SUBCLASS_ANY) - static inline switch_status_t switch_event_create_plain(switch_event_t **event, switch_event_types_t event_id) +static inline switch_status_t switch_event_create_plain(switch_event_t **event, switch_event_types_t event_id) { switch_status_t status = switch_event_create(event, SWITCH_EVENT_CLONE); if (status == SWITCH_STATUS_SUCCESS) { (*event)->event_id = event_id; + + if (event_id == SWITCH_EVENT_REQUEST_PARAMS || event_id == SWITCH_EVENT_CHANNEL_DATA) { + (*event)->flags |= EF_UNIQ_HEADERS; + } } return status;