]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
support 'inactive' tag for SDP media streams (simple fix, proper fix will appear...
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 18 May 2006 19:16:40 +0000 (19:16 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 18 May 2006 19:16:40 +0000 (19:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

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