Relay.Calling.DialResult
Relay.Calling.DialResult
This object returned from Calling dial and Call dial methods.
Methods-submenu
GetSuccessful
Return true if the call was picked up by the remote party, false otherwise.
Parameters
Return true if the call was picked up by the remote party, false otherwise.
Parameters
None
Returns
boolean - Whether the call has been answered.
Examples
Start an outbound Call and then check if the
dialhas completed successfully.
newCall := consumer.Client.Calling.NewCall(fromNumber, toNumber)
resultDial := consumer.Client.Calling.Dial(newCall)
if !resultDial.GetSuccessful() {
if err := consumer.Stop(); err != nil {
signalwire.Log.Error("Error occurred while trying to stop Consumer")
}
return
}