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:
- Node.js
- Python
const { PiopiyAction } = require("piopiy");
const action = new PiopiyAction();
action.hangup()
from piopiy import Action
# Create an instance of the Action class
action = Action()
action.hangup()