Im trying to figure out if the number format Im using is causing the sketch to just hang after I make the Call call:
char number[]="+50494502578";
Im in Honduras whose country code is indeed 504. But whenever I run the sketch:
//#include <GSM.h>
#include "SIM900.h"
#include <SoftwareSerial.h>
#include "call.h"
CallGSM call;
char number[]="+50494502578";
int value=0;
int value_old;
int pin=9;
void setup(){
Serial.begin(9600);
if (gsm.begin(2400))
Serial.println("\nstatus=READY");
else Serial.println("\nstatus=IDLE");
value=digitalRead(pin);
value_old=digitalRead(pin);
};
void loop(){
if(call.CallStatus()!= CALL_ACTIVE_VOICE){
// IF NOT ACTIVE CALL................................>>>>>>>>>>
Serial.println("Call");
call.Call(number);
delay(100000);
}
}
It stays there after printing Call in the Serial Monitor, but the phone doesn't ring.
The module works, I believe. I have successfully sent SMS messages from it to that same phone number from that same sim number.