Location of (GSM) libary files

Hi,
I have to change the timeout parameter of the voiceCall() function of the GSMVoiceCall libarary. I can´t find it, but some years ago i managed to do so, therefore I know that it is quite easy.

The name of the file is/was GSM3VoiceCallService.h

The function to change ist

int voiceCall(const char* to, unsigned long timeout=30000);
		
		/** Accept an incoming voice call
			@return In asynchronous mode returns 0 if last command is still executing, 1 success, >1 error
					In synchronous mode returns 1 if the call is answered, 0 if not.
		*/

Anyone who knows how to edit?

An easy way to find the location of an Arduino library on your computer is:

  • File > Examples > GSM > GsmWebClient (or any other example sketch of the library)
  • Sketch > Show Sketch Folder. This will open the GSM/examples/GsmWebClient folder.
  • Navigate from there to the GSM/src folder. In that folder, you will find the file you're looking for.
int voiceCall(const char* to, unsigned long timeout=30000);

The default value is 30000, but can you not override that when calling the function ?

Thanks for the answers. Both are working, but I decided for the solution from @UKHeliBob, because I think that is more elegant and will prevent problems if the IDE will be reinstalled.

I agree. It's far better to use the API provided than to edit the library. I didn't take the time to read your question carefully. I only saw that you wanted to find the library source files so you could edit them.