Commit 466b3842 authored by Amin Ben Ramdhane's avatar Amin Ben Ramdhane

Update default configs + Fix diagnostic issue

parent ec20a84c
Pipeline #984 passed with stage
in 53 seconds
......@@ -45,4 +45,4 @@ config cwmp 'cpe'
config cwmp 'lwn'
option enable '1'
option hostname ''
option port ''
option port '0'
......@@ -2,7 +2,7 @@ config udpechoserver 'udpechoserver'
option enable '0'
option interface ''
option address ''
option server_port ''
option server_port '0'
option plus '0'
#Log levels: Critical=0, Warning=1, Notice=2, Info=3, Debug=4
option log_level '3'
......@@ -16,9 +16,9 @@ config xmpp_connection
option usetls '0'
option interval '30'
option attempt '16'
option initial_retry_interval ''
option retry_interval_multiplier ''
option retry_max_interval ''
option initial_retry_interval '1'
option retry_interval_multiplier '1000'
option retry_max_interval '1'
option serveralgorithm 'DNS-SRV'
config xmpp_connection_server
......@@ -27,4 +27,5 @@ config xmpp_connection_server
option enable '0'
option connection_server_alias ''
option port '5222'
option server_address ''
\ No newline at end of file
option server_address ''
\ No newline at end of file
......@@ -156,7 +156,7 @@ int cwmp_start_diagnostic(int diagnostic_type)
CWMP_LOG(INFO,"Launch Download diagnostic with url %s", url);
icwmpd_cmd("/bin/sh", 5, DOWNLOAD_DIAGNOSTIC_PATH, "run", "cwmp", url, interface);
uci_get_state_value("cwmp.@downloaddiagnostic[0].DiagnosticState", &status);
if (status && strcmp(status, "Completed") == 0)
if (status && strcmp(status, "Complete") == 0)
{
init_download_stats();
CWMP_LOG(INFO,"Extract Download stats");
......@@ -175,7 +175,7 @@ int cwmp_start_diagnostic(int diagnostic_type)
CWMP_LOG(INFO,"Launch Upload diagnostic with url %s", url);
icwmpd_cmd("/bin/sh", 6, UPLOAD_DIAGNOSTIC_PATH, "run", "cwmp", url, interface, size);
uci_get_state_value("cwmp.@uploaddiagnostic[0].DiagnosticState", &status);
if (status && strcmp(status, "Completed") == 0)
if (status && strcmp(status, "Complete") == 0)
{
init_upload_stats();
CWMP_LOG(INFO,"Extract Upload stats");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment