SIM900 setup

Can anyone pease help me regarding setup of SIM900
I have used PUTTY ,and my modem is working fine with its terminal ,but whenever i do the same thing with my arduino,it isnt working....
This is my small verifying code that isnt working.

sketch_feb27a.ino (285 Bytes)

Is this a stand alone SIM900, one built into a shield? Can you provide a link?

Are you using an Uno?

Assuming you are using an Uno, and you have connected it up as per that document you linked to:

void setup()
{
  Serial.begin(9600);
  //Serial.println("Initiallizing....");
  delay(100);
  Serial.println("AT\r");
  delay(1000);
  Serial.println("AT\r");
  delay(1000);
  Serial.println("ATD+91(10 digit phon no.);\r");
  delay(30000);
  Serial.println("ATH\r");
}

void loop()
{
}

Obviously put the recipients number where stated. Assuming they are in India you need the +91.