MT#65074 update usage of `getParameter()`

Update the usage of the `getParameter()` through
the modules, whereas the default value isn't given.

Change-Id: I4c725639f56b70e5548fa3da321c8452675cdf99
mr26.1.1
Donat Zenichev 3 months ago
parent c4c5c6a286
commit 853adb4246

@ -363,7 +363,7 @@ bool SBCCallProfile::readFromConfiguration(const string& name,
refuse_with = cfg.getParameter("refuse_with");
rtprelay_enabled = cfg.getParameter("enable_rtprelay");
aleg_force_symmetric_rtp = cfg.getParameter("rtprelay_force_symmetric_rtp");
aleg_force_symmetric_rtp = cfg.getParameter("rtprelay_force_symmetric_rtp","yes");
force_symmetric_rtp = aleg_force_symmetric_rtp;
msgflags_symmetric_rtp = cfg.getParameter("rtprelay_msgflags_symmetric_rtp") == "yes";

@ -44,6 +44,9 @@ using std::string;
#define MOD_NAME "uac_auth"
#define DEFAULT_SERVER_SECRET "CKASLD§$>NLKJSLDKFJ"
EXPORT_SESSION_EVENT_HANDLER_FACTORY(UACAuthFactory, MOD_NAME);
EXPORT_PLUGIN_CLASS_FACTORY(UACAuthFactory, MOD_NAME);
@ -100,7 +103,7 @@ int UACAuthFactory::onLoad()
cfg_file_path.c_str());
secret = AmSession::getNewId(); // ?? TODO: is this cryptoproof?
} else {
secret = conf.getParameter("server_secret");
secret = conf.getParameter("server_secret",DEFAULT_SERVER_SECRET);
if (secret.size()<5) {
ERROR("server_secret in '%s' too short!\n", cfg_file_path.c_str());
return -1;

Loading…
Cancel
Save