Skip to main content

PCMO

The PCMO action defines programmable call media operations in the Piopiy platform, which control call flows such as playing media, bridging calls, and recording. This action allows you to manage how calls are handled in real-time by specifying actions in sequence.

To use PCMO, you need to create an instance of the StreamAction class and define the actions you want to perform. The PCMO() method can be used to remove all defined actions from the current session before executing any new actions.

const { StreamAction } = require("piopiy");

const stream = new StreamAction();

stream.PCMO()