İçeriğe geç
TakoAPI
Becerilere dön

dsiprouter-skill

mackhendricks tarafından

CLI Utilities
—Henüz değerlendirilmedi
Puanınız

Özet

Call the dSIPRouter REST API using the Postman.

Açıklama

Bu Beceri Ne Yapar

Wraps the dSIPRouter REST API with a curl-based calling convention and a bundled CLI helper. Generated from the official Postman collection, it covers endpoint groups, inbound mappings, carrier groups, leases, CDRs, auth, and Kamailio operations.

The bundled helper CLI with named subcommands avoids hand-crafting curl commands for each endpoint and supports sample payloads from the Postman collection directly.

Ne Zaman Kullanılır

  • Adding a new DID inbound mapping from the command line
  • Reloading Kamailio after routing changes
  • Querying call statistics for a specific endpoint group
  • Revoking a temporary SIP endpoint lease
  • Managing auth users on a dSIPRouter node

Örnek İş Akışı

GİRİŞ

User asks: create an inbound mapping for DID 13132222223

AJAN
  1. 1

    Sets DSIP_ADDR and DSIP_TOKEN in the environment

  2. 2

    Runs dsiprouter.sh inboundmapping:create with a JSON payload containing the DID, servers, and name

  3. 3

    Pipes the response through jq to confirm the created mapping

  4. 4

    Runs dsiprouter.sh kamailio:reload to apply the change

ÇIKIŞ

Inbound mapping created and Kamailio reloaded successfully

Gereksinimler

  • DSIP_ADDR environment variable (hostname or IP of your dSIPRouter node)
  • DSIP_TOKEN environment variable (API bearer token from your dSIPRouter instance)

Kurulum

clawhub install mackhendricks/dsiprouter-skill

CLI komutunu çalıştırın ya da istemi Claude Code, Cursor, Codex veya kullandığınız kodlama ajanına yapıştırın.

Bağlantılar