set channel data to sofia::ack_request

This commit is contained in:
Nadin Zajimovic 2023-11-29 10:41:56 +01:00
parent 1af73396dd
commit c71a9132f6
1 changed files with 1 additions and 0 deletions

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_channel_event_set_data(channel, event);
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);