Setting Baud rate for GSM shield

I am using a GSM shield that I want to set up to send and receive voice calls. I want to combine code found here

http://wiki.epalsite.com/index.php?title=SIM900_Quad-Band_GPRS_shield_with_Micro_SD_card_slot#Example1-Make_a_phone_call

with a library described here

https://github.com/MarcoMartines/GSM-GPRS-GPS-Shield/blob/GSMSHIELD/doc/List.txt

and I am confused about how to set the baud rate. In the first example they set it up through softwareserial

SoftwareSerial  Sim900Serial(2, 3);

void setup()
{
  Sim900Serial.begin(115200);               // the GPRS baud rate  
  delay(2000);
  Sim900Serial.println("AT+IPR=19200");     // Set the baud rate
  delay(500);
  Sim900Serial.begin(19200);               // the GPRS baud rate   
  delay(1000); 
}

In an example using the library they set it up outside of softwareserial

void setup()
{
     pinMode(pin,INPUT);
     //Serial connection.
     Serial.begin(9600);
     Serial.println("GSM Shield testing.");
     //Start configuration of shield with baudrate.
     //For http uses is raccomanded to use 4800 or slower.
     if (gsm.begin(2400))
          Serial.println("\nstatus=READY");
     else Serial.println("\nstatus=IDLE");
};

https://github.com/MarcoMartines/GSM-GPRS-GPS-Shield/blob/GSMSHIELD/examples/GSM_GPRSLibrary_Call/GSM_GPRSLibrary_Call.ino

Here is how I currently have it

void setup()
{
  sim900Serial.begin(115200);               // the GPRS baud rate  
  delay(2000);
  sim900Serial.println("AT+IPR=19200");     // Set the baud rate
  delay(500);
  sim900Serial.begin(19200);               // the GPRS baud rate   
  delay(1000); 


//RECEIVE
  // initialize serial communications
  //"Receive Voice Call"


 if (gsm.begin(2400))//fix?
          sim900Serial.println("\nstatus=READY");
     else sim900Serial.println("\nstatus=IDLE");

  

  // This makes sure the modem notifies correctly incoming events
  vcs.hangUp();
  //"Waiting Call"



}

How would I set the shield up to function correctly? Also does anyone know if you have to use pins 2 and 3 for software serial? thanks

The GSM class creates an instance of SoftwareSerial, using pins 2 and 3. You should not, if you are using the GSM library that you linked to, be creating another instance of SoftwareSerial on those same two pins.

PaulS: The GSM class creates an instance of SoftwareSerial, using pins 2 and 3. You should not, if you are using the GSM library that you linked to, be creating another instance of SoftwareSerial on those same two pins.

What would be the proper way to set the baud rate and the value then? Could I just use the library's way for voice calls even though the baud rate is set much lower? The first way I tried out and it works but I am confused as they seem to be setting it multiple times. The library examples don't show how to use the classes I'm interested in properly.

The library examples don't show how to use the classes I'm interested in properly.

There are a number of classes involved. The examples show how to use them to achieve a specific result. The source code is right there for you to study.

If you have SPECIFIC questions, there is the forum.