cfg_add_module
Add a module with optional parameters to an existing OpenSIPS configuration by inserting loadmodule and modparam directives after the last module block.
Instructions
Add a module (with optional modparams) to an existing OpenSIPS configuration.
Inserts the loadmodule directive and any modparam lines after the
last existing loadmodule or modparam block.
Parameters
config_content:
The existing OpenSIPS configuration text.
module_name:
The module to add (e.g. dispatcher, rtpengine).
params:
Optional dict of {param_name: value} to set via modparam.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"config_content": "<config_content>",
"module_name": "<module_name>"
},
"name": "cfg_add_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config_content | Yes | ||
| module_name | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||