Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/mod/endpoints/mod_sofia/sofia.c
Original file line number Diff line number Diff line change
Expand Up @@ -1713,6 +1713,8 @@ static void our_sofia_event_callback(nua_event_t event,

if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
switch_channel_set_variable(channel, "dlg_req_swap_direction", "true");
} else {
switch_channel_set_variable(channel, "dlg_req_swap_direction", "false");
}

extract_header_vars(profile, sip, session, nh);
Expand Down Expand Up @@ -7229,6 +7231,8 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status

if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_INBOUND) {
switch_channel_set_variable(channel, "dlg_req_swap_direction", "true");
} else {
switch_channel_set_variable(channel, "dlg_req_swap_direction", "false");
}

extract_header_vars(profile, sip, session, nh);
Expand Down