diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 9b30730691..bc048cf2eb 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -13360,15 +13360,15 @@ static void add_audio_codec(sdp_rtpmap_t *map, const switch_codec_implementation map_bit_rate = switch_known_bitrate((switch_payload_t)map->rm_pt); if (!ptime && !strcasecmp(map->rm_encoding, "g723")) { - ptime = codec_ms = 30; + codec_ms = 30; } if (zstr(map->rm_fmtp)) { if (!strcasecmp(map->rm_encoding, "ilbc")) { - ptime = codec_ms = 30; + codec_ms = 30; map_bit_rate = 13330; } else if (!strcasecmp(map->rm_encoding, "isac")) { - ptime = codec_ms = 30; + codec_ms = 30; map_bit_rate = 32000; } } else {