gsm wont send an integer

I wrote this code and it will not send me the value of "dumps". i have tested if it sends a "0" and it does

#include "SIM900.h"
#include <SoftwareSerial.h>

#include "sms.h"
SMSGSM sms;
boolean started=false;
char smsbuffer[160];
int dumps=0;
char n[20];
void setup() {
 if (gsm.begin(2400)){
    started=true;  
  }
  
  if(started){
   sms.SendSMS("12268406059", "Networking initialized");
   }
}

void loop() {
 if(started){
    //Read if there are messages on SIM card and print them.
    if(gsm.readSMS(smsbuffer, 160, n, 20))
    {
      sms.SendSMS("12268406059",dumps);
    }
 }
}
 bool sendSMS(char* number, char* data);

The function expects a string (char*) for data, not an int. Change the int to a string with itoa().

Maybe try:

sms.SendSMS("12268406059",itoa(dumps));

itoa reference.

itoa(dumps));

too few arguments to function 'char* itoa(int, char*, int)'

Oops.

How ablut this:

char buffer[10];  // adjust size to suit
itoa(dumps, buffer, 10);
sms.SendSMS("12268406059", buffer);

I should have looked at the reference closer. :-[