hangup
End the call. The call transitions through the ending state and then to
ended. Any active operations (play, record, etc.) are stopped automatically
when the call ends.
Parameters
reason
The end reason string sent to the server. Valid values:
"hangup"— normal hangup (default)"cancel"— cancel the call"busy"— signal busy"decline"— decline the call
Returns
dict — Server response confirming the hangup.