Set default values in SCCP::initialize to the previews configured ones, to avoid value reset if they are missing.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4795 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
andrei 2012-01-05 11:22:29 +00:00
parent f9ac656740
commit 9b83538a2b
1 changed files with 2 additions and 2 deletions

View File

@ -2816,9 +2816,9 @@ bool SS7SCCP::initialize(const NamedList* config)
if (config) {
m_printMsg = config->getBoolValue(YSTRING("print-messages"),m_printMsg);
m_extendedDebug = config->getBoolValue(YSTRING("extended-debug"),m_extendedDebug);
m_ignoreUnkDigits = config->getBoolValue(YSTRING("ignore-unknown-digits"),true);
m_ignoreUnkDigits = config->getBoolValue(YSTRING("ignore-unknown-digits"),m_ignoreUnkDigits);
m_endpoint = config->getBoolValue(YSTRING("endpoint"),m_endpoint);
int hc = config->getIntValue("hopcounter",15);
int hc = config->getIntValue("hopcounter",m_hopCounter);
if (hc < 1 || hc > 15)
hc = 15;
m_hopCounter = hc;