Hi,

I am trying to get the IAP Proxy gateway address and port. The following code snippet is used to get the address. It works on nokia 6600 but it does not work with Nokia7610, Nokia6630. I get always 0.0.0.0. Moreover I can not get the proxy port which is defined in the WAPIPBearer table. It would be really nice to know how to get WAP proxy address and port.

// Connected iap id is passed to get the proxy address
// associated with this IAP

TPtrC GetProxyAddress(TUint32 aIapId) const
{
// open commdb
CCommsDatabase* commDb = CCommsDatabase::NewL(EDatabaseTypeIAP);
CleanupStack::PushL(commDb);
TBuf<30> gwAddr;

_LIT(KWAPSqlBuf, "SELECT * FROM WAPIPBearer WHERE IAP = %d");
TBuf<50> sql;
sql.Format(KWAPSqlBuf,aIapId);

CCommsDbTableView* commView = commDb->OpenViewLC( _L( "WAPIPBearer" ), sql );

if (commView->GotoFirstRecord() == KErrNone)
{
do
{
commView->ReadTextL(TPtrC(WAP_GATEWAY_ADDRESS), gwAddr);
}while (commView->GotoNextRecord() == KErrNone);
}
CleanupStack::PopAndDestroy(commView);
CleanupStack::PopAndDestroy(commDb);
return gwAddr;
}