Hangup
The hangup action will hangup the call. For example, you can hangup the incoming call without answering it.
- Curl
- Node.js
- Python
Hangup action JSON
[
{
action: "hangup"
}
]
Parameters type and description
Parameter | Type | Description |
---|---|---|
*action | string | The PCMO action to control the flow of the call. |
Note
All above parameters are mandatory.
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.
const { PiopiyAction } = require("piopiy");
const action = new PiopiyAction();
action.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.
from piopiy import Action
action = Action()
action.hangup()