A gateway adapter for a circuit switched PBX system to allow the PBX system to interoperate with a packet switched network containing a remote services unit. In addition, the catalyst and the hydrogen generator can both be located in the same component. The FSAM comprises a function specific abstract logic for implementing functional logic and a micro state engine for generating and monitoring one or more control signals, at least one of the control signals being generated by execution of a dynamic script for controlling the FSAL.