tr104: voip reset extension

This commit is contained in:
Vivek Kumar Dutta 2025-09-14 19:01:06 +05:30
parent c54fd95889
commit f9e5063f35
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
2 changed files with 74 additions and 0 deletions

View file

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

73
tr104/files/dm_voip.json Normal file
View file

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