Microsoft Teams Direct Routing
Managed SBC-as-a-Service. The standard alternative to Microsoft Calling Plans for Morocco users.
See Teams DR →A Morocco SIP trunk with real +212 Morocco DIDs, ANRT-compliant allocation, Frankfurt + London ingress POPs, TLS:5061 with SRTP, every standard PBX integration. From $6.40/mo per DID plus per-minute usage, activation in 2-5 business days after KYC.
A SIP trunk is the IP delivery pipe between a carrier and your PBX, AI voice agent, or call-control platform; signaling over SIP, audio over RTP. A Morocco SIP trunk is the same thing carrying +212 Morocco DIDs allocated under ANRT.
DIDHub provides the trunk authentication and SIP transport; ANRT-compliant number allocation is coordinated through our in-region carrier partners. Your PBX or platform sees a standard SIP trunk; we handle the regulator-side paperwork.
ANRT requires KYC documentation before any Morocco DID can be allocated. Activation typically takes 2-5 business days. DIDHub handles the document submission and regulator coordination on your behalf.
What people typically use a Morocco SIP trunk for:
Morocco's regulator ANRT (Agence Nationale de Réglementation des Télécommunications) requires KYC for all Moroccan number allocations, Moroccan business registration for companies, or proof of identity plus a Moroccan address for individuals. Foreign companies typically register through a Moroccan agent. DIDHub manages the paperwork. Activation completes in 2-5 business days.
For the broader 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.
DIDHub supports the standard Morocco number types over the SIP trunk:
| Code | Type | National dialing | International dialing | Mobile | From |
|---|---|---|---|---|---|
0522, 0537, 0539 … | Geographic | 0522 XXXX XXXX | +212 522 XXXX XXXX | Yes | $6.40/mo + usage |
0800 | Toll-free | 0800 XXXX XXXX | +212 800 XXXX XXXX | No | $22.00/mo + usage |
For a deeper look at how number types differ globally, see DID number types explained.
The technical surface of the trunk is standardised; the Morocco-specific choices are the POP, the codec list, and the failover topology.
For the codec deep-dive, see voice codecs explained.
Outbound from a Morocco-allocated DID to Morocco destinations is allowed within approved use cases. The per-minute economics:
| Destination | Per-minute | Billing increment | Notes |
|---|---|---|---|
| Morocco landline (geographic) | $0.10/min | 1+1 second | Standard use cases |
| Morocco mobile | $0.18/min | 1+1 second | Standard use cases |
| International from Morocco DID | Per destination rate | 1+1 second | See global rates |
Create a DIDHub account, supply your business details and the intended use case for Morocco numbers.
We coordinate with ANRT and our in-region carrier; typical timeline 2-5 business days.
You pick the Morocco number types you need and how many. Channel capacity allocated at the same time.
SIP URI (defaults to sip.didhub.io, terminating to Frankfurt), digest username/password or IP-ACL details, TLS cert verification fingerprint, and your assigned DIDs.
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 credentials into their BYOC config.
Place a test call to one of your DIDs from a Morocco mobile or landline; place a test outbound back. Confirm caller-ID resolves correctly, codec negotiates as expected, and audio quality is acceptable.
; /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-morocco] type=auth auth_type=userpass username=YOUR_DIDHUB_USERNAME password=YOUR_DIDHUB_PASSWORD [didhub-morocco] type=aor contact=sip:sip.didhub.io:5061;transport=tls qualify_frequency=30 [didhub-morocco] type=endpoint transport=transport-tls context=from-didhub disallow=all allow=g711a,g722,opus outbound_auth=didhub-morocco aors=didhub-morocco dtmf_mode=rfc4733 media_encryption=sdes direct_media=no
# 3CX -> SIP Trunks -> Add SIP Trunk -> Generic SIP Trunk Trunk name: DIDHub Morocco 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: +212 ... (one of your allocated DIDs) Codecs (priority): G.711a / G.722 / Opus
Every modern PBX, UC platform, and AI voice stack can authenticate against the trunk:
Managed SBC-as-a-Service. The standard alternative to Microsoft Calling Plans for Morocco users.
See Teams DR →Standard pjsip trunk config (snippet below). FreePBX trunk module maps cleanly to DIDHub's IP-ACL or registration modes.
Asterisk → · FreePBX →Generic SIP trunk template with TLS:5061. Outbound caller ID per extension; per-DID inbound routing rules.
3CX guide →BYOC SIP trunk with Frankfurt ingress for tight latency. Bind specific Morocco DIDs to specific agents.
AI voice integrations →Per-trunk DNID auto-correct, SRV-based POP failover (Frankfurt primary / London failover).
Kamailio →Per-extension digest registration; useful for distributed support teams routing Morocco DIDs to remote agents.
Softphones →Live in 2-5 business days. Real Morocco DIDs, no setup fee after KYC, no contract.
Four line items: per-DID monthly rental, per-minute inbound usage on every Morocco DID (even landline geographic numbers carry an inbound MOU charge in Morocco), channel capacity, and per-minute outbound. Setup is $0 once ANRT paperwork is approved.
| Type | From | Notes |
|---|---|---|
| Geographic (Morocco city codes) | $6.40/mo + usage | Inbound per-minute applies; standard use cases |
| Non-geographic / national | $30.00/mo + usage | Subject to regulator allocation |
| Toll-free | $22.00/mo + usage | Free for callers; you pay inbound per-minute |
| Channels | Monthly | Suited for |
|---|---|---|
| 5 | Included with first DID | SMB / single office |
| 25 | $95/mo | Small contact centre, AI agent low concurrency |
| 50 | $180/mo | Mid-size contact centre, AI agent medium concurrency |
| 100 | $330/mo | Large contact centre, multi-tenant SaaS |
| 200 | $580/mo | Enterprise; larger by arrangement |
See section 5 above and the full global rate sheet.
Existing Morocco number? Porting timeline is 3-5 weeks.
For the full porting playbook (US/UK/EU + the global gotchas), see number porting explained.
Frankfurt is the recommended primary; London is the standard failover. Both terminate to Morocco via in-region carriers.
2-5 business days after KYC documents are accepted (or instantly where KYC isn't required). Provisioning the SIP side itself is hours, not days; the variability is on the ANRT/carrier side.
G.711a / G.722 / Opus as the negotiation list, in that order. G.711a is the regional default for Morocco interop.
Yes, via Microsoft Teams Direct Routing through DIDHub's managed SBC. See Teams Direct Routing.
Yes, BYOC SIP trunk works with every major AI voice platform. Bind specific Morocco DIDs to specific agents; outbound CLI must match an allocated DID.
The DID is an address; concurrent-call capacity is set by the channel count on the trunk. A 50-channel trunk with 1 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.
N/A (regional construct). Trust signals come instead through national regulator registration and operator-side caller-ID validation.
Yes. Typical Morocco port timeline is 3-5 weeks. Required documents vary by number type; contact us for the specific checklist. See number porting explained for the global picture.
Customer service inbound, opted-in callbacks, transactional 2FA, inbound AI voice agents, and Microsoft Teams Direct Routing for registered entities. Cold outbound, unsolicited SMS campaigns, and anonymous-relay setups are routinely rejected.
Live in 2-5 business days. Real Morocco DIDs, every standard PBX and AI-voice integration, no setup fee after KYC, no contract.