fix voice issus

This commit is contained in:
Imen Bhiri 2015-09-18 10:43:12 +01:00
parent 3947ce1033
commit dbd0096d1b
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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"