switch_event: Correct the set of a uniq flag for request_param and channel_data event type.

This commit is contained in:
Marc Olivier Chouinard 2010-10-22 12:21:49 -04:00
parent 564dc7e493
commit 1166f8d0de
1 changed files with 5 additions and 1 deletions

View File

@ -350,6 +350,10 @@ SWITCH_DECLARE(switch_status_t) switch_event_create_pres_in_detailed(_In_z_ char
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;