diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 55d724a829..0734fbea6d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11122,7 +11122,7 @@ static int process_sdp_a_audio(const char *a, struct sip_pvt *p, struct ast_rtp_ if (debug) ast_verbose("Discarded description format %s for ID %u\n", mimeSubtype, codec); } - } else if (sscanf(a, "fmtp: %30u %255s", &codec, fmtp_string) == 2) { + } else if (sscanf(a, "fmtp: %30u %255[^\t\n]", &codec, fmtp_string) == 2) { struct ast_format *format; if ((format = ast_rtp_codecs_get_payload_format(newaudiortp, codec))) { @@ -11202,7 +11202,7 @@ static int process_sdp_a_video(const char *a, struct sip_pvt *p, struct ast_rtp_ if (debug) ast_verbose("Discarded description format %s for ID %u\n", mimeSubtype, codec); } - } else if (sscanf(a, "fmtp: %30u %255s", &codec, fmtp_string) == 2) { + } else if (sscanf(a, "fmtp: %30u %255[^\t\n]", &codec, fmtp_string) == 2) { struct ast_format *format; if ((format = ast_rtp_codecs_get_payload_format(newvideortp, codec))) {