module_scaffold
Generate a complete OpenSIPS C module skeleton. Creates all necessary files for a new module including C source, header, Makefile, and README. Supports optional MI command and parameter definitions.
Instructions
Generate a complete OpenSIPS C module skeleton.
Creates all necessary files for a new OpenSIPS module: C source, header, Makefile, README, and optional MI command implementations.
Parameters
name:
Module name (e.g. my_module). Must be a valid C identifier.
description:
Short description of the module's purpose.
mi_commands_json:
JSON array of MI commands. Each element should have name,
optional description, and optional params (list of strings).
Example: [{"name": "my_cmd", "description": "Does something", "params": ["arg1"]}]
params_json:
JSON array of module parameters. Each element should have name,
type (str or int), and optional default.
Example: [{"name": "db_url", "type": "str", "default": "mysql://localhost/opensips"}]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | No | ||
| mi_commands_json | No | [] | |
| params_json | No | [] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||