Set default values in SCCP::initialize to the previews configured ones, to avoid value reset if they are missing.
git-svn-id: http://voip.null.ro/svn/yate@4795 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
87ca662604
commit
421024c509
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue