gsmAnswer (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All with voice/DTMF capability

Firmware version:

1.00 / 1.00.00


This answers an incoming call on the GSM module. After this call, the GSM module is in session with the calling party.

 

Input:

None.

         

Returns:

None.

 

Declaration:

FUNCTION gsmAnswer;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
VAR
  incoming : gsmIncomingCall;
END_VAR;
 
// Turn on power to the GSM module, use no pin code
gsmPower(power := TRUE);
 
BEGIN
  ...
  // Check for incoming calls
  IF incoming.status = 1 THEN
     // Somebody is calling us with a callerid
     // Answer incoming call
    gsmAnswer();
    // Play the "Hello" message
    voiceTalk(message := "Hello");
    // Hangup the phone
    gsmHangup();
     ...
  END_IF;
END;
 
END_PROGRAM;