--- a/voipplugins/svtmatching/src/svtmatching.cpp Wed Sep 01 12:29:57 2010 +0100
+++ b/voipplugins/svtmatching/src/svtmatching.cpp Tue Sep 14 21:02:05 2010 +0300
@@ -107,7 +107,8 @@
//
TInt CSvtMatching::GetAddressForMatching(
RBuf& aParsedAddress,
- TInt& aMeaningfulDigits )
+ TInt& aMeaningfulDigits,
+ TBool& aAllowUserNameMatch )
{
if( iServiceId == 0 || !iOriginalAddress )
{
@@ -127,8 +128,31 @@
if ( KErrNone == ret )
{
aMeaningfulDigits = iSettingsHandler->MeaningfulDigits();
- }
- }
+
+ switch ( iSettingsHandler->IgnoreDomainPartValue() )
+ {
+ case 1:
+ {
+ aAllowUserNameMatch = EFalse;
+ if ( iUriParser->IsValidGsmNumber( aParsedAddress ) )
+ {
+ aAllowUserNameMatch = ETrue;
+ }
+ }
+ break;
+ case 2:
+ {
+ aAllowUserNameMatch = ETrue;
+ }
+ break;
+ case 0:
+ default:
+ aAllowUserNameMatch = EFalse;
+ break;
+ }
+ }
+ }
+
return ret;
}