The syntax of the onsignal_declaration required consists of a statement_block between onsignal...endonsignal keywords. The onsignal is jumped to when a hangup signal is received by the program (usually when a call disconnect signal is received from the calling party or called party in a telecommunications application).
onsignal
{ statement_block }
endonsignal