Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 62249) +++ channels/chan_sip.c (working copy) @@ -14158,19 +14158,24 @@ return 0; } - if (strcasecmp(args.param, "rtpqos")) + if (!ast_strlen_zero(args.param) && strcasecmp(args.param, "rtpqos")) return 0; memset(buf, 0, buflen); memset(&qos, 0, sizeof(qos)); - if (strcasecmp(args.type, "AUDIO") == 0) { + if (ast_strlen_zero(args.type)) + return -1; + else if (strcasecmp(args.type, "AUDIO") == 0) { all = ast_rtp_get_quality(p->rtp, &qos); } else if (strcasecmp(args.type, "VIDEO") == 0) { all = ast_rtp_get_quality(p->vrtp, &qos); - } + } else + return -1; - if (strcasecmp(args.field, "local_ssrc") == 0) + if (ast_strlen_zero(args.field)) + return -1; + else if (strcasecmp(args.field, "local_ssrc") == 0) snprintf(buf, buflen, "%u", qos.local_ssrc); else if (strcasecmp(args.field, "local_lostpackets") == 0) snprintf(buf, buflen, "%u", qos.local_lostpackets);