From d6de133896da4a292861becb55c027768d968c26 Mon Sep 17 00:00:00 2001 From: sznoname <109931850+sznoname@users.noreply.github.com> Date: Fri, 24 May 2024 15:03:37 +0800 Subject: [PATCH] Update mod_sofia.c --- src/mod/endpoints/mod_sofia/mod_sofia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 22234e4d09..b2a30961cc 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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"); } else { 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")); nua_notify(tech_pvt->nh, NUTAG_NEWSUB(1), NUTAG_SUBSTATE(nua_substate_active), TAG_IF(!zstr(rr), SIPTAG_ROUTE_STR(rr), SIPTAG_ROUTE(rr)),