mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
tr104: voip reset extension
This commit is contained in:
parent
c54fd95889
commit
f9e5063f35
2 changed files with 74 additions and 0 deletions
|
|
@ -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)
|
$(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/libdm/tr104/libtr104.so $(1) $(PKG_NAME)
|
||||||
ifeq ($(CONFIG_TR104_VENDOR_EXTENSIONS),y)
|
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) $(PKG_BUILD_DIR)/libdm/extensions/iowrt/libtr104ext.so $(1) $(PKG_NAME)
|
||||||
|
$(BBFDM_INSTALL_MS_PLUGIN) ./files/dm_voip.json $(1) $(PKG_NAME)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
|
|
||||||
73
tr104/files/dm_voip.json
Normal file
73
tr104/files/dm_voip.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue