Author Message
DaveSolarz
Joined: Nov 15, 2013
Messages: 18
Offline
Can you set the Delay Seconds for a Transitional Audio message from a variable similar to setting fetchtimeout?

I want to pass the seconds from a property file into the OD application and then set the transitional delay field.


Below code sets the fetchtimeout property from a variable, is there an equivalent properties variable for the transitional delay seconds property?

public void updateProperties(Collection properties, SCESession mySession){
super.updateProperties(properties, mySession);
//Get Properties Variables
IVariableField propVar = mySession.getVariableField(IProjectVariables.PROPERTIES,
IProjectVariables.PROPERTIES_FIELD_FETCHTIMEOUT);
String timeout = propVar.getStringValue();
properties.add(new com.avaya.sce.runtime.Property("fetchtimeout", timeout));
mySession.getTraceOutput().writeln(ITraceInfo.TRACE_LEVEL_INFO, " fetchtimeout has been set to " +timeout);


Thanks,
Dave

}
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
try this:

property = new com.avaya.sce.runtime.Property("fetchaudiodelay", "5s");
properties.add(property);
DaveSolarz
Joined: Nov 15, 2013
Messages: 18
Offline
That worked!

Thank-you,
Dave
Go to:   
Mobile view