event_subscribe
Subscribe to OpenSIPS events by specifying an event name, transport socket, and optional TTL to receive event notifications at the defined endpoint.
Instructions
Subscribe to an OpenSIPS event at a given transport socket.
Parameters
event:
Event name (e.g. E_DLG_STATE_CHANGED).
socket:
Destination URI for event delivery — format depends on the backend
(udp:host:port, rabbitmq:cluster/exchange, flatstore:/path).
expire:
Subscription TTL in seconds; 0 = permanent until OpenSIPS restart.
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": {
"event": "<event>",
"socket": "<socket>"
},
"name": "event_subscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| socket | Yes | ||
| expire | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||