XTAPI sample code to display Gateway Status events