Relay.Calling.HangupResult
Relay.Calling.HangupResult
This object returned from hangup method.
Methods-submenu
GetSuccessful
Return true if the hangup has succeeded, false otherwise.
Parameters
None
Returns
boolean - Whether the hangup has finished successfully.
hangupResult, err := call.Hangup()
if err != nil {
signalwire.Log.Error("Error occurred while trying to hangup call\n")
}
if hangupResult.GetSuccessful() {
signalwire.Log.Info("Call disconnect result: %s\n", hangupResult.GetReason().String())
}