gsmHangup (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All with voice/DTMF capability

Firmware version:

1.00 / 1.00.00


This closes an active connection from the GSM module. After this call, the GSM module is no longer in session.

If the call has not been answered with gsmAnswer, the call will be rejected.

 

Input:

None.

 

Returns:

None.

 

Declaration:

FUNCTION gsmHangup;

 

 

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;