Author Message
SreeniRaghavan3
Joined: Jan 17, 2014
Messages: 3
Offline
Hi, can you please confirm if connectPredictive/cstaMakePredictiveCall can provide us event for fax machine and answering machine? What are the different call progress event supported please (assuming that we have advanced TSAPI license)?
ShantanuJoshi
Joined: Dec 12, 2013
Messages: 21
Offline
When you make a predictive call with answering treatment and the call connects, the result of the call classification is returned as the value of the reason field in the Established event. To get this value in JTAPI, add a call listener to the call object on which you are calling connectPredictive, and in the connectionEstablished method, use the following code -

public void connectionEstablished(CallControlConnectionEvent callcontrolconnectionevent) {

Call call = callcontrolconnectionevent.getCall();
if (call instanceof LucentCallInfo) {
    int reason = ((LucentCallInfo)call).getReason();
}
}

The value of reason will be one of the values defined in LucentCallInfo. For example, the value of AR_ANSWER_MACHINE_DETECTED means an answering machine was detected at the dialled station.
SreeniRaghavan3
Joined: Jan 17, 2014
Messages: 3
Offline
Thanks for the reply Shantanu. Can this function return fax machine and human voice detection also?
ShantanuJoshi
Joined: Dec 12, 2013
Messages: 21
Offline
Voice detection is supported, the matching reason code is AR_ANSWER_VOICE_ENERGY.
I am not sure about fax machines, but based on my reading of the Communication Manager hardware description document, it is not supported. You can try asking in the AE Services Sever Platform forum to confirm this.
Go to:   
Mobile view