mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
Voice: Change uci config from dectmngr to dect
This commit is contained in:
parent
818288d6e2
commit
3b1b7b37e0
1 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@
|
|||
static int get_ServicesVoiceServiceDECTPortable_Name(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
char *ipui = dmjson_get_value((json_object *)data, 1, "ipui");
|
||||
dmuci_get_option_value_string("dectmngr", ipui, "name", value);
|
||||
dmuci_get_option_value_string("dect", ipui, "name", value);
|
||||
if ((*value)[0] == '\0')
|
||||
dmasprintf(value, "DECT%s", instance);
|
||||
|
||||
|
|
@ -35,8 +35,8 @@ static int set_ServicesVoiceServiceDECTPortable_Name(char *refparam, struct dmct
|
|||
break;
|
||||
case VALUESET:
|
||||
ipui = dmjson_get_value((json_object *)data, 1, "ipui");
|
||||
if ((s = get_origin_section_from_config("dectmngr", "handset", ipui)) == NULL) {
|
||||
dmuci_add_section("dectmngr", "handset", &s);
|
||||
if ((s = get_origin_section_from_config("dect", "handset", ipui)) == NULL) {
|
||||
dmuci_add_section("dect", "handset", &s);
|
||||
dmuci_rename_section_by_section(s, ipui);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue