diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 2fe6be6eb6..bdfed18191 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1564,6 +1564,10 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force) return SWITCH_STATUS_FALSE; } + if (switch_rtp_ready(tech_pvt->rtp_session)) { + switch_rtp_set_default_samples_per_interval(tech_pvt->rtp_session, tech_pvt->read_codec.implementation->samples_per_packet); + } + tech_pvt->read_frame.rate = tech_pvt->rm_rate; ms = tech_pvt->write_codec.implementation->microseconds_per_packet / 1000;