Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 41c8902327aa42af9718980acf9260d3621f2a50
      
https://github.com/OpenSIPS/opensips/commit/41c8902327aa42af9718980acf9260d3621f2a50
  Author: Bogdan-Andrei Iancu <[email protected]>
  Date:   2016-01-26 (Tue, 26 Jan 2016)

  Changed paths:
    M modules/sipmsgops/codecs.c

  Log Message:
  -----------
  Fix codec handling functions when faulty streams are defined.

Bogus test on the return code of stream_process() (using bitwise OR for -1, 0 
and 1 values :O ), leads to a generic failure to find any codec in any stream 
if there is an invalid stream in the SDP.
For example, if a video stream is defined but with no codecs, stream_process() 
will return -1 for it (as it is a bogus stream). While iterating through all 
the stream (including the valid audio stream), the -1 ret code will discard any 
1 future ret code due the bogus bitwise OR.

(cherry picked from commit ef82ca2368462c41f7115202e90f73d8ab16fd1f)

Conflicts:
        modules/sipmsgops/codecs.c


_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to