用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/duclm1x1/Dive-Ai --skill dsiprouter命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | dsiprouter |
| description | Call the dSIPRouter REST API using the Postman collection (curl + jq). |
| metadata | {"openclaw":{"emoji":"📡","requires":{"bins":["curl","jq"],"env":["DSIP_ADDR","DSIP_TOKEN"]}}} |
This skill is generated from the Postman collection and provides:
curl calling conventionbin/dsiprouter.sh helper CLI with subcommands for the collection’s requestsDSIP_ADDR — hostname/IP of your dSIPRouter node (no scheme)DSIP_TOKEN — API bearer tokenDSIP_INSECURE=1 to allow self-signed TLS (adds -k)Base URL:
https://$DSIP_ADDR:5000/api/v1Auth header:
Authorization: Bearer $DSIP_TOKENdsip_api() {
local method="$1"; shift
local path="$1"; shift
local insecure=()
if [ "${DSIP_INSECURE:-}" = "1" ]; then insecure=(-k); fi
curl "${insecure[@]}" --silent --show-error --fail-with-body \
--connect-timeout 5 --max-time 30 \
-H "Authorization: Bearer ${DSIP_TOKEN}" \
-H "Content-Type: application/json" \
-X "${method}" "https://${DSIP_ADDR}:5000${path}" \
"$@"
}
# list subcommands
dsiprouter.sh help
# list endpoint groups
dsiprouter.sh endpointgroups:list | jq .
# create inbound mapping with your own JSON payload
dsiprouter.sh inboundmapping:create '{"did":"13132222223","servers":["#22"],"name":"Taste Pizzabar"}' | jq .
# or send the Postman sample body
dsiprouter.sh inboundmapping:create --sample | jq .
dsiprouter.sh kamailio:stats | jq .
dsiprouter.sh kamailio:reload | jq .
endpointgroups:list → GET /api/v1/endpointgroupsendpointgroups:get → GET /api/v1/endpointgroups/9 — Get a single endpointgroupendpointgroups:create → POST /api/v1/endpointgroups — Create an endpointgroupendpointgroups:create_1 → POST /api/v1/endpointgroups — Create an endpointgroupendpointgroups:create_2 → POST /api/v1/endpointgroups — Create an endpointgroupendpointgroups:create_3 → POST /api/v1/endpointgroups — Create an endpointgroupendpointgroups:delete → DELETE /api/v1/endpointgroups/53 — Delete endpointgroupendpointgroups:update → PUT /api/v1/endpointgroups/34 — Update an endpointgroupkamailio:reload → POST /api/v1/reload/kamailio — Trigger a reload of Kamailio. This is needed after changes are madekamailio:list → GET /api/v1/kamailio/stats — Obtain call statisticsinboundmapping:list → GET /api/v1/inboundmapping — Get a list of inboundmappingsinboundmapping:create → POST /api/v1/inboundmapping — Create new inboundmappinginboundmapping:update → PUT /api/v1/inboundmapping?did=13132222223 — Create new inboundmappinginboundmapping:delete → DELETE /api/v1/inboundmapping?did=13132222223 — Create new inboundmappingleases:list → GET /api/v1/lease/endpoint?email=mack@goflyball.com&ttl=5m — Get a single endpointgroupleases:list_1 → GET /api/v1/lease/endpoint?email=mack@goflyball.com&ttl=1m&type=ip&auth_ip=172.145.24.2 — Get a single endpointgroupleases:revoke → DELETE /api/v1/lease/endpoint/34/revoke — Get a single endpointgroupcarriergroups:list → GET /api/v1/carriergroupscarriergroups:create → POST /api/v1/carriergroupsauth:create → POST /api/v1/auth/userauth:update → PUT /api/v1/auth/user/2auth:delete → DELETE /api/v1/auth/user/2auth:list → GET /api/v1/auth/userauth:login → POST /api/v1/auth/logincdr:get → GET /api/v1/cdrs/endpointgroups/17?type=csv&dtfilter=2022-09-14&email=Truecdr:get_1 → GET /api/v1/cdrs/endpoint/54bin/dsiprouter.sh