Package com.bytedesk.call.xml_curl
Class XmlCurlService
java.lang.Object
com.bytedesk.call.xml_curl.XmlCurlService
最小可用的 mod_xml_curl XML 生成服务。
注意:当前为演示/占位实现,实际项目应从数据库/配置中心读取用户、网关、路由等信息。
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate static final booleanprivate static final booleanprivate static final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanbyte[]byte[]byte[]byte[]handlePhrases(Map<String, String> p) private static voidlogDisabled(String section, String envKey) private static voidlogNotFound(String section, String reason) private static Stringbyte[]private static String
-
Field Details
-
ENABLE_DIALPLAN
private static final boolean ENABLE_DIALPLAN -
ENABLE_DIRECTORY
private static final boolean ENABLE_DIRECTORY -
ENABLE_CONFIGURATION
private static final boolean ENABLE_CONFIGURATION -
ENABLE_PHRASES
private static final boolean ENABLE_PHRASES -
DIRECTORY_USERS
-
CONFIG_WHITELIST
-
-
Constructor Details
-
XmlCurlService
public XmlCurlService()
-
-
Method Details
-
handleDialplan
-
handleDirectory
-
handleConfiguration
-
handlePhrases
-
resultNotFound
public byte[] resultNotFound() -
logDisabled
-
logNotFound
-
pick
-
xmlEscape
-
boolEnv
-
usersEnv
-
csvEnv
-