Module: sems
Branch: master
Commit: 77464487b97a8bebc1c3730db3ffe161e6bb4976
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=77464487b97a8bebc1c3730db3ffe161e6bb4976

Author: Václav Kubart <[email protected]>
Committer: Václav Kubart <[email protected]>
Date:   Fri Apr 20 08:13:54 2012 +0200

b/f: codec preference - one codec_preference item can match multiple payloads 
in SDP

For example having codec_preference=speex and input SDP with speex/8000 and
speex/16000, both the speex payloads need to be preferred.

---

 apps/sbc/SBCCallProfile.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/apps/sbc/SBCCallProfile.cpp b/apps/sbc/SBCCallProfile.cpp
index 30b740f..ece7c3a 100644
--- a/apps/sbc/SBCCallProfile.cpp
+++ b/apps/sbc/SBCCallProfile.cpp
@@ -846,7 +846,8 @@ void SBCCallProfile::CodecPreferences::orderSDP(AmSdp& sdp, 
bool a_leg)
           }
        
          ++pos; // next payload index
-          break;
+          // do not terminate the inner loop because one PayloadDesc can match
+          // more payloads!
        }
       }
     }

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to