From 536feccfa0e7216f24831d89559bc644c0bcf32f Mon Sep 17 00:00:00 2001 From: Howell Yan <1726474652@qq.com> Date: Mon, 16 Oct 2023 21:45:07 +0800 Subject: [PATCH] Update mod_sofia.c --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index f05bea20dd..dff5d2e2c1 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -5027,7 +5027,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session sofia_glue_attach_private(nsession, profile, tech_pvt, dest); // specify rtp ip by variable - if (!zstr(switch_event_get_header(var_event, "rtp_ip_v4"))) { + if (!zstr(tech_pvt->mparams) && !zstr(switch_event_get_header(var_event, "rtp_ip_v4"))) { tech_pvt->mparams.rtpip4 = switch_core_strdup(profile->pool, switch_event_get_header(var_event, "rtp_ip_v4")); tech_pvt->mparams.rtpip = tech_pvt->mparams.rtpip4; }