support 'inactive' tag for SDP media streams (simple fix, proper fix will appear in 1.4 release) (issue #7130)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Kevin P. Fleming 20 years ago
parent 25d2c99737
commit 2ef43a770b

@ -3554,12 +3554,12 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
sdpLineNum_iterator_init(&iterator); sdpLineNum_iterator_init(&iterator);
while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') { while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') {
char* mimeSubtype = ast_strdupa(a); /* ensures we have enough space */ char* mimeSubtype = ast_strdupa(a); /* ensures we have enough space */
if (!strcasecmp(a, "sendonly")) { if (!strcasecmp(a, "sendonly") || !strcasecmp(a, "inactive")) {
sendonly=1; sendonly = 1;
continue; continue;
} }
if (!strcasecmp(a, "sendrecv")) { if (!strcasecmp(a, "sendrecv")) {
sendonly=0; sendonly = 0;
} }
if (sscanf(a, "rtpmap: %u %[^/]/", &codec, mimeSubtype) != 2) continue; if (sscanf(a, "rtpmap: %u %[^/]/", &codec, mimeSubtype) != 2) continue;
if (debug) if (debug)

Loading…
Cancel
Save