diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index bf4fd1b7bf..0e21566aef 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1176,7 +1176,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi case SWITCH_MESSAGE_INDICATE_MEDIA_RENEG: { if (msg->string_arg) { - sofia_set_pflag(tech_pvt->profile, PFLAG_RENEG_ON_REINVITE); + sofia_set_media_flag(tech_pvt->profile, SCMF_RENEG_ON_REINVITE); sofia_clear_flag(tech_pvt, TFLAG_ENABLE_SOA); } diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.h b/src/mod/endpoints/mod_sofia/mod_sofia.h index 95e70468a4..01b68bad25 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.h +++ b/src/mod/endpoints/mod_sofia/mod_sofia.h @@ -251,8 +251,6 @@ typedef enum { PFLAG_PRESENCE_ON_REGISTER, PFLAG_PRESENCE_ON_FIRST_REGISTER, PFLAG_NO_CONNECTION_REUSE, - PFLAG_RENEG_ON_HOLD, - PFLAG_RENEG_ON_REINVITE, PFLAG_RTP_NOTIMER_DURING_BRIDGE, PFLAG_LIBERAL_DTMF, PFLAG_AUTO_ASSIGN_PORT, diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 696579b1b9..25f3408ce2 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -3852,15 +3852,15 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name) } } else if (!strcasecmp(var, "renegotiate-codec-on-hold")) { if (switch_true(val)) { - sofia_set_pflag(profile, PFLAG_RENEG_ON_HOLD); + sofia_set_media_flag(profile, SCMF_RENEG_ON_HOLD); } else { - sofia_clear_pflag(profile, PFLAG_RENEG_ON_HOLD); + sofia_clear_media_flag(profile, SCMF_RENEG_ON_HOLD); } } else if (!strcasecmp(var, "renegotiate-codec-on-reinvite")) { if (switch_true(val)) { - sofia_set_pflag(profile, PFLAG_RENEG_ON_REINVITE); + sofia_set_media_flag(profile, SCMF_RENEG_ON_REINVITE); } else { - sofia_clear_pflag(profile, PFLAG_RENEG_ON_REINVITE); + sofia_clear_media_flag(profile, SCMF_RENEG_ON_REINVITE); } } else if (!strcasecmp(var, "presence-probe-on-register")) { if (switch_true(val)) {