From dbd0096d1b02210dd1bd5caf969e0660d5cbe69e Mon Sep 17 00:00:00 2001 From: Imen Bhiri Date: Fri, 18 Sep 2015 10:43:12 +0100 Subject: [PATCH] fix voice issus --- dm/dmtree/voice_services.c | 2 +- inc/cwmp.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dm/dmtree/voice_services.c b/dm/dmtree/voice_services.c index 555f08e..bea1f52 100644 --- a/dm/dmtree/voice_services.c +++ b/dm/dmtree/voice_services.c @@ -1374,7 +1374,7 @@ int set_line_x_002207_brcm_line(char *refparam, struct dmctx *ctx, int action, c } dmuci_get_option_value_string("voice_client", bname, "sip_account", &sipaccount); dmuci_get_option_value_string("voice_client", bname, "lineinstance", &lineinstance); - if ((sipaccount[0] != '\0' && sipaccount[0] != '-') || lineinstance[0] != '\0') + if ((sipaccount[0] != '\0' && sipaccount[0] != '-')) return 0; dmuci_get_value_by_section_string(brcmargs->brcm_section, "sip_account", &sipaccount); dmuci_get_value_by_section_string(brcmargs->brcm_section, "lineinstance", &lineinstance); diff --git a/inc/cwmp.h b/inc/cwmp.h index f925bf1..86e9ecf 100644 --- a/inc/cwmp.h +++ b/inc/cwmp.h @@ -26,8 +26,8 @@ #define MIN_INT_ID 836464 #define PERIOD_INFORM_MIN 60 #define PERIOD_INFORM_DEFAULT 86400 -#define CONNECTION_REQUEST_RESTRICT_PERIOD 10 -#define CONNECTION_REQUEST_RESTRICT_REQUEST 10 +#define CONNECTION_REQUEST_RESTRICT_PERIOD 5 +#define CONNECTION_REQUEST_RESTRICT_REQUEST 50 #define DEFAULT_CONNECTION_REQUEST_PORT 7547 #define DEFAULT_ACSURL "http://192.168.1.1:8080/openacs/acs"