I think you has a mistake in your question.
You want and you used the /call-out API to make outbound calls but since the dynamic deviceID problem then you cannot rely on the /call-out API to make calls from the RC app. Correct?
Then now you want to switch to the /ring-out API instead, but you are worried about the situation where the agent declines/ignores the call (first call leg) and the customer’s (second call leg) phone still keeps ringing and when the customer answers the call, the agent is not on the call, right?
If so, you can set the parameter for the /ring-out API call like this.
var params = {
'from' : { 'phoneNumber': "The-Agent-PhoneNumber" },
'to' : {'phoneNumber': "The-Customer-PhoneNumber"},
'callerId' : { 'phoneNumber': 'A-Valid-CallerID'}, // If you want to set
'playPrompt' : true
}
This will tell the system first to call the agent, if the agent picks up the call, press 1, then the system will place a call to the customer’s number. If the agent ignores the call, the system will not call the customer’s number.
If this is not what you ask, please explain your question again.