Need help on gprs.AttachGPRS() connection issue, using SIM800 GSM/GPRS module

Hi Team,

I need an immediate help/resolution on my SIM800 GSM/GPRS module for Arduino UNO. My sketch is not connecting with internet. I have tried with multiple providers based out in India and their specific APN. Still GPRS is not showing GPRS_READY. Where as GSM is getting turned on successfully with the “gsmAccess.begin()” method. The “gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD)” status is always in “CONNECTING” state. Expecting gprs to be in GPRS_READY state. So that my code can connect ‘GSMClient’ with other IP/server. Below, I am pasting my code sample as reference.

Code: [
#include <GSM.h>

//GPRS APN data
#define GPRS_APN “internet” // (For Idea) “imis”/“internet” // (For Vodafone) “www”/“portalnmms”/“live.vodafone.com” // replace your GPRS APN
#define GPRS_LOGIN “” // replace with your GPRS login
#define GPRS_PASSWORD “” // replace with your GPRS password

GSMClient client;
GPRS gprs;
GSM gsmAccess;

void setup()
{
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}

boolean gsmConnected = false; //–connection state
boolean grpsConnected = false;
int ok = 0;

//–Start GSM shield
while (!gsmConnected) {
Serial.println(“Trying to Connect…”);
//if (gsmAccess.begin(PINNUMBER) == GSM_READY) {
if (gsmAccess.begin() == GSM_READY)
{
Serial.println(“GSM Connected.”);

gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD);
delay(1000);
while (!grpsConnected)
{
ok = gsmAccess.getStatus();
Serial.println(ok);
if (ok == GPRS_READY)
{
Serial.println(“GPRS Connected.”);
gsmConnected = true;
grpsConnected = true;
}
else
{
Serial.println(“GPRS Connection Failed.”);
delay(1000);
}
}
}
else {
Serial.println(“GSM not connected.”);
delay(3000);
}
}
Serial.println(“GSM/GPRS initializing…”);
}

void loop()
{

}

]