FXS Onhook/Offhook detection

Hi folks,
Does the asterisk provide any functions for detecting the status of Onhook, or Offhook for FXS? I’m using Digium TDM400P with FXS module.
:astonished:
Thanks
Carpenters