add Unique-ID to sofia::ack_request

This commit is contained in:
Nadin Zajimovic 2023-11-28 15:08:38 +01:00
parent 341a341fbb
commit 1af73396dd

View File

@ -1751,6 +1751,7 @@ static void our_sofia_event_callback(nua_event_t event,
}
if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, MY_EVENT_ACK_REQUEST) == SWITCH_STATUS_SUCCESS) {
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Unique-ID", switch_core_session_get_uuid(session));
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "ack_received", "true");
switch_event_fire(&event);
}