|
@@ -1745,6 +1745,20 @@ void CSIPEntity::Handle_AdjustVideoEchoEvent(const char* pszMessage)
|
|
|
}
|
|
|
|
|
|
|
|
|
+void CSIPEntity::InitFreshTimeConfig()
|
|
|
+{
|
|
|
+ CSmartPointer<IConfigInfo> spCacheConfig;
|
|
|
+ GetFunction()->OpenConfig(Config_Cache, spCacheConfig);
|
|
|
+
|
|
|
+ int value(0);
|
|
|
+ spCacheConfig->ReadConfigValueInt("SIPPhone", "lfreshtime", value);
|
|
|
+ if (value > 0) {
|
|
|
+ LogWarn(Severity_Middle, Error_Debug, EVENT_MOD_SIP_OVERWRITE_FRESHVALUE,
|
|
|
+ CSimpleStringA::Format("overwrite lfreshtime from global cache: %d", value));
|
|
|
+ m_ilocalvideo_freshtime = value;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
ErrorCodeEnum CSIPEntity::LoadConfig(endpoint_conf_t *conf)
|
|
|
{
|
|
|
CSmartPointer<IEntityFunction> spFunction = GetFunction();
|
|
@@ -1776,7 +1790,6 @@ ErrorCodeEnum CSIPEntity::LoadConfig(endpoint_conf_t *conf)
|
|
|
table.AddEntryInt("audio", "pickup_out_volume", m_kept_volume_out[DEV_PICKUP], 0);
|
|
|
table.AddEntryInt("video", "quant", conf->quant, 0);
|
|
|
table.AddEntryInt("video", "mtu", conf->mtu, 0);
|
|
|
- table.AddEntryInt("video", "lfreshtime", m_ilocalvideo_freshtime, 200);
|
|
|
Error = table.Load(spRootConfig);
|
|
|
if (Error == Error_Succeed) {
|
|
|
int id;
|
|
@@ -1868,10 +1881,12 @@ ErrorCodeEnum CSIPEntity::LoadConfig(endpoint_conf_t *conf)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ InitFreshTimeConfig();
|
|
|
+
|
|
|
return Error;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//载入运行时配置
|
|
|
ErrorCodeEnum CSIPEntity::LoadAudioRunConfig(int&nHandfreeout,int&nPickupout,int&nHandfreein,int&nPickupin)
|
|
|
{
|