Update mod_sofia.c

This commit is contained in:
sznoname 2024-05-24 15:03:37 +08:00 committed by GitHub
parent 86331b65ca
commit d6de133896
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1835,6 +1835,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
"Operation not permitted on an inbound non-answered call leg!\n"); "Operation not permitted on an inbound non-answered call leg!\n");
} else { } else {
const char *session_id_header = sofia_glue_session_id_header(session, tech_pvt->profile); const char *session_id_header = sofia_glue_session_id_header(session, tech_pvt->profile);
const char *rr = switch_channel_get_variable(channel, "sip_invite_record_route");
full_to = switch_str_nil(switch_channel_get_variable(channel, "sip_full_to")); full_to = switch_str_nil(switch_channel_get_variable(channel, "sip_full_to"));
nua_notify(tech_pvt->nh, NUTAG_NEWSUB(1), NUTAG_SUBSTATE(nua_substate_active), nua_notify(tech_pvt->nh, NUTAG_NEWSUB(1), NUTAG_SUBSTATE(nua_substate_active),
TAG_IF(!zstr(rr), SIPTAG_ROUTE_STR(rr), SIPTAG_ROUTE(rr)), TAG_IF(!zstr(rr), SIPTAG_ROUTE_STR(rr), SIPTAG_ROUTE(rr)),