call.hangup() is a soft hangup. Rather than cutting the call immediately, it hands the agent a final instruction and lets it close the conversation naturally before ending the call. Callers hear a proper goodbye.
- Python
- TypeScript
signature
Example
- Python
- TypeScript
example.py