gsmOffHook (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All with voice/DTMF capability

Firmware version:

1.00 / 1.00.00


This function checks whether the GSM module is in active conversation with another phone.

 

Input:

None.

         

Returns: BOOL

TRUE:

In session with another telephone.

FALSE:

Not in session with another telephone.

 

 

Declaration:

FUNCTION gsmOffHook : BOOL;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Turn on power to the GSM module, use no pin code
gsmPower(power := TRUE);
 
BEGIN
  ...
  // Check if GSM module is in session with another telephone
  IF gsmOffHook() = TRUE THEN
     // We are connected to another telephone
     ...
  ELSE
     // No session active
     ...
  END_IF;
END;
 
END_PROGRAM;