Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

sinch-elastic-sip-trunkingsinch 弹性 sip 线槽

Agent Skill

sinch-elastic-sip-trunking 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,505

周安装

64

GitHub Stars

7

下载量

527
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sinch-elastic-sip-trunking(sinch 弹性 sip 线槽)
来源仓库:https://github.com/sinch/skills
仓库路径:skills/sinch-elastic-sip-trunking
安装命令:
npx skills add https://github.com/sinch/skills --skill sinch-elastic-sip-trunking
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sinch/skills --skill sinch-elastic-sip-trunking

简介

sinch-elastic-sip-trunking 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 当前无原始 SKILL.md 内容可参考,实际功能以来源仓库为准。

SKILL.md

Sinch Elastic SIP Trunking API

Overview

The Sinch Elastic SIP Trunking (EST) API lets you programmatically provision SIP trunks and route voice traffic between customer infrastructure and the PSTN. The core workflow is: create a trunk, authorize it (ACL or credentials), attach endpoints, assign phone numbers.

Agent Instructions

Before generating code, ask the user these clarifying questions:

  1. Direction — Do you need inbound (receive calls from PSTN), outbound (send calls to PSTN), or both?
  2. Auth method for the trunk (if outbound or both) — ACL-based (static IPs) or Credential-based (digest auth / dynamic IPs)?
  3. Endpoint type (if inbound or both) — Static endpoint (fixed IP/port) or Registered endpoint (SIP UA registers dynamically)?
  4. Language — curl, Node.js SDK, Python, Java,.NET?

Only ask questions 2-3 when relevant to the user's direction. Wait for answers, then follow the matching workflow below.

Decision Tree

User wants EST →
├─ Outbound only
│  ├─ Static IPs   → Workflow A (Trunk + ACL)
│  └─ Dynamic IPs  → Workflow E (Trunk + Credential List / Digest Auth)
├─ Inbound only
│  ├─ Static IP    → Workflow B (Trunk + Static Endpoint + Phone Number)
│  └─ Dynamic IP   → Workflow D (Trunk + Credential List + Registered Endpoint + Phone Number)
└─ Both           → Workflow C (Trunk + ACL/Creds + Endpoint + Phone Number)

Critical Rules

  1. Dependency order matters. Creating resources out of order causes failures. Create TrunkCreate ACL/CredentialsLink to TrunkAssign Phone NumbersCreate Endpoint
  2. The Domain Trap. Never send SIP INVITEs to trunk.pstn.sinch.com. ALWAYS use {your-hostname}.pstn.sinch.com.
  3. 60-second propagation. After linking ACLs or Credentials, wait 60 seconds before testing.
  4. Lower priority = higher preference. Endpoint priority: 1 is primary; priority: 100 is failover.
  5. PUT replaces the entire object. Omitted fields become null.

Getting Started

Authentication

See sinch-authentication for full auth setup. EST uses OAuth2 client credentials (production) or Basic Auth (testing only, rate-limited).

SDK Installation

See sinch-sdks for installation and client initialization. Note: EST is only supported in the Node.js SDK — for Java, Python, and.NET, use direct HTTP calls.

First API Call — Create a Trunk

curl -X POST \
  "https://elastic-trunking.api.sinch.com/v1/projects/$SINCH_PROJECT_ID/trunks" \
  -H "Authorization: Bearer $SINCH_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-trunk", "hostName": "my-trunk"}'

Response includes sipTrunkId and hostName — use {hostName}.pstn.sinch.com for all SIP routing.

For SDK examples, see the Getting Started Guide.

Key Concepts

  • Trunk: Connection between your infrastructure and Sinch. Has a hostName used in SIP routing.
  • SIP Endpoint: Where inbound calls go. Static (fixed IP) or Registered (dynamic, requires Credential List).
  • ACL: Authorizes outbound by source IP (CIDR notation, e.g. 203.0.113.10/32).
  • Credential List: Username/password pairs. Used for registered endpoint auth (inbound) or digest auth (outbound).
  • Phone Numbers: E.164 DIDs assigned to a trunk for inbound routing.

Workflows

Workflow A: Outbound Only (ACL-based)

  • 1. Create trunk
  • 2. Create ACL with your source IPs
  • 3. Link ACL to trunk
  • 4. Wait 60 seconds
  • 5. Verify: GET /trunks/{trunkId}/accessControlLists — confirm ACL appears

API docs: Create trunkCreate ACLLink ACL to trunkList ACLs for trunk

Workflow B: Inbound Only (Static Endpoint)

  • 1. Create trunk
  • 2. Create static SIP endpoint on trunk
  • 3. Assign phone number(s) to trunk
  • 4. Verify: GET /trunks/{trunkId}/endpoints and GET /trunks/{trunkId}/phoneNumbers

API docs: Create trunkCreate SIP endpointGet phone numbers

Workflow C: Bidirectional (Both Inbound + Outbound)

  • 1. Create trunk
  • 2. Create ACL and/or Credential List → Link to trunk
  • 3. Create SIP endpoint on trunk
  • 4. Assign phone numbers to trunk
  • 5. Wait 60 seconds before testing
  • 6. Verify: GET /trunks/{trunkId}/accessControlLists, GET /trunks/{trunkId}/endpoints, GET /trunks/{trunkId}/phoneNumbers

API docs: Create trunkCreate ACLLink ACL to trunkCreate SIP endpointGet phone numbers

Workflow D: Inbound with Registered Endpoint (Credential-based)

  • 1. Create trunk
  • 2. Create credential list with username/password
  • 3. Create registered endpoint on trunk (references a username from the credential list)
  • 4. Assign phone number(s) to trunk
  • 5. Configure SIP UA to REGISTER to {hostname}.pstn.sinch.com
  • 6. Verify: GET /trunks/{trunkId}/endpoints and GET /trunks/{trunkId}/phoneNumbers

API docs: Create trunkCredential ListsCreate SIP endpointGet phone numbers

Workflow E: Outbound Only (Digest Auth / Credential-based)

  • 1. Create trunk
  • 2. Create credential list with username/password
  • 3. Link credential list to trunk
  • 4. Wait 60 seconds
  • 5. Verify: GET /trunks/{trunkId}/credentialLists — confirm credential list appears

API docs: Create trunkCredential ListsAdd credential list to trunkList credential lists for trunk

SIP Header Rules (Outbound)

HeaderValueNotes
Fromsip:+1E164@{your-hostname}.pstn.sinch.comMust be your trunk domain. Wrong domain → 403. Use E.164 format.
Tosip:+1E164@{your-hostname}.pstn.sinch.comDestination in E.164 + your trunk domain. In most cases, same as Request-URI.
Request-URIsip:+1E164@{your-hostname}.pstn.sinch.comDestination in E.164 + your trunk domain. In most cases, same as To.

Gotchas and Best Practices

  1. CIDR notation — ACL entries require CIDR (/32 for single IP, /24 for range).
  2. Country permissions — US/Canada enabled by default. Other countries blocked; use updateCountryPermissions.
  3. Project ID ≠ App Key — EST uses projectId, not the Voice Application Key.
  4. Default CPS limit — 1 call per second. Exceeding it → 603. Contact Sinch to increase.
  5. Teardown order — Delete in reverse: unassign phone numbers → delete endpoints → unlink ACLs/credentials → delete trunk. Deleting out of order can orphan resources.

Troubleshooting

For SIP error codes and debugging runbooks, see references/diagnostics.md.

Quick reference:

  • 401 → Credential mismatch in Credential List
  • 403 → IP not in ACL, or wrong From domain
  • 404 → Using wrong SIP domain (must be {hostname}.pstn.sinch.com)
  • 503 → No active endpoint on trunk

References

Links

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.64%
按下载量换算193

Claude

29.55%
按下载量换算156

Cursor

18.27%
按下载量换算96

Gemini CLI

9.47%
按下载量换算50

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills