A method for communicating between two layers of a functionally-layered programmable telecommunication switch system utilizing a universal standardized application program interface (API), the method comprising the steps of:
- (1) invoking one or more instantiations of a layer-specific program protocol language (PPL) component state machine at a layer-specific PPL processor having a state machine engine, each of said one or more instantiations representing a call processing protocol;
- (2) invoking atomic functions in accordance with state/event and primitive tables defining said state machine and stored in the layer-specific PPL processor to perform various functions, said atomic functions generating internal representations of a PPL event indication message;
- (3) creating an atomic function message buffer, by said layer-specific PPL processor, including a destination identification field and a source identification field containing respective addresses of said source and receiving PPL component instantiation;
- (4) attaching said message buffer to said internal representations of said PPL event indication message generated by said atomic functions;
- (5) transferring said internally-represented PPL event indication message to a communications processor coupled to said layer-specific PPL processor for translation into a universal standardized API PPL event indication message;
- and
- (6) transmitting said universal standardized API PPL event indication message to another PPL component state machine instantiation residing in the same or different layer-specific PPL processors.