From f9e5063f35b34b4aa7d061ef12273dd011e833c5 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Sun, 14 Sep 2025 19:01:06 +0530 Subject: [PATCH] tr104: voip reset extension --- tr104/Makefile | 1 + tr104/files/dm_voip.json | 73 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 tr104/files/dm_voip.json diff --git a/tr104/Makefile b/tr104/Makefile index b16dda51b..75ed48ffd 100644 --- a/tr104/Makefile +++ b/tr104/Makefile @@ -82,6 +82,7 @@ ifeq ($(CONFIG_TR104_RUNAS_BBFDM_MICROSERVICE),y) $(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/libdm/tr104/libtr104.so $(1) $(PKG_NAME) ifeq ($(CONFIG_TR104_VENDOR_EXTENSIONS),y) $(BBFDM_INSTALL_MS_PLUGIN) $(PKG_BUILD_DIR)/libdm/extensions/iowrt/libtr104ext.so $(1) $(PKG_NAME) + $(BBFDM_INSTALL_MS_PLUGIN) ./files/dm_voip.json $(1) $(PKG_NAME) endif else $(INSTALL_DIR) $(1)/usr/sbin diff --git a/tr104/files/dm_voip.json b/tr104/files/dm_voip.json new file mode 100644 index 000000000..74fee1fd1 --- /dev/null +++ b/tr104/files/dm_voip.json @@ -0,0 +1,73 @@ +{ + "json_plugin_version": 2, + "Device.Services.VoiceService.{i}.SIP.Client.{i}.": { + "type": "object", + "protocols": [ + "cwmp", + "usp" + ], + "access": true, + "array": true, + "X_GENEXIS_EU_reset": { + "type": "string", + "read": false, + "write": true, + "protocols": [ + "cwmp", + "usp" + ], + "mapping": [ + { + "rpc": "set", + "type": "ubus", + "ubus": { + "object": "voip", + "method": "reset", + "args": { + "sip": "@Value" + } + } + } + ] + }, + "X_GENEXIS_EU_reset()": { + "type": "command", + "async": true, + "protocols": [ + "usp" + ], + "input": { + "sip": { + "type": "string", + "read": "true", + "write": "true", + "protocols": [ + "usp" + ] + } + }, + "output": { + "result": { + "type": "string", + "read": "true", + "write": "false", + "protocols": [ + "usp" + ] + } + }, + "mapping": [ + { + "type": "ubus", + "ubus": { + "object": "voip", + "method": "reset", + "args": { + "sip": "@Input.sip" + } + } + } + ] + } + } +}