}
String template = "sip_template.vm";
// Enable SIP Template or not
Configuration SIP_ENABLE = getConfigurationmanagement().getConfKey(
3L, "sip.enable");
// SIP_REALM
ctx.put("APP_NAME", getConfigurationmanagement().getAppName());
if (SIP_ENABLE == null || !SIP_ENABLE.getConf_value().equals("yes")) {
template = "usual_template.vm";
} else {
// Set all the Params for the Applet Configuration
// SIP_REALM
Configuration SIP_REALM = getConfigurationmanagement()
.getConfKey(3L, "sip.realm");
if (SIP_REALM == null) {
ctx.put("SIP_REALM", "");
} else {
ctx.put("SIP_REALM", SIP_REALM.getConf_value());
}
// SIP_PORT
Configuration SIP_PORT = getConfigurationmanagement()
.getConfKey(3L, "sip.port");
if (SIP_PORT == null) {
ctx.put("SIP_PORT", "");
} else {
ctx.put("SIP_PORT", SIP_PORT.getConf_value());
}
// SIP_PROXYNAME
Configuration SIP_PROXYNAME = getConfigurationmanagement()
.getConfKey(3L, "sip.proxyname");
if (SIP_PROXYNAME == null) {
ctx.put("SIP_PROXYNAME", "");
} else {
ctx.put("SIP_PROXYNAME", SIP_PROXYNAME.getConf_value());
}
// SIP_TUNNEL
Configuration SIP_TUNNEL = getConfigurationmanagement()
.getConfKey(3L, "sip.tunnel");
if (SIP_TUNNEL == null) {
ctx.put("SIP_TUNNEL", "");
} else {
ctx.put("SIP_TUNNEL", SIP_TUNNEL.getConf_value());
}
// SIP_CODEBASE
Configuration SIP_CODEBASE = getConfigurationmanagement()
.getConfKey(3L, "sip.codebase");
if (SIP_CODEBASE == null) {
ctx.put("SIP_CODEBASE", "");
} else {
ctx.put("SIP_CODEBASE", SIP_CODEBASE.getConf_value());
}
// SIP_FORCETUNNEL
Configuration SIP_FORCETUNNEL = getConfigurationmanagement()
.getConfKey(3L, "sip.forcetunnel");
if (SIP_FORCETUNNEL == null) {
ctx.put("SIP_FORCETUNNEL", "");
} else {
ctx.put("SIP_FORCETUNNEL", SIP_FORCETUNNEL.getConf_value());
}
}
// Parse the Param for the SWF URL
String swf = httpServletRequest.getParameter("swf");