Skip to main content
Glama

didlogic_mcp

update_sip_account

Update SIP account settings including caller ID, call limits, IP restrictions, and number rewriting rules on the DIDLogic MCP server for enhanced call management.

Instructions

Creates a SIP account

Args: name: SIP account name password: Password to be used for this SIP account callerid: CallerID associated with this SIP account label: label fot this SIP account rewrite_enabled: do SIP account have calling number rewriting rule rewrite_cond: prefix to be rewrited (ex: 00) rewrite_prefix: prefix to what should be rewritten (ex: 44) didinfo_enabled: do DIDLogic will attempt send DID number as TO when receiving calls to this account ip_restrict: do we need to allowlist IP addresses for this account call_restrict: flag indicates what SIP account should have maximum call time call_limit: maximum call duration in seconds channels_restrict: flag indicates what SIP account should have maximum channels limit max_channels: maximum sip channels cost_limit: flag indicates what SIP account should have maximum call cost max_call_cost: maximum call cost for this SIP account

Returns a JSON object with SIP account details where: id: ID of SIP account name: SIP account name (login) callerid: CallerID associated with this SIP account label: label fot this SIP account charge: charge for calls on this month talk_time: total talk time for this month rewrite_enabled: do SIP account have calling number rewriting rule rewrite_cond: prefix to be rewrited (ex: 00) rewrite_prefix: prefix to what should be rewritten (ex: 44) didinfo_enabled: do DIDLogic will attempt send DID number as TO when receiving calls to this account ip_restrict: do we need to allowlist IP addresses for this account allowed_ips: IP addresses allowed for this SIP account call_restrict: flag indicates what SIP account should have maximum call time call_limit: maximum call duration in seconds channels_restrict: flag indicates what SIP account should have maximum channels limit max_channels: maximum sip channels cost_limit: flag indicates what SIP account should have maximum call cost max_call_cost: maximum call cost for this SIP account created_at: date of creation this SIP account

Example:

{ "sipaccount": { "id": 61, "name": "12345", "callerid": "17254999999", "label": "TEST DEVICE", "host": "dynamic", "charge": "0.0", "talk_time": 0, "rewrite_enabled": false, "rewrite_cond": "8", "rewrite_prefix": "7", "didinfo_enabled": false, "ip_restrict": false, "call_restrict": true, "call_limit": 2800, "channels_restrict": false, "max_channels": 1, "cost_limit": false, "max_call_cost": "5.0", "created_at": "2024-06-03 06:06:47 UTC", "allowed_ips": ["1.2.3.4", "3.4.5.6"] } }

Input Schema

NameRequiredDescriptionDefault
call_limitNoMaximum call duration for SIP account in seconds
call_restrictNoEnable call duration limit for SIP account
calleridNoCallerid for use with this SIP account
channels_restrictNoEnable concurrent calls limit
cost_limitNoEnable maximum call cost for SIP account
didinfo_enabledNoEnable DID number in inbound calls
ip_restrictNoEnable IP restriction for SIP account
labelNoLabel for SIP account
max_call_costNoMaximum call cost for SIP account
max_channelsNoCount of concurrent calls limit
nameYesSIP Account name
passwordNoPassword for SIP account
rewrite_condNoPrefix to remove from number
rewrite_enabledNoEnable number rewriting for calls
rewrite_prefixNoPrefix to add to number

Input Schema (JSON Schema)

{ "properties": { "call_limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Maximum call duration for SIP account in seconds", "title": "Call Limit" }, "call_restrict": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Enable call duration limit for SIP account", "title": "Call Restrict" }, "callerid": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Callerid for use with this SIP account", "title": "Callerid" }, "channels_restrict": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Enable concurrent calls limit", "title": "Channels Restrict" }, "cost_limit": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Enable maximum call cost for SIP account", "title": "Cost Limit" }, "didinfo_enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Enable DID number in inbound calls", "title": "Didinfo Enabled" }, "ip_restrict": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Enable IP restriction for SIP account", "title": "Ip Restrict" }, "label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Label for SIP account", "title": "Label" }, "max_call_cost": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Maximum call cost for SIP account", "title": "Max Call Cost" }, "max_channels": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Count of concurrent calls limit", "title": "Max Channels" }, "name": { "anyOf": [ { "type": "string" }, { "type": "integer" } ], "description": "SIP Account name", "title": "Name" }, "password": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Password for SIP account", "title": "Password" }, "rewrite_cond": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Prefix to remove from number", "title": "Rewrite Cond" }, "rewrite_enabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Enable number rewriting for calls", "title": "Rewrite Enabled" }, "rewrite_prefix": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Prefix to add to number", "title": "Rewrite Prefix" } }, "required": [ "name" ], "title": "update_sip_accountArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/UserAd/didlogic_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server