Hello there,

I'm designing a application using a specific APN for that I search it using the standart method:
CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
CCommsDbTableView* commView = commDb->OpenTableLC(TPtrC(OUTGOING_GPRS));
if (commView->GotoFirstRecord() == KErrNone){
do{
commView->ReadUintL(TPtrC(COMMDB_ID), iIapUid);
...
}while(commView->GotoNextRecord() != KErrNotFound );
}

The problem is that I'm getting 29 as an IAP UID while I should get a IAP UID of 29+5=34 to use it as follow:
TCommDbConnPref prefs;
prefs.SetBearerSet(ECommDbBearerGPRS);
prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
prefs.SetDirection(ECommDbConnectionDirectionOutgoing);
prefs.SetIapId(iapId);

Does anybody know the reason why there is such a difference between COMMDB_ID and IAP UID ?

Regards,

Fabien