Mainland China · MIIT-compliant

SIP Trunk in China — Beijing, Shanghai, Shenzhen Inbound + Outbound

A China SIP trunk with real +86 Chinese DIDs, MIIT-compliant allocation, Hong Kong + Singapore ingress POPs, TLS:5061 with SRTP, every standard PBX integration. From $16.00/mo per DID plus per-minute usage, activation in 5–15 business days after KYC.

Real Chinese DIDs (not gateway-routed) TLS + SRTP end-to-end 5–200 channel scale per trunk

1. What a SIP trunk in China actually is

A SIP trunk is the IP delivery pipe between a carrier and your PBX, AI voice agent, or call-control platform; it carries signaling over SIP and audio over RTP, replacing the old TDM hand-off. A China SIP trunk is the same thing but with one critical wrinkle: the numbers riding it are +86 mainland Chinese DIDs allocated under the Ministry of Industry and Information Technology (MIIT), the strictest national telecom regulator most foreign operators will ever interact with.

That regulatory layer changes everything about how the trunk is provisioned, who can hold the numbers, what use cases are allowed, and how outbound CLI is verified. The technical layer underneath is standard SIP. The compliance layer on top is where the work happens.

DIDHub delivers Chinese DIDs via two operator routes: a regulated MIIT-licensed partner inside mainland China handles the number-holder relationship, and we route the SIP leg through edge SBCs in Hong Kong (primary) and Singapore (failover). The result is a single SIP trunk you authenticate against, with Chinese numbers behaving like any other DIDs in your PBX while we handle the Beijing-side paperwork.

If you've used Twilio, Telnyx, or Bandwidth for China: you'll notice the same regulatory friction. China is the country every multi-country SIP trunk provider treats specially. The honest version is that no foreign carrier directly holds Chinese numbers; everyone routes through licensed mainland partners. DIDHub's edge is shorter timelines (5–15 business days) and clearer pricing.

2. China regulation: MIIT, KYC, compliance

MIIT registration is the first thing that has to happen before any Chinese DID rings. The requirements are stricter than EU GDPR-style KYC and unique to China.

Who can hold a Chinese number

  • A licensed mainland Chinese entity. That's either your own Chinese subsidiary (WFOE, Wholly Foreign-Owned Enterprise), a JV with a local partner, or a contract relationship with a licensed local operator that holds the number on your behalf.
  • A foreign company with no Chinese presence cannot directly hold a Chinese DID under current MIIT rules. The number is held by a licensed local entity (DIDHub's regulated mainland partner) and routed to you over SIP.
  • An ICP-style filing describes the use case, the responsible party, and the business intent. Vague intents (cold outbound, mass-marketing) are rejected.

What DIDHub handles for you

  • The mainland operator relationship and number allocation.
  • Document preparation and translation (English ↔ Simplified Chinese).
  • Submission to MIIT and the responsible carrier (typically China Telecom, China Unicom, or China Mobile for the underlying inventory).
  • Ongoing compliance monitoring and use-case verification.

Use cases MIIT routinely approves

  • Customer service inbound for an established product (B2C or B2B).
  • Sales callbacks to customers who have requested contact (opted-in lists, CRM-tracked).
  • Two-factor authentication and transactional SMS tied to the registered service.
  • AI voice agents for inbound (incoming-only) servicing existing customers.
  • Microsoft Teams Direct Routing for employees of registered entities operating in China.

Use cases that get rejected

  • Cold outbound calling, telemarketing, mass voice broadcasts.
  • Unsolicited SMS campaigns.
  • Gambling, adult-content, political-advocacy, or anything touching MIIT's restricted-content categories.
  • Anonymous-relay use cases (no identifiable end-user attribution).

For the broader regulatory picture across countries, see our guide to international DID compliance & KYC bundles. For the SIP-trunk concept end-to-end, see the DID Number Provider guide.

3. Number types you can route over the trunk

China uses 2–4 digit area codes with trunk prefix 0; the international format drops the leading 0 and prefixes +86. The trunk can carry any of these number types simultaneously:

CodeTypeNational dialingInternational dialingMobileFrom
010Beijing geographic010 XXXX XXXX+86 10 XXXX XXXXYes$16.00/mo + usage
021Shanghai geographic021 XXXX XXXX+86 21 XXXX XXXXYes$16.00/mo + usage
020Guangzhou geographic020 XXXX XXXX+86 20 XXXX XXXXYes$16.00/mo + usage
0755Shenzhen geographic0755 XXXX XXXX+86 755 XXXX XXXXYes$16.00/mo + usage
0571Hangzhou geographic0571 XXXX XXXX+86 571 XXXX XXXXYes$16.00/mo + usage
400National service number400 XXX XXXX+86 400 XXX XXXXYes$24.00/mo + usage
800Toll-free (landline only)800 XXX XXXX+86 800 XXX XXXXNo$60.00/mo + usage

Two specifically Chinese pitfalls to know up front. 800 toll-free in China is reachable only from Chinese landlines (Chinese mobile users cannot dial 800 numbers; it's a regulatory carve-out that surprises every Western operator). Almost every modern Chinese consumer use case wants 400 instead, which is reachable from both mobile and landline and where the caller pays the normal long-distance rate.

Chinese mobile DIDs (147/152/170/171/178 ranges and others) are extremely restricted; allocation to non-carriers is severely limited and most foreign operators cannot get them at all. If your use case requires sending or receiving SMS, plan around 400 or geographic numbers, or coordinate with us upfront.

For a deeper look at how number types differ globally, see DID number types explained.

4. How DIDHub's SIP trunk works in China

The technical surface of the trunk is standardised; the China-specific choices are the POP, the codec list, and the failover topology.

Ingress POPs

  • Hong Kong (primary), lowest latency to Chinese mainland endpoints, sub-50ms to Shanghai and Shenzhen, sub-80ms to Beijing.
  • Singapore (failover), secondary route used if the Hong Kong path is degraded; adds ~30–60ms latency.
  • Shanghai (mainland, select customers), a directly-attached SBC inside mainland China is available for enterprise customers with their own ICP-licensed entity. Contact sales for qualification.

Transport & security

  • TLS:5061 is the recommended SIP transport for any China trunk. Plain UDP signaling is permitted but discouraged.
  • SRTP for media via DTLS-SRTP or SDES, depending on your endpoint capability.
  • SIP authentication: digest registration (PBX behind NAT) or IP-ACL (static peering). See SIP authentication.

Codecs

  • G.711 a-law (PCMA), the default in China, preferred over μ-law. Always negotiated first.
  • G.722, wideband HD voice where the far-side endpoint supports it; same bitrate as G.711 with much better quality.
  • Opus, for AI voice agents and any IP-native softphone; encoder-side rate control adapts to mainland China network jitter.
  • G.729, available on request for bandwidth-constrained branches; royalty-free since 2017.

For the codec deep-dive, see voice codecs explained.

DTMF

  • RFC 4733 (telephone-events over RTP) is the default. SIP INFO and in-band DTMF available for legacy interop on request.

Channel concurrency

  • Trunks start at 5 concurrent channels and scale to 200 per trunk off the shelf. Larger requires a custom arrangement.
  • Channels are independent of DID count; you can carry 200 numbers on a 10-channel trunk if your concurrent-call peak is 10. See multiple concurrent calls on one DID.

STIR/SHAKEN

  • Not applicable in China. The North-American STIR/SHAKEN attestation framework is a US/Canada construct that doesn't exist in mainland China. Trust signals come instead through MIIT registration, ICP licensing of the responsible entity, and operator-side caller-ID validation.

5. Outbound calling from your China trunk

Outbound from a China-allocated DID to Chinese landline and mobile destinations is allowed within approved use cases. The per-minute economics:

DestinationPer-minuteBilling incrementNotes
China landline (geographic)$0.09/min1+1 secondStandard MIIT-approved use cases
China mobile$0.20/min1+1 secondStandard MIIT-approved use cases
China 400 destination$0.09/min1+1 secondCaller pays long-distance share
International from China DIDPer destination rate1+1 secondSee global rates

Outbound caller-ID rules

  • Your outbound CLI must match a DID you've allocated through the trunk. Setting an arbitrary +86 caller ID is rejected at the SBC.
  • Origin-based rating (OBR) applies on cross-border outbound: pairing a Chinese DID as caller-ID with a call to an EU destination may attract the regulated EEA tier under the source carrier's framework.
  • For multi-region operators, see origin-based rating savings.

6. Setup in 6 steps

Sign up & submit KYC documents

Create a DIDHub account, supply your business details and the intended use case for Chinese numbers. We'll send back a short MIIT-compliance questionnaire.

MIIT compliance review

We translate and submit the filing to our mainland operator partner. The mainland operator runs MIIT vetting in parallel with carrier-side allocation. This is the long part: 5–15 business days, sometimes faster, occasionally longer.

Allocate DIDs & channel capacity

You pick the city codes (010 Beijing, 021 Shanghai, 0755 Shenzhen, …) and how many of each. Trunk channel capacity is allocated at the same time.

Receive trunk credentials

SIP URI (defaults to sip.didhub.io; Hong Kong POP), digest username/password or IP-ACL details, TLS cert verification fingerprint, and your assigned DIDs.

Wire up your PBX or platform

Standard SIP trunk configuration on Asterisk, FreePBX, 3CX, Kamailio, OpenSIPS, or any modern stack. For Teams Direct Routing, Vapi, Retell, or other BYOC platforms, paste the trunk credentials into their BYOC configuration.

Test inbound + outbound

Place a test call to one of your DIDs from a Chinese mobile or landline; place a test outbound back. Confirm caller-ID resolves correctly, codec negotiates as expected, and audio quality is acceptable round-trip.

Asterisk pjsip example

; /etc/asterisk/pjsip.conf
[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0:5061
cert_file=/etc/asterisk/keys/asterisk.crt
priv_key_file=/etc/asterisk/keys/asterisk.key
method=tlsv1_2

[didhub-china]
type=auth
auth_type=userpass
username=YOUR_DIDHUB_USERNAME
password=YOUR_DIDHUB_PASSWORD

[didhub-china]
type=aor
contact=sip:sip.didhub.io:5061;transport=tls
qualify_frequency=30

[didhub-china]
type=endpoint
transport=transport-tls
context=from-didhub
disallow=all
allow=alaw,g722,opus
outbound_auth=didhub-china
aors=didhub-china
dtmf_mode=rfc4733
media_encryption=sdes
direct_media=no

3CX SIP trunk template snapshot

# 3CX -> SIP Trunks -> Add SIP Trunk -> Generic SIP Trunk
Trunk name:        DIDHub China
Registrar:         sip.didhub.io
Transport:         TLS
Port:              5061
Authentication:    Register/Account based
Auth ID:           YOUR_DIDHUB_USERNAME
Auth password:     YOUR_DIDHUB_PASSWORD
Outbound caller ID: +86 10 XXXX XXXX  (one of your allocated DIDs)
Codecs (priority):  G.711 a-law, G.722, Opus

7. Integration patterns

Every modern PBX, UC platform, and AI voice stack can authenticate against the trunk:

Microsoft Teams Direct Routing

Managed SBC-as-a-Service in 5 PowerShell commands. Microsoft Calling Plans don't cover China; Direct Routing through DIDHub is the standard path.

See Teams DR →

Asterisk / FreePBX

Standard pjsip trunk config (snippet below). FreePBX has a Chunk module that maps cleanly to DIDHub's IP-ACL or registration modes.

Asterisk → · FreePBX →

3CX

Generic SIP trunk template with TLS:5061. Outbound caller ID per extension; per-DID inbound routing rules.

3CX guide →

AI voice agents (Vapi, Retell, ElevenLabs)

BYOC SIP trunk with Hong Kong ingress for tight latency to your inference region. Bind specific Chinese DIDs to specific agents.

AI voice integrations →

Kamailio / OpenSIPS

Per-trunk DNID auto-correct, SRV-based POP failover (HK primary / SG failover), dispatcher-module load balancing.

Kamailio →

Softphones (Zoiper, Bria, Linphone)

Per-extension digest registration; useful for distributed support teams routing Chinese DIDs to remote agents.

Softphones →

Start your China SIP trunk today

Live in 5–15 business days. Real Chinese DIDs, no setup fee after KYC, no contract.

8. Pricing

Four line items: per-DID monthly rental, per-minute inbound usage on every China DID (even landline geographic numbers carry an inbound MOU charge in China), channel capacity, and per-minute outbound. Setup is $0 once MIIT paperwork is approved.

Per-DID monthly

TypeFromNotes
Geographic (Tier 1 cities: 010, 021, 020, 0755)$16.00/mo + usageInbound per-minute applies; standard use cases
Geographic (Tier 2: 022, 028, 023, 027, …)$20.00/mo + usageInbound per-minute applies; subject to allocation availability
400 national service$24.00/mo + usageReachable from mobile and landline; usage billed per-minute
800 toll-free (landline only)$60.00/mo + usageNot reachable from Chinese mobile; usage billed per-minute

Channel capacity

ChannelsMonthlySuited for
5Included with first DIDSMB / single office
25$95/moSmall contact centre, AI agent low concurrency
50$180/moMid-size contact centre, AI agent medium concurrency
100$330/moLarge contact centre, multi-tenant SaaS
200$580/moEnterprise; larger by arrangement

Per-minute outbound

See section 5 above and the full global rate sheet.

9. Porting an existing China number

Porting in mainland China is rare, possible, and slow. Realistic expectations:

  • Geographic numbers (010, 021, 0755 …): 6–12 weeks, carrier-dependent.
  • 400 numbers: 4–8 weeks.
  • 800 numbers: generally not portable in practice.
  • Required documents: Chinese business license + Letter of Authority + ICP filing + carrier-specific port forms.
  • Cost: $80 port-in fee per number, plus any carrier-side fees passed through.

For the full porting playbook (US/UK/EU + the global gotchas), see number porting explained.

10. FAQ

Can a foreign company directly hold a Chinese SIP trunk DID?

Not directly under current MIIT rules. The number is held by a licensed mainland Chinese entity (DIDHub's regulated partner, or your own WFOE / Chinese subsidiary if you have one) and routed to you over SIP. The trunk authentication and SIP delivery to your platform looks identical to any other DIDHub trunk.

How long does activation take?

5 to 15 business days after KYC documents are received and the use case is approved. The variability is on MIIT and the underlying mainland carrier; the SIP-side provisioning is hours, not days.

Which POP should I connect to for a China SIP trunk?

Hong Kong is the recommended primary for almost everyone. Singapore is the standard failover. Mainland Shanghai ingress is available for enterprise customers with their own ICP-licensed Chinese entity.

What is the difference between 400 and 800 in China?

400 is a national service number reachable from both mobile and landline; caller pays the normal long-distance rate. 800 is true toll-free for the caller, but reachable only from Chinese landlines. Chinese mobile users cannot dial 800 numbers. Almost every modern B2C use case wants 400.

Can I use my China SIP trunk with Microsoft Teams?

Yes, via Microsoft Teams Direct Routing through DIDHub's managed SBC. Microsoft Calling Plans don't cover mainland China, so Direct Routing through DIDHub is the standard path for Teams users operating in China.

What codecs should I configure for a China SIP trunk?

G.711 a-law (PCMA) as the default, G.722 for HD voice on capable endpoints, Opus for AI voice agents and IP-native softphones. G.729 available on request. Always offer G.711 a-law before mu-law on China-bound trunks.

Does STIR/SHAKEN apply in China?

No. STIR/SHAKEN is a US/Canada framework that doesn't exist in China. Trust signals in China come through MIIT registration and operator-side caller-ID validation against the registered number holder.

Can I send SMS over the SIP trunk to Chinese numbers?

SMS is a separate provisioning track from voice. In China, commercial SMS is heavily regulated. Inbound works on most numbers; outbound requires content pre-approval and is restricted to MIIT-licensed templates. DIDHub manages SMS compliance for legitimate use cases.

How many concurrent calls can one Chinese DID handle?

The DID itself is just an address; concurrent-call capacity is set by the channel count on the trunk. A 50-channel trunk with 1 Chinese DID can carry 50 concurrent calls to that one number; the same trunk with 200 DIDs can carry 50 concurrent calls across any combination of those numbers.

What use cases get rejected by MIIT?

Cold outbound calling, unsolicited SMS campaigns, anonymous-relay setups, and anything touching MIIT's restricted-content categories (gambling, adult content, political advocacy). Customer service, opted-in callbacks, transactional 2FA, inbound AI voice agents, and Teams Direct Routing for registered entities are routinely approved.

Start your China SIP trunk today

Live in 5–15 business days. Real Chinese DIDs, every standard PBX and AI-voice integration, no setup fee after KYC, no contract.