From c2c24f5c24d181d25e63e8bf3d9d3581641ce797 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Tue, 30 Jun 2020 11:09:58 -0700 Subject: [PATCH] Respect SPV related config in alias declarations --- lib/session.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/session.ts b/lib/session.ts index a07e889..50312ee 100644 --- a/lib/session.ts +++ b/lib/session.ts @@ -2305,9 +2305,27 @@ export async function rpcResponse( if (!parameterList.length) { sessionContext.rpcRequest = null; } else { + const DATETIME_MILLISECONDS = !!localCache.getConfig( + sessionContext.cacheSnapshot, + "cwmp.datetimeMilliseconds", + {}, + sessionContext.timestamp, + e => configContextCallback(sessionContext, e) + ); + + const BOOLEAN_LITERAL = !!localCache.getConfig( + sessionContext.cacheSnapshot, + "cwmp.booleanLiteral", + {}, + sessionContext.timestamp, + e => configContextCallback(sessionContext, e) + ); + const r: SetAcsRequest = { name: "SetParameterValues", - parameterList: parameterList + parameterList: parameterList, + DATETIME_MILLISECONDS: DATETIME_MILLISECONDS, + BOOLEAN_LITERAL: BOOLEAN_LITERAL }; sessionContext.rpcRequest = r; }