--- a/multimediacommsengine/mmceshared/src/mcecomamrwbcodec.cpp Thu Aug 19 10:18:22 2010 +0300
+++ b/multimediacommsengine/mmceshared/src/mcecomamrwbcodec.cpp Tue Aug 31 15:35:13 2010 +0300
@@ -300,8 +300,24 @@
//
CMceComCodec* CMceComAMRWbCodec::DoMccValidateL( CMccCodecInformation& aMccCodec,
CMceSrvStream& /*aStream*/,
- TMceNegotiationRole /*aRole */)
+ TMceNegotiationRole aRole )
{
+ //if answerer mcc codec represents the received offer and codec the answer
+ //if offerer codec represents the sent offer and mcc codec the answer
+
+ // Bitrates field contains also additional information, mask it away
+ /*
+ TUint mccBitrates = ( aMccCodec.AllowedBitrates() & KMceAllowedAmrWbBitrateAll );
+ TUint mceBitrates = ( iAllowedBitrates & KMceAllowedAmrWbBitrateAll );
+
+ TBool notValid = aRole == EMceRoleAnswerer ?
+ ( mceBitrates && mccBitrates == 0 ||
+ mceBitrates > mccBitrates ) :
+ ( mceBitrates && mccBitrates == 0 ||
+ mceBitrates < mccBitrates );
+
+ */
+// User::LeaveIfError( notValid ? KErrNotSupported : KErrNone );
if ( aMccCodec.CodecMode() != (TCodecMode)iCodecMode )
{
// codec-mode was different, fail.