Skip to main content

Hangup

To end a call session in the PCMO platform, you can use the hangup() method in the PiopiyAction class. This method terminates the ongoing call without requiring any parameters.

hangup()
  • No parameters. Ends the call.

Example Implementation

  • The following code demonstrates how to end a call:
const { PiopiyAction } = require("piopiy");

const action = new PiopiyAction();

action.hangup()