Config¶
-
public class
Config
¶ IVR provider configuration, represents how the IVR module interacts with an IVR provider
Constructors¶
Config¶
-
public
Config
(String name, boolean authRequired, String username, String password, List<String> ignoredStatusFields, String statusFieldMapString, String servicesMapString, String callStatusMappingString, HttpMethod outgoingCallMethod, boolean jsonRequest, String outgoingCallUriTemplate, boolean jsonResponse, List<String> jsonExtraParamsList)¶
Methods¶
getOutgoingCallMethod¶
-
public HttpMethod
getOutgoingCallMethod
()¶
mapStatusField¶
-
public String
mapStatusField
(String fieldName)¶ When pinging Motech back to provide call status, IVR providers sometimes send fields with different names than those that are used by the system. For example the originating number is sometimes provided as ‘callerid’ whereas Motech uses the name ‘from’. The statusFieldMap config field contains such a mapping of field names. And mapStatusField() returns that mapping or the original field name if no mapping exists.
Parameters: - fieldName –
setOutgoingCallMethod¶
-
public void
setOutgoingCallMethod
(HttpMethod outgoingCallMethod)¶