The task is to enable / disable certain services using the radio button / checkbox from the web muzzle, by changing the text file (in the lua script it changes to true to false and vice versa), the problem for me is that I cannot turn on / off Off services one by one, but only stupidly the menu is all "true" to "false", tried through the cycle "for", but something didn’t work out very well, if the question sounds silly and childish, I apologize in advance. Textbook that needs to be changed attached.
CONNECT = 20 REPORT = 23 CONTINUE = 31 APPLYCHARGING = 35 REP_APP_CON = 233531 BYPASS_all_SERVICES = "OFF" -- OFF/ON local SIP_TERM = { SERVICE_BYPASS = true, APP_SERVER_TYPE = "HTTP", APP_SERVER_IP = "999.999.1.8", IDP_RES = CONNECT, ParamRequet = { "CALLING_NUM", "CALLED_NUM"} } local ROAM_CHECK = { SERVICE_BYPASS = true, APP_SERVER_TYPE = "ORACLE", APP_SERVER_IP = "RADIUS", --настройки коннекта в /usr/lib/instantclient_12_1/tnsnames.ora IDP_RES = REP_APP_CON, ParamRequet = { "CALLING_NUM", "CALLED_NUM"} } if BYPASS_all_SERVICES == "ON" then print("\nContinue") return 1, 0, CONTINUE -- Отправляем Continue elseif SIP_TERM.SERVICE_BYPASS == true then print("\nSIPOnly") return 2, SIP_TERM.APP_SERVER_IP, SIP_TERM.IDP_RES -- SIPOnly elseif ROAM_CHECK.SERVICE_BYPASS == true then print("\nROAM_CHECK") return 3, ROAM_CHECK.APP_SERVER_IP, ROAM_CHECK.IDP_RES -- ROAM_CHECK else print("Нет такого игрока") -- если BYPASS - ни одно из перечисленных end Appended Data