SIM900 Call Problem

Hi,
I am using sim900 with arduino using the SIM900 Librairies.
The idea is an alarm system and to activate the alarm when receiving call from authorized number once this call is received we send an sms to inform that the alarm system in on.
Then once the PIR is on we activate an alram noise and then we call a specified number.

The only part not working is to call the specified number is like the sim900 is blocked at this stage:
call.Call(number);

Here is the source code:

#include “SIM900.h”
#include <SoftwareSerial.h>
//We don’t need the http functions. So we can disable the next line.
//#include “inetGSM.h”
#include “sms.h”
#include “call.h”
/*

  • PIR sensor tester
  • The pir range is 3…7 meter
  • when motion is detected out will be high from 3s to 5 min
    */

CallGSM call;
char number="+XXXXXXXXX";

char number2[20];

int lock = 0; // false means no security

int ledPin = 13; // choose the pin for the ALRAM 105DB
int inputPin = 7; // choose the input pin (for PIR sensor)
//int pirState = LOW; // we start, assuming no motion detected
int val = 0; // variable for reading the pin status
byte stat=0;
SMSGSM sms;
void setup() {

Serial.begin(9600);
Serial.println(“start”);
//delay(60000);
Serial.println(“after 1min”);
if (gsm.begin(2400))
Serial.println("\nstatus=READY");
else
Serial.println("\nstatus=IDLE");

pinMode(ledPin, OUTPUT); // declare LED as output
pinMode(inputPin, INPUT); // declare sensor as input
//delay(60000);
}

void loop(){

//Chekcs status of call
stat=call.CallStatusWithAuth(number2,1,100);
//If the incoming call is from an authorized number
//saved on SIM in the positions range from 1 to 1000.
if(stat==CALL_INCOM_VOICE_AUTH) {
delay(2000);
call.HangUp();
if (lock) {
sms.SendSMS(number2,“boutique ouverte”);
lock=0;
}else{
sms.SendSMS(number2,“boutique fermee”);
lock=1;
}
}

val = digitalRead(inputPin); // read input value
Serial.println(val);
if ((val == HIGH) && (lock == 1)) { // check if the input is HIGH
digitalWrite(ledPin, HIGH); // turn LED ON
Serial.println(“Motion detected!”);
Serial.println(“Chiamo”);

call.Call(number);
delay(4000);
call.HangUp();

delay(296000);
Serial.println(“Chiamata in corso”);
} else {
digitalWrite(ledPin, LOW); // turn LED OFF
Serial.println(“Motion ended!”);
}
delay(1000);
}

Hi
Please any one have played with sim900

Thanks