diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 52b8b5256f..c215f56c76 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -101,8 +101,8 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t * } } - if (!zstr(profile->rtpip[profile->rtpip_next6])) { - tech_pvt->mparams.rtpip6 = switch_core_session_strdup(session, profile->rtpip[profile->rtpip_next6++]); + if (!zstr(profile->rtpip6[profile->rtpip_next6])) { + tech_pvt->mparams.rtpip6 = switch_core_session_strdup(session, profile->rtpip6[profile->rtpip_next6++]); if (zstr(tech_pvt->mparams.rtpip)) { tech_pvt->mparams.rtpip = tech_pvt->mparams.rtpip6;