← Back to Blog
How-To 10 min read • 2026-05-31

🔌 How to Set Up SIP Trunk for AI Call Center (Beginner's Guide)

Complete beginner's guide to SIP trunks for AI call centers. Choose the right provider, configure Asterisk, handle NAT issues, and connect to AI voice agents.

What You'll Learn

By the end of this guide, you'll understand SIP trunks, choose the right provider for your market, configure Asterisk to receive calls, and connect to an AI voice agent. No prior telephony experience needed.

What Is a SIP Trunk?

A SIP trunk is essentially a phone line that runs over the internet instead of copper wire. It connects your PBX (Asterisk) to the public phone network, letting you make and receive calls programmatically.

SIP stands for Session Initiation Protocol — it's how internet phones talk to each other.

Think of it like email vs traditional mail:

Why You Need a SIP Trunk for AI Call Centers

To answer calls with AI, you need:

  1. A phone number (DID — Direct Inward Dialing)
  2. A way for the phone network to reach your AI server

SIP trunks provide both. Your DID rings → SIP trunk forwards to your Asterisk → Asterisk routes to AI.

Choosing a SIP Trunk Provider

For Nepal

ProviderStrengthsPricing
Buel (sip.buel.app)Used by TalkC.ai, Yango Nepal. Good support.Custom (contact buel.app)
NTCGovernment-owned, wide reachNPR 1-3/min
NcellMajor operator, good QoSNPR 1.50-3/min

For India

ProviderStrengthsPricing
Twilio IndiaReliable, well-documentedINR 1-2/min
KnowlarityIndian provider, local supportINR 0.50-1.50/min
ExotelIndian provider, good APIINR 0.75-2/min
Tata TeleEstablished, enterprise-gradeCustom

For Global / Other Markets

What to Ask Your SIP Trunk Provider

  1. What's the price per DID per month?
  2. What's the inbound/outbound per-minute rate?
  3. Do you support PJSIP and SIP over UDP/TCP?
  4. What codecs do you support? (PCMU, PCMA, G.722)
  5. How many concurrent channels can I run?
  6. Is there a setup fee?
  7. Can I bring my existing number (port in)?
  8. Do you support DTMF tones?
  9. Where are your servers located? (affects latency)
  10. What's the SLA/uptime guarantee?

Getting Your SIP Credentials

Once you sign up, you'll receive:

Configuring Asterisk PJSIP

Edit /etc/asterisk/pjsip.conf (or use included files):

; ==================== Transport ====================
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060

; ==================== Registration ====================
[buel-trunk]
type=registration
transport=transport-udp
outbound_auth=buel-trunk-auth
server_uri=sip:sip.buel.app
client_uri=sip:1011_td@sip.buel.app
retry_interval=60

; ==================== Auth ====================
[buel-trunk-auth]
type=auth
auth_type=userpass
username=1011_td
password=YOUR_PASSWORD

; ==================== AOR ====================
[buel-trunk-aor]
type=aor
contact=sip:sip.buel.app

; ==================== Endpoint ====================
[buel-trunk-endpoint]
type=endpoint
transport=transport-udp
context=from-trunk
disallow=all
allow=ulaw
allow=alaw
outbound_auth=buel-trunk-auth
aors=buel-trunk-aor
from_user=1011_td
direct_media=no
rtp_symmetric=yes

; ==================== Identify ====================
[buel-trunk-identify]
type=identify
endpoint=buel-trunk-endpoint
match=YOUR_PROVIDER_IP

Configuring Dialplan

Edit /etc/asterisk/extensions.conf:

[from-trunk]
exten => _X.,1,NoOp(Incoming call from ${CALLERID(num)})
exten => _X.,n,Answer()
exten => _X.,n,Set(CALL_UUID=${SHELL(uuidgen | tr -d '
')})
exten => _X.,n,MixMonitor(/var/spool/asterisk/recording/${CALL_UUID}.wav,r)
exten => _X.,n,AudioSocket(${CALL_UUID},127.0.0.1:9092)
exten => _X.,n,Hangup()

Reload Asterisk

sudo asterisk -rx 'pjsip reload'
sudo asterisk -rx 'dialplan reload'

; Verify registration
sudo asterisk -rx 'pjsip show registrations'

Should see: Registered status.

Common Issues and Fixes

1. Registration Fails

2. One-Way Audio

3. Choppy Audio

4. Calls Drop After 30 Seconds

Connecting to AI Voice Agent

Once Asterisk is receiving calls, connect to your AI:

Or use TalkC.ai which handles all this and just needs your SIP credentials.

Production Checklist

Frequently Asked Questions

How much does a SIP trunk cost in Nepal?

Typically $5-50/month per DID + per-minute charges (NPR 1-3/min). Providers like Buel offer competitive rates for AI/automation use cases.

Can I use Twilio in Nepal?

Yes, but Twilio is more expensive than local providers and adds latency. Better to use a local provider like Buel, NTC, or Ncell for Nepal-based businesses.

How many concurrent calls can one SIP trunk handle?

Depends on your provider's plan. Typical SIP trunks allow 5-50 concurrent channels. For high-volume operations, you can have multiple trunks load-balanced.

Do I need a static IP for SIP?

Strongly recommended. Most providers require IP whitelisting for authentication. Dynamic IPs cause connection issues and security risks.

Can I receive AND make calls with the same trunk?

Yes, most SIP trunks are bidirectional. You can answer incoming calls and initiate outbound calls (e.g., for campaigns) through the same trunk.

Ready to see TalkC.ai in action?

Get a personalized demo of TalkC.ai's voice AI platform. See how we handle 22,000+ calls/month for Yango Nepal, OCR Nepal, and government offices — same-day setup, 70+ languages.

Book a Demo →
T
TalkC.ai Team
team@talkc.ai • Kathmandu, Nepal